+ /**
+ * Returns whether this node is running on the same machine as jSite.
+ *
+ * @return the sameMachine <code>true</code> if, and only if, the node is
+ * running on the same machine as jSite
+ */
+ public boolean isSameMachine() {
+ return sameMachine;
+ }
+
+ /**
+ * Sets whether this node is running on the same machine as jSite.
+ *
+ * @param sameMachine
+ * <code>true</code> if the node is running on the same machine
+ * as jSite, <code>false</code> otherwise
+ */
+ public void setSameMachine(boolean sameMachine) {
+ this.sameMachine = sameMachine;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String toString() {
+ return name + " (" + hostname + ((port == 9481) ? ("") : (":" + port)) + ")";
+ }
+