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