public void postDeregister() { if (state != DESTROYED) { unregisterIgnored = true; if (log.isDebugEnabled()) { log.debug("Ignoring postDeregister call; current state is " + getStateString()); } return; } unregisterIgnored = false; server = null; serviceName = null; state = UNREGISTERED; }
protected void jbossInternalCreate() throws Exception { // if (state == CREATED || state == STARTING || state == STARTED // || state == STOPPING || state == STOPPED) if (state != REGISTERED) { createIgnored = true; if (log.isDebugEnabled()) { log.debug("Ignoring create call; current state is " + getStateString()); } return; } createIgnored = false; if (log.isDebugEnabled()) { log.debug("Creating " + jbossInternalDescription()); } try { createService(); state = CREATED; } catch (Exception e) { log.warn(ServiceMBeanLogger.ROOT_LOGGER.initializationFailed(jbossInternalDescription()), e); throw e; } if (log.isDebugEnabled()) { log.debug("Created " + jbossInternalDescription()); } if (startIgnored) { start(); } }
protected void jbossInternalDestroy() { if (state != STOPPED) { destroyIgnored = true; if (log.isDebugEnabled()) { log.debug("Ignoring destroy call; current state is " + getStateString()); } return; } destroyIgnored = false; if (log.isDebugEnabled()) { log.debug("Destroying " + jbossInternalDescription()); } try { destroyService(); } catch (Throwable t) { log.warn(ServiceMBeanLogger.ROOT_LOGGER.destroyingFailed(jbossInternalDescription()), t); } state = DESTROYED; if (log.isDebugEnabled()) { log.debug("Destroyed " + jbossInternalDescription()); } if (unregisterIgnored) { postDeregister(); } }
stopIgnored = true; if (log.isDebugEnabled()) { log.debug("Ignoring stop call; current state is " + getStateString());
startIgnored = true; if (log.isDebugEnabled()) { log.debug("Ignoring start call; current state is " + getStateString());
public void postDeregister() { if (state != DESTROYED) { unregisterIgnored = true; if (log.isDebugEnabled()) { log.debug("Ignoring postDeregister call; current state is " + getStateString()); } return; } unregisterIgnored = false; server = null; serviceName = null; state = UNREGISTERED; }
public void postDeregister() { if (state != DESTROYED) { unregisterIgnored = true; if (log.isDebugEnabled()) { log.debug("Ignoring postDeregister call; current state is " + getStateString()); } return; } unregisterIgnored = false; server = null; serviceName = null; state = UNREGISTERED; }
protected void jbossInternalCreate() throws Exception { if (state == CREATED || state == STARTING || state == STARTED || state == STOPPING || state == STOPPED) { log.debug("Ignoring create call; current state is " + getStateString()); return; } log.debug("Creating " + jbossInternalDescription()); try { createService(); state = CREATED; } catch (Exception e) { log.debug("Initialization failed " + jbossInternalDescription(), e); throw e; } log.debug("Created " + jbossInternalDescription()); }
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 != STOPPED) { destroyIgnored = true; if (log.isDebugEnabled()) { log.debug("Ignoring destroy call; current state is " + getStateString()); } return; } destroyIgnored = false; if (log.isDebugEnabled()) { log.debug("Destroying " + jbossInternalDescription()); } try { destroyService(); } catch (Throwable t) { log.warn(ServiceMBeanLogger.ROOT_LOGGER.destroyingFailed(jbossInternalDescription()), t); } state = DESTROYED; if (log.isDebugEnabled()) { log.debug("Destroyed " + jbossInternalDescription()); } if (unregisterIgnored) { postDeregister(); } }
protected void jbossInternalStop() { if (state != STARTED) { log.debug("Ignoring stop call; current state is " + getStateString()); return; } state = STOPPING; sendStateChangeNotification(STARTED, STOPPING, getName() + " stopping", null); log.debug("Stopping " + jbossInternalDescription()); try { stopService(); } catch (Throwable e) { state = FAILED; sendStateChangeNotification(STOPPING, FAILED, getName() + " failed", e); log.warn("Stopping failed " + jbossInternalDescription(), e); return; } state = STOPPED; sendStateChangeNotification(STOPPING, STOPPED, getName() + " stopped", null); log.debug("Stopped " + jbossInternalDescription()); }
protected void jbossInternalDestroy() { if (state != STOPPED) { destroyIgnored = true; if (log.isDebugEnabled()) { log.debug("Ignoring destroy call; current state is " + getStateString()); } return; } destroyIgnored = false; if (log.isDebugEnabled()) { log.debug("Destroying " + jbossInternalDescription()); } try { destroyService(); } catch (Throwable t) { log.warn(ServiceMBeanLogger.ROOT_LOGGER.destroyingFailed(jbossInternalDescription()), t); } state = DESTROYED; if (log.isDebugEnabled()) { log.debug("Destroyed " + jbossInternalDescription()); } if (unregisterIgnored) { postDeregister(); } }
log.debug("Ignoring start call; current state is " + getStateString()); return;
protected void jbossInternalCreate() throws Exception { // if (state == CREATED || state == STARTING || state == STARTED // || state == STOPPING || state == STOPPED) if (state != REGISTERED) { createIgnored = true; if (log.isDebugEnabled()) { log.debug("Ignoring create call; current state is " + getStateString()); } return; } createIgnored = false; if (log.isDebugEnabled()) { log.debug("Creating " + jbossInternalDescription()); } try { createService(); state = CREATED; } catch (Exception e) { log.warn(ServiceMBeanLogger.ROOT_LOGGER.initializationFailed(jbossInternalDescription()), e); throw e; } if (log.isDebugEnabled()) { log.debug("Created " + jbossInternalDescription()); } if (startIgnored) { start(); } }
protected void jbossInternalCreate() throws Exception { // if (state == CREATED || state == STARTING || state == STARTED // || state == STOPPING || state == STOPPED) if (state != REGISTERED) { createIgnored = true; if (log.isDebugEnabled()) { log.debug("Ignoring create call; current state is " + getStateString()); } return; } createIgnored = false; if (log.isDebugEnabled()) { log.debug("Creating " + jbossInternalDescription()); } try { createService(); state = CREATED; } catch (Exception e) { log.warn(ServiceMBeanLogger.ROOT_LOGGER.initializationFailed(jbossInternalDescription()), e); throw e; } if (log.isDebugEnabled()) { log.debug("Created " + jbossInternalDescription()); } if (startIgnored) { start(); } }
stopIgnored = true; if (log.isDebugEnabled()) { log.debug("Ignoring stop call; current state is " + getStateString());
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()); }
protected void jbossInternalCreate() throws Exception { if (state == CREATED || state == STARTING || state == STARTED || state == STOPPING || state == STOPPED) { log.debugf("Ignoring create call; current state is %1s", getStateString()); return; } log.debugf("Creating %1s", jbossInternalDescription()); try { createService(); state = CREATED; } catch (Exception e) { log.debugf(e, "Initialization failed %1s", jbossInternalDescription()); throw e; } log.debugf("Created %1s", jbossInternalDescription()); }
protected void jbossInternalStop() { if (state != STARTED) { log.debugf("Ignoring stop call; current state is %1s", getStateString()); return; } state = STOPPING; sendStateChangeNotification(STARTED, STOPPING, getName() + " stopping", null); log.debugf("Stopping %1s", jbossInternalDescription()); try { stopService(); } catch (Throwable e) { state = FAILED; sendStateChangeNotification(STOPPING, FAILED, getName() + " failed", e); log.warn("Stopping failed " + jbossInternalDescription(), e); return; } state = STOPPED; sendStateChangeNotification(STOPPING, STOPPED, getName() + " stopped", null); log.debugf("Stopped %1s", jbossInternalDescription()); }
log.debugf("Ignoring start call; current state is %1s", getStateString()); return;