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

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • 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/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.applicationmodelTenantId<init>

Popular methods of TenantId

  • s

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
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