Codota Logo
ApplicationInstanceId
Code IndexAdd Codota to your IDE (free)

How to use
ApplicationInstanceId
in
com.yahoo.vespa.applicationmodel

Best Java code snippets using com.yahoo.vespa.applicationmodel.ApplicationInstanceId (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: com.yahoo.vespa/orchestrator

/** Returns an ApplicationInstanceReference constructed from the serialized format used in the REST API. */
public static ApplicationInstanceReference parseAppInstanceReference(String restFormat) {
  if (restFormat == null) {
    throw new IllegalArgumentException("Could not construct instance id from null string");
  }
  Matcher matcher = APPLICATION_INSTANCE_REFERENCE_REST_FORMAT_PATTERN.matcher(restFormat);
  if (!matcher.matches()) {
    throw new IllegalArgumentException("Could not construct instance id from string \"" + restFormat +"\"");
  }
  TenantId tenantId = new TenantId(matcher.group(1));
  ApplicationInstanceId applicationInstanceId = new ApplicationInstanceId(matcher.group(2));
  return new ApplicationInstanceReference(tenantId, applicationInstanceId);
}
origin: com.yahoo.vespa/application-model

public String asString() {
  return tenantId.s() + ":" + applicationInstanceId.s();
}
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.applicationmodelApplicationInstanceId

Most used methods

  • <init>
  • s

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • JButton (javax.swing)
  • Join (org.hibernate.mapping)
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