projects
/
jSite2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add EndListPersistentRequests
[jSite2.git]
/
src
/
net
/
pterodactylus
/
jsite
/
core
/
Node.java
diff --git
a/src/net/pterodactylus/jsite/core/Node.java
b/src/net/pterodactylus/jsite/core/Node.java
index
e0d61f7
..
854a668
100644
(file)
--- 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 <code>true</code> if, and only if, the 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() {
+
public
boolean isSameMachine() {
return sameMachine;
}
return sameMachine;
}
@@
-113,8
+113,16
@@
public class Node {
* <code>true</code> if the node is running on the same machine
* as jSite, <code>false</code> otherwise
*/
* <code>true</code> if the node is running on the same machine
* as jSite, <code>false</code> otherwise
*/
- void setSameMachine(boolean sameMachine) {
+
public
void setSameMachine(boolean sameMachine) {
this.sameMachine = sameMachine;
}
this.sameMachine = sameMachine;
}
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String toString() {
+ return name + " (" + hostname + ((port == 9481) ? ("") : (":" + port)) + ")";
+ }
+
}
}