congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
AggregateConf.resolve
Code IndexAdd Tabnine to your IDE (free)

How to use
resolve
method
in
org.apache.slider.core.conf.AggregateConf

Best Java code snippets using org.apache.slider.core.conf.AggregateConf.resolve (Showing top 18 results out of 315)

origin: apache/incubator-slider

/**
 * Load the instance definition. 
 * @param name cluster name
 * @param resolved flag to indicate the cluster should be resolved
 * @return the loaded configuration
 * @throws IOException IO problems
 * @throws SliderException slider explicit issues
 * @throws UnknownApplicationInstanceException if the file is not found
 */
 public AggregateConf loadInstanceDefinition(String name,
   boolean resolved) throws
   IOException,
   SliderException {
 Path clusterDirectory = sliderFileSystem.buildClusterDirPath(name);
 AggregateConf instanceDefinition = loadInstanceDefinitionUnresolved(
  name,
  clusterDirectory);
 if (resolved) {
  instanceDefinition.resolve();
 }
 return instanceDefinition;
}
origin: org.apache.slider/slider-core

/**
 * Load the instance definition. 
 * @param name cluster name
 * @param resolved flag to indicate the cluster should be resolved
 * @return the loaded configuration
 * @throws IOException IO problems
 * @throws SliderException slider explicit issues
 * @throws UnknownApplicationInstanceException if the file is not found
 */
 public AggregateConf loadInstanceDefinition(String name,
   boolean resolved) throws
   IOException,
   SliderException {
 Path clusterDirectory = sliderFileSystem.buildClusterDirPath(name);
 AggregateConf instanceDefinition = loadInstanceDefinitionUnresolved(
  name,
  clusterDirectory);
 if (resolved) {
  instanceDefinition.resolve();
 }
 return instanceDefinition;
}
origin: org.apache.slider/slider-core

 componentAppConf.getOrAddComponent(rcomp);
componentConf.resolve();
origin: apache/incubator-slider

 componentAppConf.getOrAddComponent(rcomp);
componentConf.resolve();
origin: org.apache.slider/slider-core

instanceDefinition.resolve();
origin: apache/incubator-slider

instanceDefinition.resolve();
origin: apache/incubator-slider

@Test
public void testContainerKeystoreGenerationViaStoresGeneratorOverrideGlobalSetting() throws Exception {
 AggregateConf instanceDefinition = new AggregateConf();
 MapOperations compOps = setupComponentOptions(true, null,
                        "app1.component1.password.property",
                        null, null);
 instanceDefinition.getAppConf().components.put("component1", compOps);
 instanceDefinition.getAppConf().global.put(
   "app1.component1.password.property", "password");
 instanceDefinition.getAppConf().global.put(SliderKeys.COMP_STORES_REQUIRED_KEY, "false");
 instanceDefinition.resolve();
 SecurityStore[]
   files = StoresGenerator.generateSecurityStores("testhost",
                           "container1",
                           "component1",
                           instanceDefinition,
                           compOps);
 assertEquals("wrong number of stores", 1, files.length);
 validateKeystore(files[0].getFile(), "testhost", "cahost");
}
origin: org.apache.slider/slider-core

@Test
public void testContainerKeystoreGenerationViaStoresGeneratorOverrideGlobalSetting() throws Exception {
 AggregateConf instanceDefinition = new AggregateConf();
 MapOperations compOps = setupComponentOptions(true, null,
                        "app1.component1.password.property",
                        null, null);
 instanceDefinition.getAppConf().components.put("component1", compOps);
 instanceDefinition.getAppConf().global.put(
   "app1.component1.password.property", "password");
 instanceDefinition.getAppConf().global.put(SliderKeys.COMP_STORES_REQUIRED_KEY, "false");
 instanceDefinition.resolve();
 SecurityStore[]
   files = StoresGenerator.generateSecurityStores("testhost",
                           "container1",
                           "component1",
                           instanceDefinition,
                           compOps);
 assertEquals("wrong number of stores", 1, files.length);
 validateKeystore(files[0].getFile(), "testhost", "cahost");
}
origin: org.apache.slider/slider-core

resolvedInstance.resolve();
origin: apache/incubator-slider

resolvedInstance.resolve();
origin: org.apache.slider/slider-core

@Test
public void testContainerKeystoreGenerationViaStoresGeneratorUsingGlobalProps() throws Exception {
 AggregateConf instanceDefinition = new AggregateConf();
 MapOperations compOps = new MapOperations();
 instanceDefinition.getAppConf().components.put("component1", compOps);
 compOps.put(SliderKeys.COMP_KEYSTORE_PASSWORD_PROPERTY_KEY,
       "app1.component1.password.property");
 instanceDefinition.getAppConf().global.put(SliderKeys.COMP_STORES_REQUIRED_KEY, "true");
 compOps.put(
   "app1.component1.password.property", "password");
 instanceDefinition.resolve();
 SecurityStore[]
   files = StoresGenerator.generateSecurityStores("testhost",
                           "container1",
                           "component1",
                           instanceDefinition,
                           compOps);
 assertEquals("wrong number of stores", 1, files.length);
 validateKeystore(files[0].getFile(), "testhost", "cahost");
}
origin: org.apache.slider/slider-core

instanceDefinition.resolve();
launchedInstanceDefinition = instanceDefinition;
origin: org.apache.slider/slider-core

@Test
public void testContainerKeystoreGenerationViaStoresGenerator() throws Exception {
 AggregateConf instanceDefinition = new AggregateConf();
 MapOperations compOps = new MapOperations();
 instanceDefinition.getAppConf().components.put("component1", compOps);
 compOps.put(SliderKeys.COMP_KEYSTORE_PASSWORD_PROPERTY_KEY,
       "app1.component1.password.property");
 compOps.put(SliderKeys.COMP_STORES_REQUIRED_KEY, "true");
 instanceDefinition.getAppConf().global.put(
   "app1.component1.password.property", "password");
 instanceDefinition.resolve();
 SecurityStore[]
   files = StoresGenerator.generateSecurityStores("testhost",
                           "container1",
                           "component1",
                           instanceDefinition,
                           compOps);
 assertEquals("wrong number of stores", 1, files.length);
 validateKeystore(files[0].getFile(), "testhost", "cahost");
}
origin: apache/incubator-slider

instanceDefinition.resolve();
launchedInstanceDefinition = instanceDefinition;
origin: apache/incubator-slider

@Test
public void testContainerKeystoreGenerationViaStoresGenerator() throws Exception {
 AggregateConf instanceDefinition = new AggregateConf();
 MapOperations compOps = new MapOperations();
 instanceDefinition.getAppConf().components.put("component1", compOps);
 compOps.put(SliderKeys.COMP_KEYSTORE_PASSWORD_PROPERTY_KEY,
       "app1.component1.password.property");
 compOps.put(SliderKeys.COMP_STORES_REQUIRED_KEY, "true");
 instanceDefinition.getAppConf().global.put(
   "app1.component1.password.property", "password");
 instanceDefinition.resolve();
 SecurityStore[]
   files = StoresGenerator.generateSecurityStores("testhost",
                           "container1",
                           "component1",
                           instanceDefinition,
                           compOps);
 assertEquals("wrong number of stores", 1, files.length);
 validateKeystore(files[0].getFile(), "testhost", "cahost");
}
origin: apache/incubator-slider

@Test
public void testContainerKeystoreGenerationViaStoresGeneratorUsingGlobalProps() throws Exception {
 AggregateConf instanceDefinition = new AggregateConf();
 MapOperations compOps = new MapOperations();
 instanceDefinition.getAppConf().components.put("component1", compOps);
 compOps.put(SliderKeys.COMP_KEYSTORE_PASSWORD_PROPERTY_KEY,
       "app1.component1.password.property");
 instanceDefinition.getAppConf().global.put(SliderKeys.COMP_STORES_REQUIRED_KEY, "true");
 compOps.put(
   "app1.component1.password.property", "password");
 instanceDefinition.resolve();
 SecurityStore[]
   files = StoresGenerator.generateSecurityStores("testhost",
                           "container1",
                           "component1",
                           instanceDefinition,
                           compOps);
 assertEquals("wrong number of stores", 1, files.length);
 validateKeystore(files[0].getFile(), "testhost", "cahost");
}
origin: org.apache.slider/slider-core

aggregateConf.resolve();
origin: apache/incubator-slider

aggregateConf.resolve();
org.apache.slider.core.confAggregateConfresolve

Popular methods of AggregateConf

  • getAppConfOperations
  • getResourceOperations
  • getInternalOperations
  • <init>
  • getAppConf
  • setAppConf
  • setInternal
  • setName
  • getInternal
  • getName
  • getPassphrase
  • getResources
  • getPassphrase,
  • getResources,
  • isComplete,
  • isVersioned,
  • setResources,
  • toString,
  • validate

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • startActivity (Activity)
  • scheduleAtFixedRate (Timer)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • JCheckBox (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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