Codota Logo
ClusterId.<init>
Code IndexAdd Codota to your IDE (free)

How to use
com.yahoo.vespa.applicationmodel.ClusterId
constructor

Best Java code snippets using com.yahoo.vespa.applicationmodel.ClusterId.<init> (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: com.yahoo.vespa/orchestrator

private static Collection<ServiceCluster> filter(Set<ServiceCluster> controllerClusters,
                            ClusterId contentClusterId) {
  ClusterId clusterControllerClusterId = new ClusterId(contentClusterId.s() + "-controllers");
  return controllerClusters.stream().
      filter(cluster -> cluster.clusterId().equals(clusterControllerClusterId)).
      collect(Collectors.toList());
}
origin: com.yahoo.vespa/orchestrator

@GET
@Path("/{instanceId}/serviceStatusInfo")
@Produces(MediaType.APPLICATION_JSON)
public ServiceStatusInfo getServiceStatus(
    @PathParam("instanceId") String instanceId,
    @QueryParam("clusterId") String clusterIdString,
    @QueryParam("serviceType") String serviceTypeString,
    @QueryParam("configId") String configIdString) {
  ApplicationInstanceReference reference = parseInstanceId(instanceId);
  ApplicationId applicationId = OrchestratorUtil.toApplicationId(reference);
  if (clusterIdString == null) {
    throwBadRequest("Missing clusterId query parameter");
  }
  if (serviceTypeString == null) {
    throwBadRequest("Missing serviceType query parameter");
  }
  if (configIdString == null) {
    throwBadRequest("Missing configId query parameter");
  }
  ClusterId clusterId = new ClusterId(clusterIdString);
  ServiceType serviceType = new ServiceType(serviceTypeString);
  ConfigId configId = new ConfigId(configIdString);
  return rootManager.getStatus(applicationId, clusterId, serviceType, configId);
}
origin: com.yahoo.vespa/node-repository

@Override
public Map<ApplicationInstanceReference, ApplicationInstance> getAllApplicationInstances() {
  // Convert apps information to the response payload to return
  Map<ApplicationInstanceReference, ApplicationInstance> status = new HashMap<>();
  for (Map.Entry<ApplicationId, MockDeployer.ApplicationContext> app : apps.entrySet()) {
    Set<ServiceInstance> serviceInstances = new HashSet<>();
    for (Node node : nodeRepository.getNodes(app.getValue().id(), Node.State.active)) {
      serviceInstances.add(new ServiceInstance(new ConfigId("configid"),
             new HostName(node.hostname()),
             getHostStatus(node.hostname())));
    }
    Set<ServiceCluster> serviceClusters = new HashSet<>();
    serviceClusters.add(new ServiceCluster(new ClusterId(app.getValue().clusterContexts().get(0).cluster().id().value()),
            new ServiceType("serviceType"),
            serviceInstances));
    TenantId tenantId = new TenantId(app.getKey().tenant().value());
    ApplicationInstanceId applicationInstanceId = new ApplicationInstanceId(app.getKey().application().value());
    status.put(new ApplicationInstanceReference(tenantId, applicationInstanceId),
          new ApplicationInstance(tenantId, applicationInstanceId, serviceClusters));
  }
  return status;
}
com.yahoo.vespa.applicationmodelClusterId<init>

Popular methods of ClusterId

  • s
  • equals
  • toString

Popular in Java

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Path (java.nio.file)
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now