public void destroy() { try { jbossInternalDestroy(); } catch (Throwable t) { log.warn(ServiceMBeanLogger.ROOT_LOGGER.errorInDestroy(jbossInternalDescription()), t); } }
public void stop() { try { jbossInternalStop(); } catch (Throwable t) { log.warn(ServiceMBeanLogger.ROOT_LOGGER.errorInStop(jbossInternalDescription()), t); } }
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(); } }
sendStateChangeNotification(STARTED, STOPPING, getName() + " stopping", null); if (log.isDebugEnabled()) { log.debug("Stopping " + jbossInternalDescription()); state = FAILED; sendStateChangeNotification(STOPPING, FAILED, getName() + " failed", e); log.warn(ServiceMBeanLogger.ROOT_LOGGER.stoppingFailed(jbossInternalDescription()), e); return; sendStateChangeNotification(STOPPING, STOPPED, getName() + " stopped", null); if (log.isDebugEnabled()) { log.debug("Stopped " + jbossInternalDescription());
sendStateChangeNotification(STOPPED, STARTING, getName() + " starting", null); if (log.isDebugEnabled()) { log.debug("Starting " + jbossInternalDescription()); state = FAILED; sendStateChangeNotification(STARTING, FAILED, getName() + " failed", e); log.warn(ServiceMBeanLogger.ROOT_LOGGER.startingFailed(jbossInternalDescription()), e); throw e; sendStateChangeNotification(STARTING, STARTED, getName() + " started", null); if (log.isDebugEnabled()) { log.debug("Started " + jbossInternalDescription());
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()); }
public void destroy() { try { jbossInternalDestroy(); } catch (Throwable t) { log.warn(ServiceMBeanLogger.ROOT_LOGGER.errorInDestroy(jbossInternalDescription()), t); } }
public void stop() { try { jbossInternalStop(); } catch (Throwable t) { log.warn(ServiceMBeanLogger.ROOT_LOGGER.errorInStop(jbossInternalDescription()), 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()); }
public void stop() { try { jbossInternalStop(); } catch (Throwable t) { log.warn(ServiceMBeanLogger.ROOT_LOGGER.errorInStop(jbossInternalDescription()), t); } }
public void destroy() { try { jbossInternalDestroy(); } catch (Throwable t) { log.warn(ServiceMBeanLogger.ROOT_LOGGER.errorInDestroy(jbossInternalDescription()), t); } }
public void destroy() { try { if (controllerContext != null) pojoChange(ControllerState.CONFIGURED); else if (serviceName != null && isJBossInternalLifecycleExposed) server.invoke(ServiceControllerMBean.OBJECT_NAME, "destroy", new Object[] { serviceName }, SERVICE_CONTROLLER_SIG); else jbossInternalDestroy(); } catch (Throwable t) { log.warn("Error in destroy " + jbossInternalDescription(), t); } }
public void stop() { try { if (controllerContext != null) pojoChange(ControllerState.CREATE); else if (serviceName != null && isJBossInternalLifecycleExposed) server.invoke(ServiceController.OBJECT_NAME, "stop", new Object[] { serviceName }, SERVICE_CONTROLLER_SIG); else jbossInternalStop(); } catch (Throwable t) { log.warn("Error in stop " + jbossInternalDescription(), t); } }
public void stop() { try { if (controllerContext != null) pojoChange(ControllerState.CREATE); else if (serviceName != null && isJBossInternalLifecycleExposed) server.invoke(ServiceControllerMBean.OBJECT_NAME, "stop", new Object[] { serviceName }, SERVICE_CONTROLLER_SIG); else jbossInternalStop(); } catch (Throwable t) { log.warn("Error in stop " + jbossInternalDescription(), t); } }
public void destroy() { try { if (controllerContext != null) pojoChange(ControllerState.CONFIGURED); else if (serviceName != null && isJBossInternalLifecycleExposed) server.invoke(ServiceController.OBJECT_NAME, "destroy", new Object[] { serviceName }, SERVICE_CONTROLLER_SIG); else jbossInternalDestroy(); } catch (Throwable t) { log.warn("Error in destroy " + jbossInternalDescription(), t); } }
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 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 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()); }