@Override
 public String toString() {
   final HazelcastInstanceImpl hazelcastInstance = original;
   if (hazelcastInstance != null) {
     return hazelcastInstance.toString();
   }
   return "HazelcastInstance {NOT ACTIVE}";
 }
Пример #2
0
 public String getName() {
   return hazelcastInstance.getName();
 }
 HazelcastInstanceProxy(HazelcastInstanceImpl original) {
   this.original = original;
   name = original.getName();
 }
 public LifecycleService getLifecycleService() {
   final HazelcastInstanceImpl hz = original;
   return hz != null ? hz.getLifecycleService() : new TerminatedLifecycleService();
 }