From: David ‘Bombe’ Roden <bombe@pterodactylus.net>
Date: Sun, 9 Mar 2008 21:05:23 +0000 (+0000)
Subject: add flag for a node on the same machine as jSite
X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3189829661d3411ba3f79b1199ee5fab5c75aae5;p=jSite2.git

add flag for a node on the same machine as jSite

git-svn-id: http://trooper/svn/projects/jSite/trunk@550 c3eda9e8-030b-0410-8277-bc7414b0a119
---

diff --git a/src/net/pterodactylus/jsite/core/Node.java b/src/net/pterodactylus/jsite/core/Node.java
index 3766498..e0d61f7 100644
--- a/src/net/pterodactylus/jsite/core/Node.java
+++ b/src/net/pterodactylus/jsite/core/Node.java
@@ -36,6 +36,9 @@ public class Node {
 	/** The port number of the node. */
 	private int port;
 
+	/** Whether the node is running on the same machine as jSite. */
+	private boolean sameMachine;
+
 	/**
 	 * Returns the user-given name of the node.
 	 * 
@@ -93,4 +96,25 @@ public class Node {
 		this.port = port;
 	}
 
+	/**
+	 * 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
+	 */
+	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
+	 */
+	void setSameMachine(boolean sameMachine) {
+		this.sameMachine = sameMachine;
+	}
+
 }