Codota Logo
Include
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
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

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JFileChooser (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
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