protected String jbossInternalDescription() { if (serviceName != null) return serviceName.toString(); else return getName(); }
sendStateChangeNotification(STOPPED, STARTING, getName() + " starting", null); if (log.isDebugEnabled()) { log.debug("Starting " + jbossInternalDescription()); } catch (Exception e) { 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());
sendStateChangeNotification(STARTED, STOPPING, getName() + " stopping", null); if (log.isDebugEnabled()) { log.debug("Stopping " + jbossInternalDescription()); } catch (Throwable e) { 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());
protected String jbossInternalDescription() { if (serviceName != null) return serviceName.toString(); else return getName(); }
protected String jbossInternalDescription() { if (serviceName != null) return serviceName.toString(); else return getName(); }
protected String jbossInternalDescription() { if (serviceName != null) return serviceName.toString(); else return getName(); }
protected String jbossInternalDescription() { if (serviceName != null) return serviceName.toString(); else return getName(); }
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()); }
sendStateChangeNotification(STOPPED, STARTING, getName() + " starting", null); log.debug("Starting " + jbossInternalDescription()); sendStateChangeNotification(STARTING, FAILED, getName() + " failed", e); log.debug("Starting failed " + jbossInternalDescription(), e); throw e; sendStateChangeNotification(STARTING, STARTED, getName() + " started", null); log.debug("Started " + 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()); }
sendStateChangeNotification(STARTED, STOPPING, getName() + " stopping", null); if (log.isDebugEnabled()) { log.debug("Stopping " + jbossInternalDescription()); } catch (Throwable e) { 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()); } catch (Exception e) { 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());
sendStateChangeNotification(STARTED, STOPPING, getName() + " stopping", null); if (log.isDebugEnabled()) { log.debug("Stopping " + jbossInternalDescription()); } catch (Throwable e) { 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()); } catch (Exception e) { 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());
sendStateChangeNotification(STOPPED, STARTING, getName() + " starting", null); log.debugf("Starting %1s", jbossInternalDescription()); sendStateChangeNotification(STARTING, FAILED, getName() + " failed", e); log.debugf(e, "Starting failed %1s", jbossInternalDescription()); throw e; sendStateChangeNotification(STARTING, STARTED, getName() + " started", null); log.debugf("Started %1s", jbossInternalDescription());