Examples of LifeCycleState


Examples of com.caucho.lifecycle.LifecycleState

   */
  @Override
  public <I extends DeployInstance>
  I request(DeployController<I> controller)
  {
    LifecycleState state = controller.getState();
   
    if (state.isIdle()) {
      return controller.startImpl();
    }
    else {
      return controller.getDeployInstance();
    }
View Full Code Here

Examples of com.caucho.lifecycle.LifecycleState

   */
  @Override
  public <I extends DeployInstance>
  I subrequest(DeployController<I> controller)
  {
    LifecycleState state = controller.getState();
   
    if (state.isIdle()) {
      return controller.startImpl();
    }
    else { /* active */
      // server/1d0d
      return controller.getDeployInstance();
View Full Code Here

Examples of com.caucho.lifecycle.LifecycleState

  @Override
  public String getState()
  {
    DeployController<?> controller = getController();
   
    LifecycleState state = controller.getState();
   
    if (state.isActive() && controller.isModified())
      return state.toString() + "_MODIFIED";
    else
      return state.toString();
  }
View Full Code Here

Examples of com.couchbase.client.core.state.LifecycleState

        serviceStates.put(service, service.state());
        service.states().subscribe(new Action1<LifecycleState>() {
            @Override
            public void call(LifecycleState state) {
                serviceStates.put(service, state);
                LifecycleState oldState = state();
                LifecycleState newState = recalculateState();
                if (oldState == newState) {
                    return;
                }

                if (newState == LifecycleState.CONNECTED) {
View Full Code Here

Examples of com.hazelcast.core.LifecycleEvent.LifecycleState

    }


    private void fireConnectionEvent(boolean disconnected) {
        final LifecycleServiceImpl lifecycleService = (LifecycleServiceImpl) client.getLifecycleService();
        final LifecycleState state = disconnected ? LifecycleState.CLIENT_DISCONNECTED : LifecycleState.CLIENT_CONNECTED;
        lifecycleService.fireLifecycleEvent(state);
    }
View Full Code Here

Examples of com.netflix.governator.lifecycle.LifecycleState

            warmUpDriver.setState(obj, LifecycleState.WARMING_UP);

            LifecycleMethods    lifecycleMethods = dagManager.getLifecycleMethods(node.getKey());
            Collection<Method>  methods = (lifecycleMethods != null) ? lifecycleMethods.methodsFor(WarmUp.class) : null;

            LifecycleState      newState = LifecycleState.ACTIVE;
            try
            {
                if ( methods != null )
                {
                    for ( Method method : methods )
View Full Code Here

Examples of com.ngdata.hbaseindexer.model.api.IndexerDefinition.LifecycleState

        return fromJson(node, new IndexerDefinitionBuilder());
    }

    public IndexerDefinitionBuilder fromJson(ObjectNode node, IndexerDefinitionBuilder indexerDefinitionBuilder) {
        String name = JsonUtil.getString(node, "name");
        LifecycleState lifecycleState = LifecycleState.valueOf(JsonUtil.getString(node, "lifecycleState"));
        IncrementalIndexingState incrementalIndexingState =
                IncrementalIndexingState.valueOf(JsonUtil.getString(node, "incrementalIndexingState"));
        BatchIndexingState batchIndexingState = BatchIndexingState.valueOf(JsonUtil.getString(node, "batchIndexingState"));

        String queueSubscriptionId = JsonUtil.getString(node, "subscriptionId", null);
View Full Code Here

Examples of com.sun.jdo.spi.persistence.support.sqlstore.state.LifeCycleState

    public synchronized void initialize(boolean persistentInDB) {
        boolean xactActive = persistenceManager.isActiveTransaction();
        boolean optimistic = persistenceManager.isOptimisticTransaction();
        boolean nontransactionalRead = persistenceManager.isNontransactionalRead();
        LifeCycleState oldstate = state;

        if (state == null) {
            if (persistentInDB == false) {
                // Hollow object aquired by PM.getObjectByOid() does not require
                // to be persistent in DB
View Full Code Here

Examples of com.sun.jdo.spi.persistence.support.sqlstore.state.LifeCycleState

                    return;
                }

                deleteRelationships();

                LifeCycleState oldstate = state;
                state = state.transitionDeletePersistent();
                persistenceManager.setFlags(persistentObject, LOAD_REQUIRED);
                registerInstance(false, null, oldstate);
            } finally {
                releaseLock();
View Full Code Here

Examples of com.sun.jdo.spi.persistence.support.sqlstore.state.LifeCycleState

            persistenceConfig.getPersistenceCapableClass().getName());
        }

        // Only refresh if the state allows it.
        if (state.isRefreshable()) {
            LifeCycleState oldstate = state;
            state = state.transitionRefreshPersistent();
            reload(null);
            registerInstance(false, null, oldstate);
        }
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.