예제 #1
0
 @ManagedAttribute
 public String getLocalAddress() {
   return local_addr != null ? local_addr.toString() : "null";
 }
예제 #2
0
 @ManagedAttribute(name = "address")
 public String getAddressAsString() {
   return local_addr != null ? local_addr.toString() : "n/a";
 }
예제 #3
0
 @ManagedAttribute(description = "The address of the current coordinator")
 public String getCurrentCoord() {
   return current_coord != null ? current_coord.toString() : "n/a";
 }
예제 #4
0
 protected static String addressAsString(Address address) {
   if (address == null) return "";
   if (address instanceof UUID) return ((UUID) address).toStringLong();
   return address.toString();
 }