if ( SystemState.STARTED.equals( state ) && ( SystemState.STOPPED.equals( currentState ) || SystemState.BROKEN_CONFIGURATION.equals( currentState ) ) ) getLogger().error( "Could not start Nexus! (currentState=" + currentState.toString() + ")", e ); else if ( SystemState.STOPPED.equals( state ) && SystemState.STARTED.equals( currentState ) ) getLogger().error( "Could not stop STARTED Nexus! (currentState=" + currentState.toString() + ")", e ); throw new IllegalArgumentException( "Illegal STATE: '" + state.toString() + "', currentState='" + currentState.toString() + "'" );
if (!SystemState.STARTED.toString().equals(status.getData().getState())) { log.debug("Status check returned system state " + status.getData().getState()); return false;
public boolean isNexusStarted() { return SystemState.STARTED.equals( getState() ); }
resource.setState(status.getState().toString());
resource.setState( status.getState().toString() );