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