summaryrefslogtreecommitdiff
path: root/java/src/com
diff options
context:
space:
mode:
authorGrant Limberg <glimberg@gmail.com>2015-04-23 20:52:47 -0700
committerGrant Limberg <glimberg@gmail.com>2015-04-23 20:52:47 -0700
commitfa9d42b7e5e701ff062d77b6e041dbb687c10e25 (patch)
tree02053c0e1118c74ffdf1a0a4c628a493322e8c36 /java/src/com
parent1a528aec76ffd006c714c69b398796d45d5b33ce (diff)
downloadinfinitytier-fa9d42b7e5e701ff062d77b6e041dbb687c10e25.tar.gz
infinitytier-fa9d42b7e5e701ff062d77b6e041dbb687c10e25.zip
finished the JNI implementation of the status() method on Node
Signed-off-by: Grant Limberg <glimberg@gmail.com>
Diffstat (limited to 'java/src/com')
-rw-r--r--java/src/com/zerotierone/sdk/NodeStatus.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/java/src/com/zerotierone/sdk/NodeStatus.java b/java/src/com/zerotierone/sdk/NodeStatus.java
index 4f584bcb..fdf5284e 100644
--- a/java/src/com/zerotierone/sdk/NodeStatus.java
+++ b/java/src/com/zerotierone/sdk/NodeStatus.java
@@ -31,21 +31,23 @@ public class NodeStatus {
private long address;
private String publicIdentity;
private String secretIdentity;
- private int online;
+ private boolean online;
- public long getAddres() {
+ private NodeStatus() {}
+
+ public final long getAddres() {
return address;
}
- public String getPublicIdentity() {
+ public final String getPublicIdentity() {
return publicIdentity;
}
- public String getSecretIdentity() {
+ public final String getSecretIdentity() {
return secretIdentity;
}
- public boolean isOnline() {
- return online != 0;
+ public final boolean isOnline() {
+ return online;
}
} \ No newline at end of file