Пример #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";
 }