public void postRegister(Boolean registrationDone) { if (!registrationDone.booleanValue()) { log.debug("Registration is not done -> stop"); stop(); } else { state = REGISTERED; if (createIgnored) { try { create(); } catch (Exception e) { log.error(ServiceMBeanLogger.ROOT_LOGGER.postRegisterInitializationFailed(), e); } } } }
public void postRegister(Boolean registrationDone) { if (!registrationDone.booleanValue()) { log.debug("Registration is not done -> stop"); stop(); } else { state = REGISTERED; if (createIgnored) { try { create(); } catch (Exception e) { log.error(ServiceMBeanLogger.ROOT_LOGGER.postRegisterInitializationFailed(), e); } } } }
public void postRegister(Boolean registrationDone) { if (!registrationDone.booleanValue()) { log.debug("Registration is not done -> stop"); stop(); } else { state = REGISTERED; if (createIgnored) { try { create(); } catch (Exception e) { log.error(ServiceMBeanLogger.ROOT_LOGGER.postRegisterInitializationFailed(), e); } } } }
public void postRegister(Boolean registrationDone) { if (!registrationDone.booleanValue()) { log.info( "Registration is not done -> stop" ); stop(); } else { state = REGISTERED; // This is for backwards compatibility - see whether jbossInternalLifecycle is exposed try { MBeanInfo info = server.getMBeanInfo(serviceName); MBeanOperationInfo[] ops = info.getOperations(); for (int i = 0; i < ops.length; ++i) { if (ops[i] != null && ServiceController.JBOSS_INTERNAL_LIFECYCLE.equals(ops[i].getName())) { isJBossInternalLifecycleExposed = true; break; } } } catch (Throwable t) { log.warn("Unexcepted error accessing MBeanInfo for " + serviceName, t); } } }
public void postRegister(Boolean registrationDone) { if (!registrationDone.booleanValue()) { log.info( "Registration is not done -> stop" ); stop(); } else { state = REGISTERED; // This is for backwards compatibility - see whether jbossInternalLifecycle is exposed try { MBeanInfo info = server.getMBeanInfo(serviceName); MBeanOperationInfo[] ops = info.getOperations(); for (int i = 0; i < ops.length; ++i) { if (ops[i] != null && ServiceController.JBOSS_INTERNAL_LIFECYCLE.equals(ops[i].getName())) { isJBossInternalLifecycleExposed = true; break; } } } catch (Throwable t) { log.warn("Unexcepted error accessing MBeanInfo for " + serviceName, t); } } }
protected void jbossInternalDestroy() { if (state == DESTROYED) { log.debug("Ignoring destroy call; current state is " + getStateString()); return; } if (state == STARTED) { log.debug("Destroy requested before stop, calling stop now"); stop(); } log.debug("Destroying " + jbossInternalDescription()); try { destroyService(); } catch (Throwable t) { log.warn("Destroying failed " + jbossInternalDescription(), t); } state = DESTROYED; log.debug("Destroyed " + jbossInternalDescription()); }
protected void jbossInternalDestroy() { if (state == DESTROYED) { log.debugf("Ignoring destroy call; current state is %1s", getStateString()); return; } if (state == STARTED) { log.debugf("Destroy requested before stop, calling stop now"); stop(); } log.debugf("Destroying %1s", jbossInternalDescription()); try { destroyService(); } catch (Throwable t) { log.warn("Destroying failed " + jbossInternalDescription(), t); } state = DESTROYED; log.debugf("Destroyed %1s", jbossInternalDescription()); }