Examples of status()


Examples of org.eclipse.sapphire.modeling.el.FunctionResult.status()

        {
            final FunctionResult result = ExpressionLanguageParser.parse( expr ).evaluate( context );
           
            try
            {
                final Status status = result.status();
                assertEquals( Status.Severity.ERROR, status.severity() );
                assertEquals( expected, status.message() );
            }
            finally
            {
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse.status()

        logger.info("starting node...");
        node = NodeBuilder.nodeBuilder().settings(settings).node();

        ClusterHealthResponse health = node.client().admin().cluster().prepareHealth().setTimeout("5m").setWaitForYellowStatus().execute().actionGet();
        logger.info("health: " + health.status());
        logger.info("active shards: " + health.activeShards());
        logger.info("active primary shards: " + health.activePrimaryShards());
        if (health.timedOut()) {
            logger.error("Timed out on health...");
        }
View Full Code Here

Examples of org.elasticsearch.action.deletebyquery.DeleteByQueryResponse.status()

        assertThat(search.getHits().totalHits(), equalTo(iters));
        DeleteByQueryRequestBuilder deleteByQueryRequestBuilder = client().prepareDeleteByQuery();
        deleteByQueryRequestBuilder.setQuery(QueryBuilders.matchAllQuery());

        DeleteByQueryResponse actionGet = deleteByQueryRequestBuilder.execute().actionGet();
        assertThat(actionGet.status(), equalTo(RestStatus.OK));
        assertThat(actionGet.getIndex("twitter"), notNullValue());
        assertThat(actionGet.getIndex("twitter").getFailedShards(), equalTo(0));

        client().admin().indices().prepareRefresh().execute().actionGet();
        search = client().prepareSearch().setQuery(QueryBuilders.matchAllQuery()).execute().actionGet();
View Full Code Here

Examples of org.elasticsearch.cluster.ClusterState.status()

            } else {
                in = CachedStreamInput.cachedHandles(request.bytes().streamInput());
            }
            in.setVersion(request.version());
            ClusterState clusterState = ClusterState.Builder.readFrom(in, nodesProvider.nodes().localNode(), clusterName);
            clusterState.status(ClusterState.ClusterStateStatus.RECEIVED);
            logger.debug("received cluster state version {}", clusterState.version());
            listener.onNewClusterState(clusterState, new NewClusterStateListener.NewStateProcessed() {
                @Override
                public void onNewClusterStateProcessed() {
                    try {
View Full Code Here

Examples of org.geogrid.aist.tsukubagama.services.request.AccountRequest.status()

        if ( result.isEmpty() ) {
            return false;
        }
        for (Iterator itr = result.iterator(); itr.hasNext(); ) {
            AccountRequest request = (AccountRequest) itr.next();
            AccountRequest.Status status = request.status();
            if (   (status.equals(AccountRequest.Status.NEW))
                || (status.equals(AccountRequest.Status.APPROVED))) {
                foundDup = true;
                break;
            }
View Full Code Here

Examples of org.gridgain.grid.kernal.processors.ggfs.GridGgfsFileAffinityRange.status()

        if (rightRange.greater(blockOff))
            return null;

        if (rightRange.belongs(blockOff))
            return rightRange.status() != RANGE_STATUS_MOVED ? rightRange.affinityKey() :
                includeMoved ? leftRange.affinityKey() : null;

        while (rightIdx - leftIdx > 1) {
            int midIdx = (leftIdx + rightIdx) / 2;
View Full Code Here

Examples of org.gridgain.grid.kernal.processors.rest.protocols.tcp.GridMemcachedMessage.status()

        final GridTuple3<GridRestCommand, Boolean, Boolean> cmd
    ) {
        if (cmd.get1() == NOOP) {
            GridMemcachedMessage res0 = new GridMemcachedMessage(req);

            res0.status(SUCCESS);

            sendResponse(ses, res0);

            return null;
        }
View Full Code Here

Examples of org.infinispan.xsite.XSiteAdminOperations.status()

      String siteName = siteData != null ? siteData.getSiteName() : null;
      XSiteAdminOperations xsiteAdmin = cache.getAdvancedCache().getComponentRegistry().getComponent(XSiteAdminOperations.class);
      for (Option opt : options) {
         switch (opt.toEnum(Options.class)) {
         case STATUS: {
            String status = siteName == null ? xsiteAdmin.status() : xsiteAdmin.siteStatus(siteName);
            return new StringResult(status);
         }
         case ONLINE: {
            if (siteName != null) {
               return new StringResult(xsiteAdmin.bringSiteOnline(siteName));
View Full Code Here

Examples of org.jboss.forge.addon.projects.building.BuildResultBuilder.status()

   @Override
   public BuildResult getBuildResult()
   {
      BuildResultBuilder resultBuilder = BuildResultBuilder.create();
      MavenFacetImpl mvn = getFaceted().getFacet(MavenFacetImpl.class);
      resultBuilder.status(mvn.isModelValid());
      try
      {
         ProjectBuildingResult result = mvn.getProjectBuildingResult();
         if (!result.getProblems().isEmpty())
         {
View Full Code Here

Examples of org.jclouds.compute.domain.ImageBuilder.status()

      ImageBuilder builder = new ImageBuilder();
      builder.ids(from.getOsType().getCode() + "");
      builder.name(from.getName());
      builder.description(from.getDescription());
      builder.operatingSystem(from);
      builder.status(Status.AVAILABLE);
      return builder.build();
   }

}
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.