Esempio n. 1
0
 @Override
 public void init() throws Exception {
   super.init();
   _serviceName = getSystemEnv(getSystemEnvName("SERVICE_NAME"), serviceName, true);
   if (_serviceName == null) {
     if (log.isInfoEnabled()) {
       log.info(String.format("serviceName not set; clustering disabled"));
     }
     // no further initialization necessary
     return;
   }
   if (log.isInfoEnabled()) {
     log.info(String.format("serviceName [%s] set; clustering enabled", _serviceName));
   }
   _servicePort = getServicePort();
 }
Esempio n. 2
0
 @Override
 public void destroy() {
   _serviceName = null;
   _servicePort = 0;
   super.destroy();
 }