Codota Logo
DeployState$Builder.<init>
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
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/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();
}
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/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

public static DeployState createTestState() {
  return new Builder().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(ApplicationPackage applicationPackage) {
  return new Builder().applicationPackage(applicationPackage).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

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • onRequestPermissionsResult (Fragment)
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
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