Examples of ServiceStatus


Examples of com.netflix.suro.thrift.ServiceStatus

            if (inputManager.getInput("thrift") != null) {
                if (client == null) {
                    client = getClient("localhost", config.getPort(), 5000);
                }

                ServiceStatus status = client.getStatus();
                if (status != ServiceStatus.ALIVE) {
                    throw new RuntimeException("NOT ALIVE!!!");
                }
            }
View Full Code Here

Examples of com.vmware.bdd.software.mgmt.plugin.monitor.ServiceStatus

   @Override
   public ClusterReport queryClusterStatus(ClusterBlueprint blueprint) {
      AmClusterDef clusterDef = new AmClusterDef(blueprint, privateKey);
      try {
         ServiceStatus status =
               apiManager.getClusterStatus(blueprint.getName(),
                     blueprint.getHadoopStack());
         clusterDef.getCurrentReport().setStatus(status);

         Map<String, ServiceStatus> hostStates =
View Full Code Here

Examples of net.gridshield.nexsm.entityclasses.ServiceStatus

                String klass = "";
                String hostname = "";
                String service = "";
                Host h = null;
                HostStatus hs = null;
                ServiceStatus ss = null;
                if (args.length >= 1) {
                    klass = (String)args[0];
                }
                if (args.length >= 2) {
                    hostname = (String)args[1];
View Full Code Here

Examples of net.gridshield.nexsm.entityclasses.ServiceStatus

            if (scheduled_downtime_depth) { try {
                    htmp.setScheduledDowntimeDepth(Integer.parseInt(str));
                } catch (NumberFormatException nfe) { System.out.println("NumberFormatExcetion in DHStatus:scheduledowntimedepth, " + nfe.toString()); }
            }
        } else if (serviceDefinition) {
            if (host_name) { stmp = new ServiceStatus(str); }
            if (last_check) {
                try {
                    stmp.setLastCheck(Long.parseLong(str)*1000);
                }catch (NumberFormatException nfe) {}
            }
View Full Code Here

Examples of org.apache.camel.ServiceStatus

    }

    public String getState() {
        // must use String type to be sure remote JMX can read the attribute without requiring Camel classes.
        if (component instanceof StatefulService) {
            ServiceStatus status = ((StatefulService) component).getStatus();
            return status.name();
        }

        // assume started if not a ServiceSupport instance
        return ServiceStatus.Started.name();
    }
View Full Code Here

Examples of org.apache.camel.ServiceStatus

    @Override
    public String getState() {
        // must use String type to be sure remote JMX can read the attribute without requiring Camel classes.
        if (endpoint instanceof StatefulService) {
            ServiceStatus status = ((StatefulService) endpoint).getStatus();
            return status.name();
        }

        // assume started if not a ServiceSupport instance
        return ServiceStatus.Started.name();
    }
View Full Code Here

Examples of org.apache.camel.ServiceStatus

                    if (route.getId().equals(existingRoute.getId())) {
                        // skip ourselves
                        continue;
                    }
                    Endpoint existing = existingRoute.getEndpoint();
                    ServiceStatus status = getRouteStatus(existingRoute.getId());
                    if (status != null && (status.isStarted() || status.isStarting())) {
                        existingEndpoints.add(existing);
                    }
                }
                if (!doCheckMultipleConsumerSupportClash(endpoint, existingEndpoints)) {
                    throw new FailedToStartRouteException(routeService.getId(),
View Full Code Here

Examples of org.apache.camel.ServiceStatus

    }

    private static String getEndpointState(Endpoint endpoint) {
        // must use String type to be sure remote JMX can read the attribute without requiring Camel classes.
        if (endpoint instanceof StatefulService) {
            ServiceStatus status = ((StatefulService) endpoint).getStatus();
            return status.name();
        }

        // assume started if not a ServiceSupport instance
        return ServiceStatus.Started.name();
    }
View Full Code Here

Examples of org.apache.camel.ServiceStatus

                    if (route.getId().equals(existingRoute.getId())) {
                        // skip ourselves
                        continue;
                    }
                    Endpoint existing = existingRoute.getEndpoint();
                    ServiceStatus status = getRouteStatus(existingRoute.getId());
                    if (status != null && (status.isStarted() || status.isStarting())) {
                        existingEndpoints.add(existing);
                    }
                }
                if (!doCheckMultipleConsumerSupportClash(endpoint, existingEndpoints)) {
                    throw new FailedToStartRouteException(routeService.getId(),
View Full Code Here

Examples of org.apache.camel.ServiceStatus

        return super.getEndpointUri();
    }

    @ManagedAttribute(description = "Service State")
    public String getState() {
        ServiceStatus status = this.getStatus();
        // if no status exists then its stopped
        if (status == null) {
            status = ServiceStatus.Stopped;
        }
        return status.name();
    }
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.