Tabnine Logo
DeployState$Builder.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.yahoo.config.model.deploy.DeployState$Builder
constructor

Best Java code snippets using com.yahoo.config.model.deploy.DeployState$Builder.<init> (Showing top 8 results out of 315)

origin: com.yahoo.vespa/application

private VespaModel createVespaModel() {
  try {
    DeployState deployState = new DeployState.Builder()
        .applicationPackage(FilesApplicationPackage.fromFile(path.toFile(), 
                                   /* Include source files */ true))
        .deployLogger((level, s) -> { })
        .build();
    return new VespaModel(new NullConfigModelRegistry(), deployState);
  } catch (IOException | SAXException e) {
    throw new IllegalArgumentException("Error creating application from '" + path + "'", e);
  }
}
origin: com.yahoo.vespa/config-model

private DeployState createDeployState(ModelContext modelContext, ValidationParameters validationParameters) {
  DeployState.Builder builder = new DeployState.Builder()
    .applicationPackage(modelContext.applicationPackage())
    .deployLogger(modelContext.deployLogger())
    .configDefinitionRepo(modelContext.configDefinitionRepo())
    .fileRegistry(modelContext.getFileRegistry())
    .permanentApplicationPackage(modelContext.permanentApplicationPackage())
    .properties(modelContext.properties())
    .vespaVersion(version())
    .modelHostProvisioner(createHostProvisioner(modelContext))
    .rotations(modelContext.properties().rotations())
    .modelImporters(modelImporters)
    .zone(zone)
    .now(clock.instant())
    .wantedNodeVespaVersion(modelContext.wantedNodeVespaVersion());
  modelContext.previousModel().ifPresent(builder::previousModel);
  return builder.build(validationParameters);
}
origin: com.yahoo.vespa/config-model

public static DeployState createTestState(ApplicationPackage applicationPackage) {
  return new Builder().applicationPackage(applicationPackage).build();
}
origin: com.yahoo.vespa/config-model

public MockRoot(String rootConfigId, ApplicationPackage applicationPackage) {
  this(rootConfigId, new DeployState.Builder().applicationPackage(applicationPackage).build());
}
origin: com.yahoo.vespa/config-model

public static DeployState createTestState() {
  return new Builder().build();
}
origin: com.yahoo.vespa/config-model

/**
 * Build a model from an application package.
 *
 * @param applicationPackage Any type of application package.
 * @return a producer root capable of answering getConfig requests.
 */
public TestRoot buildModel(ApplicationPackage applicationPackage) {
  return buildModel(new DeployState.Builder().applicationPackage(applicationPackage).build());
}
origin: com.yahoo.vespa/config-model

/**
 * Constructs vespa model using config given in app
 *
 * @param app the application to create a model from
 * @param configModelRegistry a registry of config model "main" classes which may be used
 *        to instantiate config models
 */
public VespaModel(ApplicationPackage app, ConfigModelRegistry configModelRegistry) throws IOException, SAXException {
  this(configModelRegistry, new DeployState.Builder().applicationPackage(app).build());
}
origin: com.yahoo.vespa/standalone-container

private static DeployState createDeployState(ApplicationPackage applicationPackage, FileRegistry fileRegistry, DeployLogger logger) {
  DeployState.Builder builder = new DeployState.Builder()
      .applicationPackage(applicationPackage)
      .fileRegistry(fileRegistry)
      .deployLogger(logger)
      .configDefinitionRepo(configDefinitionRepo);
  /* Temporarily disable until we know how status.html is updated for config servers/controllers
  if (isConfigServer())
    builder.properties(new DeployProperties.Builder()
                  .hostedVespa(new CloudConfigInstallVariables().hostedVespa().orElse(Boolean.FALSE))
                  .build());
  */
  return builder.build();
}
com.yahoo.config.model.deployDeployState$Builder<init>

Popular methods of DeployState$Builder

  • applicationPackage
  • build
  • deployLogger
  • configDefinitionRepo
  • fileRegistry
  • closeIgnoreException
  • createSearchDocumentModel
  • getSearchDefinitionRelativePath
  • modelHostProvisioner
  • modelImporters
  • now
  • permanentApplicationPackage
  • now,
  • permanentApplicationPackage,
  • properties,
  • rotations,
  • stripSuffix,
  • vespaVersion,
  • wantedNodeVespaVersion,
  • zone

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Collectors (java.util.stream)
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Reference (javax.naming)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now