From 3189829661d3411ba3f79b1199ee5fab5c75aae5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 9 Mar 2008 21:05:23 +0000 Subject: [PATCH] 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 --- src/net/pterodactylus/jsite/core/Node.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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 true 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 + * true if the node is running on the same machine + * as jSite, false otherwise + */ + void setSameMachine(boolean sameMachine) { + this.sameMachine = sameMachine; + } + } -- 2.7.4