Codota Logo
DeployState$Builder.applicationPackage
Code IndexAdd Codota to your IDE (free)

How to use
applicationPackage
method
in
com.yahoo.config.model.deploy.DeployState$Builder

Best Java code snippets using com.yahoo.config.model.deploy.DeployState$Builder.applicationPackage (Showing top 7 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 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$BuilderapplicationPackage

Popular methods of DeployState$Builder

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

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • JTable (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
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