public String getStateString() { return getStateString(state); }
public String toString() { StringBuffer sbuf = new StringBuffer(512); sbuf.append("ObjectName: ").append(objectName); sbuf.append("\n State: ").append(stateNames[state]); if (state == FAILED && problem != null) { sbuf.append("\n Reason: ").append(problem.toString()); } printList(sbuf, "\n I Depend On:", iDependOn); printList(sbuf, "\n Depends On Me:", dependsOnMe); // this magically makes *all* jmx-console outputs look better :) sbuf.append("\n"); return sbuf.toString(); }
public void install(ControllerState fromState, ControllerState toState) throws Throwable { try { super.install(fromState, toState); } catch (Throwable t) { serviceContext.setProblem(t); serviceContext.state = ServiceContext.FAILED; throw t; } }
Throwable t = context.getProblem(); if (t != null) throw t;
public String getStateString() { return getStateString(state); }
public void install(ControllerState fromState, ControllerState toState) throws Throwable { try { super.install(fromState, toState); } catch (Throwable t) { serviceContext.setProblem(t); serviceContext.state = ServiceContext.FAILED; throw t; } }
public String toString() { StringBuffer sbuf = new StringBuffer(512); sbuf.append("ObjectName: ").append(objectName); sbuf.append("\n State: ").append(stateNames[state]); if (state == FAILED && problem != null) { sbuf.append("\n Reason: ").append(problem.toString()); } printList(sbuf, "\n I Depend On:", iDependOn); printList(sbuf, "\n Depends On Me:", dependsOnMe); // this magically makes *all* jmx-console outputs look better :) sbuf.append("\n"); return sbuf.toString(); }
if (ctx.state != ServiceContext.RUNNING) log.debug("Ignoring stop request for service: " + ctx.objectName + " at state " + ctx.getStateString()); return;
/** * Get the service context * * @return the service context */ public ServiceContext getServiceContext() { try { serviceContext.proxy = getServiceProxy(); } catch (Exception ignored) { } if (getError() != null) serviceContext.setProblem(getError()); if (getState() == ControllerState.ERROR) serviceContext.state = ServiceContext.FAILED; return serviceContext; }
if (ctx.state == ServiceContext.DESTROYED || ctx.state == ServiceContext.NOTYETINSTALLED || ctx.state == ServiceContext.FAILED) log.debug("Ignoring destroy request for service: " + ctx.objectName + " at state " + ctx.getStateString()); return;
/** * Get the service context * * @return the service context */ public ServiceContext getServiceContext() { try { serviceContext.proxy = getServiceProxy(); } catch (Exception ignored) { } if (getError() != null) serviceContext.setProblem(getError()); if (getState() == ControllerState.ERROR) serviceContext.state = ServiceContext.FAILED; return serviceContext; }
log.debug("Ignoring start request for service: " + ctx.objectName + " at state " + ctx.getStateString()); return;
|| ctx.state == ServiceContext.FAILED) log.debug("Ignoring create request for service: " + ctx.objectName + " at state " + ctx.getStateString()); return;
if (ctx.state != ServiceContext.RUNNING) log.debugf("Ignoring stop request for service: %1s at state %2s", ctx.objectName, ctx.getStateString()); return;
if (ctx.state == ServiceContext.DESTROYED || ctx.state == ServiceContext.NOTYETINSTALLED || ctx.state == ServiceContext.FAILED) log.debugf("Ignoring destroy request for service: %1s at state %2s", ctx.objectName, ctx.getStateString()); return;
log.debugf("Ignoring start request for service: %1s at state %2s", ctx.objectName, ctx.getStateString()); return;
|| ctx.state == ServiceContext.FAILED) log.debugf("Ignoring create request for service %1s at state %2s", ctx.objectName, ctx.getStateString()); return;