public boolean isManageable() { switch(_managed) { case MANAGED: return true; case AUTO: return _bean instanceof LifeCycle && ((LifeCycle)_bean).isStopped(); default: return false; } }
public static String getState(LifeCycle lc) { if (lc.isStarting()) return STARTING; if (lc.isStarted()) return STARTED; if (lc.isStopping()) return STOPPING; if (lc.isStopped()) return STOPPED; return FAILED; }
public boolean isManageable() { switch(_managed) { case MANAGED: return true; case AUTO: return _bean instanceof LifeCycle && ((LifeCycle)_bean).isStopped(); default: return false; } }
public static String getState(LifeCycle lc) { if (lc.isStarting()) return STARTING; if (lc.isStarted()) return STARTED; if (lc.isStopping()) return STOPPING; if (lc.isStopped()) return STOPPED; return FAILED; }
public static String getState(LifeCycle lc) { if (lc.isStarting()) return STARTING; if (lc.isStarted()) return STARTED; if (lc.isStopping()) return STOPPING; if (lc.isStopped()) return STOPPED; return FAILED; }
public static String getState(LifeCycle lc) { if (lc.isStarting()) return STARTING; if (lc.isStarted()) return STARTED; if (lc.isStopping()) return STOPPING; if (lc.isStopped()) return STOPPED; return FAILED; }
public static String getState(LifeCycle lc) { if (lc.isStarting()) return STARTING; if (lc.isStarted()) return STARTED; if (lc.isStopping()) return STOPPING; if (lc.isStopped()) return STOPPED; return FAILED; }
public static String getState(LifeCycle lc) { if (lc.isStarting()) return STARTING; if (lc.isStarted()) return STARTED; if (lc.isStopping()) return STOPPING; if (lc.isStopped()) return STOPPED; return FAILED; }
public static String getState(LifeCycle lc) { if (lc.isStarting()) return STARTING; if (lc.isStarted()) return STARTED; if (lc.isStopping()) return STOPPING; if (lc.isStopped()) return STOPPED; return FAILED; }
public static String getState(LifeCycle lc) { if (lc.isStarting()) return STARTING; if (lc.isStarted()) return STARTED; if (lc.isStopping()) return STOPPING; if (lc.isStopped()) return STOPPED; return FAILED; }
public static String getState(LifeCycle lc) { if (lc.isStarting()) return STARTING; if (lc.isStarted()) return STARTED; if (lc.isStopping()) return STOPPING; if (lc.isStopped()) return STOPPED; return FAILED; }