X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fcore%2FNode.java;h=854a668df32c47db9c01a05f636240304ef50bfb;hb=e5c7a1609ef6d0878f98c3e8c2819bc1430f96f7;hp=e0d61f7a9adedf273fc384e6dd82eb9e1fd62519;hpb=3189829661d3411ba3f79b1199ee5fab5c75aae5;p=jSite2.git diff --git a/src/net/pterodactylus/jsite/core/Node.java b/src/net/pterodactylus/jsite/core/Node.java index e0d61f7..854a668 100644 --- a/src/net/pterodactylus/jsite/core/Node.java +++ b/src/net/pterodactylus/jsite/core/Node.java @@ -102,7 +102,7 @@ public class Node { * @return the sameMachine true if, and only if, the node is * running on the same machine as jSite */ - boolean isSameMachine() { + public boolean isSameMachine() { return sameMachine; } @@ -113,8 +113,16 @@ public class Node { * true if the node is running on the same machine * as jSite, false otherwise */ - void setSameMachine(boolean sameMachine) { + public void setSameMachine(boolean sameMachine) { this.sameMachine = sameMachine; } + /** + * {@inheritDoc} + */ + @Override + public String toString() { + return name + " (" + hostname + ((port == 9481) ? ("") : (":" + port)) + ")"; + } + }