Examples of states()


Examples of com.couchbase.client.core.endpoint.Endpoint.states()

    @Override
    public void send(final CouchbaseRequest request) {
        if (request instanceof BucketStreamingRequest) {
            final Endpoint endpoint = factory.create(hostname, bucket, password, port, env, responseBuffer);
            endpointStates.add(endpoint.states());
            endpoint
                .connect()
                .subscribe(new Subscriber<LifecycleState>() {
                    @Override
                    public void onCompleted() {
View Full Code Here

Examples of com.couchbase.client.core.endpoint.Endpoint.states()

        endpointStates = new ArrayList<Observable<LifecycleState>>();
        endpoints = new Endpoint[numEndpoints];
        for (int i = 0; i < numEndpoints; i++) {
            Endpoint endpoint = factory.create(hostname, bucket, password, port, env, responseBuffer);
            endpoints[i] = endpoint;
            endpointStates.add(endpoint.states());
        }

        Observable.combineLatest(endpointStates, new FuncN<LifecycleState>() {
            @Override
            public LifecycleState call(Object... args) {
View Full Code Here

Examples of com.couchbase.client.core.service.Service.states()

            request.type(),
            responseBuffer
        );

        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();
View Full Code Here

Examples of com.zesped.model.Country.states()

      if (!client.isNull("country")) {
        try {
          connect();
            Country oCntr = Countries.top(getSession()).getCountry(getSession(), client.getString("country"));
            if (oCntr!=null)
              oStates = oCntr.states(getSession()).list(getSession());
            else
              oStates = new ArrayList<State>();
            disconnect();
            } catch (Exception xcpt) {
            Log.out.error(xcpt.getMessage(), xcpt);
View Full Code Here

Examples of com.zesped.model.Country.states()

    if (txp!=null) {
      if (!txp.isNull("country")) {
        try {
          connect();
            Country oCntr = Countries.top(getSession()).getCountry(getSession(), txp.getString("country"));
            oStates = oCntr.states(getSession()).list(getSession());
            disconnect();
            } catch (Exception xcpt) {
            Log.out.error(xcpt.getMessage(), xcpt);
            } finally {
            close();
View Full Code Here

Examples of com.zesped.model.Country.states()

    if (txp!=null) {
      if (!txp.isNull("country")) {
        try {
          connect();
            Country oCntr = Countries.top(getSession()).getCountry(getSession(), txp.getString("country"));
            oStates = oCntr.states(getSession()).list(getSession());
            disconnect();
            } catch (Exception xcpt) {
            Log.out.error(xcpt.getMessage(), xcpt);
            } finally {
            close();
View Full Code Here

Examples of org.apache.gora.persistency.StatefulMap.states()

 
        switch (field.schema().getType()) {
          case MAP:
            if (o instanceof StatefulMap) {
              StatefulMap map = (StatefulMap) o;
              Set<?> es = map.states().entrySet();
              for (Object entry : es) {
                Object mapKey = ((Entry) entry).getKey();
                State state = (State) ((Entry) entry).getValue();
 
                switch (state) {
View Full Code Here

Examples of org.apache.gora.persistency.StatefulMap.states()

      switch (field.schema().getType()) {
        case MAP:
          if (o instanceof StatefulMap) {
            StatefulMap map = (StatefulMap) o;
            Set<?> es = map.states().entrySet();
            for (Object entry : es) {
              Object mapKey = ((Entry) entry).getKey();
              State state = (State) ((Entry) entry).getValue();

              switch (state) {
View Full Code Here

Examples of org.apache.gora.persistency.StatefulMap.states()

      switch (field.schema().getType()) {
        case MAP:
          if (o instanceof StatefulMap) {
            StatefulMap map = (StatefulMap) o;
            Set<?> es = map.states().entrySet();
            for (Object entry : es) {
              Object mapKey = ((Entry) entry).getKey();
              State state = (State) ((Entry) entry).getValue();

              switch (state) {
View Full Code Here

Examples of org.jmock.Mockery.states()

        final BrokerService brokerService = context.mock(BrokerService.class);
        final JDBCPersistenceAdapter jdbcPersistenceAdapter = context.mock(JDBCPersistenceAdapter.class);
        final Locker locker = context.mock(Locker.class);

        final States jdbcConn = context.states("jdbc").startsAs("down");
        final States broker = context.states("broker").startsAs("started");

        // simulate jdbc up between hasLock and checkpoint, so hasLock fails to verify
        context.checking(new Expectations() {{
            allowing(brokerService).isRestartAllowed();
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.