Package org.jboss.bootstrap.spi.lifecycle

Examples of org.jboss.bootstrap.spi.lifecycle.LifecycleState


      if (server == null)
      {
         throw new IllegalArgumentException("Server must be specified");
      }

      final LifecycleState state = server.getState();
      final LifecycleState required = LifecycleState.PRE_INIT;
      if (!state.equals(required))
      {
         throw new IllegalStateException(this + " may only be invoked when " + LifecycleState.class.getSimpleName()
               + " is " + required + ", was: " + state);
      }
View Full Code Here


   /* (non-Javadoc)
    * @see org.jboss.bootstrap.spi.server.Server#getState()
    */
   public final synchronized LifecycleState getState()
   {
      LifecycleState state = this.state;
      if (state == null)
      {
         throw new IllegalStateException("null state");
      }
      return state;
View Full Code Here

      {
         log.trace("Received request to shutdown");
      }

      // Ensure running
      LifecycleState required = LifecycleState.STARTED;
      LifecycleState actual = this.getState();
      this.checkState(required, actual);

      // Initiate shutdown sequence
      log.info("Stopping: " + this);
      this.setState(LifecycleState.STOPPING);
View Full Code Here

         log.debug("Invoking implicit initialization from start()");
         this.initialize();
      }

      // Ensure idle
      final LifecycleState required = LifecycleState.IDLE;
      final LifecycleState actual = this.getState();
      this.checkState(required, actual);

      // Initiate shutdown sequence
      log.info("Starting: " + this);
      this.setState(LifecycleState.STARTING);
View Full Code Here

      /*
       * Precondition checks
       */

      // State must be pre-initialized
      final LifecycleState state = this.getState();
      if (!state.equals(LifecycleState.PRE_INIT))
      {
         throw new IllegalStateException("Cannot initialize an already initialized server, state is: " + state);
      }

      // Config must be in place
View Full Code Here

TOP

Related Classes of org.jboss.bootstrap.spi.lifecycle.LifecycleState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.