Examples of LifecycleState


Examples of org.apache.catalina.LifecycleState

        }

        // Shut down the server
        try {
            Server s = getServer();
            LifecycleState state = s.getState();
            if (LifecycleState.STOPPING_PREP.compareTo(state) <= 0
                    && LifecycleState.DESTROYED.compareTo(state) >= 0) {
                // Nothing to do. stop() was already called
            } else {
                s.stop();
View Full Code Here

Examples of org.apache.catalina.LifecycleState

        }

        // Shut down the server
        try {
            Server s = getServer();
            LifecycleState state = s.getState();
            if (LifecycleState.STOPPING_PREP.compareTo(state) <= 0
                    && LifecycleState.DESTROYED.compareTo(state) >= 0) {
                // Nothing to do. stop() was already called
            } else {
                s.stop();
View Full Code Here

Examples of org.apache.catalina.LifecycleState

        }

        // Shut down the server
        try {
            Server s = getServer();
            LifecycleState state = s.getState();
            if (LifecycleState.STOPPING_PREP.compareTo(state) <= 0
                    && LifecycleState.DESTROYED.compareTo(state) >= 0) {
                // Nothing to do. stop() was already called
            } else {
                s.stop();
View Full Code Here

Examples of org.codehaus.wadi.servicespace.LifecycleState

        public ServiceSpaceListenerAdapter(SessionManagerListener listener) {
            this.listener = listener;
        }

        public void receive(ServiceSpaceLifecycleEvent event, Set<Peer> newHostingPeers) {
            LifecycleState state = event.getState();
            if (state == LifecycleState.STARTED) {
                Set<Node> newHostingNodes = mapToNodes(newHostingPeers);
                Node joiningNode = mapToNode(event.getHostingPeer());
                listener.onJoin(joiningNode, newHostingNodes);
            } else if (state == LifecycleState.STOPPED || state == LifecycleState.FAILED) {
View Full Code Here

Examples of org.datanucleus.state.LifeCycleState

                if (getManageRelationsChecks())
                {
                    // Tests for negative situations where inconsistently assigned
                    for (ObjectProvider sm : managedRelationDetails.keySet())
                    {
                        LifeCycleState lc = sm.getLifecycleState();
                        if (lc == null || lc.isDeleted())
                        {
                            // Has been deleted so ignore all relationship changes
                            continue;
                        }
                        RelationshipManager relMgr = managedRelationDetails.get(sm);
                        relMgr.checkConsistency();
                    }
                }

                // Process updates to manage the other side of the relations
                Iterator<ObjectProvider> opIter = managedRelationDetails.keySet().iterator();
                while (opIter.hasNext())
                {
                    ObjectProvider op = opIter.next();
                    LifeCycleState lc = op.getLifecycleState();
                    if (lc == null || lc.isDeleted())
                    {
                        // Has been deleted so ignore all relationship changes
                        continue;
                    }
                    RelationshipManager relMgr = managedRelationDetails.get(op);
View Full Code Here

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

      if (tomcatDeployer == null)
         throw new IllegalStateException("Must set TomcatDeployer before stopping");

      // Hot undeploy
      final LifecycleState currentState = (LifecycleState) server.getAttribute(ServerImplMBean.OBJECT_NAME, "State");
      boolean inShutdown = currentState.equals(LifecycleState.STOPPING);
      if (!inShutdown || connectorsRunning)
      {
         log.debug("Server '" + ServerImplMBean.OBJECT_NAME + "' already started, stopping connectors now");

         stopConnectors();
View Full Code Here

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

    * more AS5.x support)
    */
   @Deprecated
   public boolean isStarted()
   {
      final LifecycleState state = this.getState();
      return state.equals(LifecycleState.STARTED);
   }
View Full Code Here

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

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

   /* (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

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

      {
         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
TOP
Copyright © 2018 www.massapi.com. 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.