Tabnine Logo
Include
Code IndexAdd Tabnine to your IDE (free)

How to use
Include
in
co.cask.coopr.spec.template

Best Java code snippets using co.cask.coopr.spec.template.Include (Showing top 2 results out of 315)

origin: caskdata/coopr

 private Set<AbstractTemplate> resolvePartialIncludes(EntityStoreView entityStore, Set<Include> includes)
  throws IOException, TemplateNotFoundException {
  Set<AbstractTemplate> partials = Sets.newLinkedHashSet();
  if (includes != null) {
   for (Include include : includes) {
    PartialTemplate partialTemplate = entityStore.getPartialTemplate(include.getName());
    if (partialTemplate == null) {
     throw new TemplateNotFoundException(include.getName() + " partial template not found.");
    }
    partials.add(partialTemplate);
   }
  }
  return partials;
 }
}
origin: caskdata/coopr

@Test
public void test_03_persistentTemplatesConsistence() throws Exception {
 PartialTemplate ldapInternal = entityStoreView.getPartialTemplate("LDAP-internal");
 PartialTemplate sensuInternal = entityStoreView.getPartialTemplate("sensu-internal");
 ClusterTemplate cdapDistributedSecureHadoop = entityStoreView.getClusterTemplate("cdap-distributed-secure-hadoop");
 ClusterTemplate cdapDistributedInsecure = entityStoreView.getClusterTemplate("cdap-distributed-insecure");
 ClusterTemplate cdapDistributed = entityStoreView.getClusterTemplate("cdap-distributed");
 Assert.assertNotNull(ldapInternal);
 Assert.assertNotNull(sensuInternal);
 Assert.assertNotNull(cdapDistributedSecureHadoop);
 Assert.assertNotNull(cdapDistributedInsecure);
 Assert.assertNotNull(cdapDistributed);
 Assert.assertEquals("Configure Example, Inc. LDAP services", ldapInternal.getDescription());
 Assert.assertEquals(true, sensuInternal.isImmutable());
 Assert.assertEquals("ldap-internal", ldapInternal.clusterDefaults.getServices().iterator().next());
 Assert.assertEquals("ldap-internal", ldapInternal.compatibilities.getServices().iterator().next());
 Assert.assertNotNull(ldapInternal.clusterDefaults.getConfig().get("ldap"));
 Assert.assertEquals("ldap.wrong.com", ldapInternal.clusterDefaults.getConfig().get("ldap")
  .getAsJsonObject().get("endpoint").getAsString());
 Assert.assertEquals("Cask DAP (CDAP) with Security and Secure Hadoop cluster with single master",
           cdapDistributedSecureHadoop.getDescription());
 Assert.assertNotNull(cdapDistributedSecureHadoop.getParent());
 Assert.assertEquals("cdap-distributed", cdapDistributedSecureHadoop.getParent().getName());
 Assert.assertNotNull(cdapDistributedSecureHadoop.getIncludes());
 Assert.assertEquals("LDAP-internal", cdapDistributedSecureHadoop.getIncludes().iterator().next().getName());
 Assert.assertEquals(3, cdapDistributedSecureHadoop.clusterDefaults.getServices().size());
 Assert.assertNotNull(cdapDistributedSecureHadoop.getClusterDefaults().getConfig().get("hive"));
 Assert.assertEquals("kerberos-client",
           cdapDistributedSecureHadoop.getCompatibilities().getServices().iterator().next());
}
co.cask.coopr.spec.templateInclude

Javadoc

Includes for template

Most used methods

  • getName

Popular in Java

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JLabel (javax.swing)
  • Top Sublime Text plugins
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