finished the JNI implementation of the status() method on Node

Signed-off-by: Grant Limberg <glimberg@gmail.com>
This commit is contained in:
Grant Limberg
2015-04-23 20:52:47 -07:00
parent 1a528aec76
commit fa9d42b7e5
2 changed files with 67 additions and 8 deletions

View File

@ -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;
}
}