congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ProgramSystemMetadataWriter
Code IndexAdd Tabnine to your IDE (free)

How to use
ProgramSystemMetadataWriter
in
co.cask.cdap.data2.metadata.system

Best Java code snippets using co.cask.cdap.data2.metadata.system.ProgramSystemMetadataWriter (Showing top 4 results out of 315)

origin: cdapio/cdap

 private void writeProgramSystemMetadata(ApplicationId appId, ProgramType programType,
                     Iterable<? extends ProgramSpecification> specs) {
  for (ProgramSpecification spec : specs) {
   ProgramId programId = appId.program(programType, spec.getName());
   new ProgramSystemMetadataWriter(metadataPublisher, programId, spec, creationTime).write();
  }
 }
}
origin: cdapio/cdap

@Override
public Set<String> getSystemTagsToAdd() {
 return ImmutableSet.<String>builder()
  .add(programId.getType().getPrettyName())
  .add(getMode())
  .addAll(getWorkflowNodes())
  .build();
}
origin: co.cask.cdap/cdap-data-fabric

@Override
public Set<String> getSystemTagsToAdd() {
 return ImmutableSet.<String>builder()
  .add(programId.getType().getPrettyName())
  .add(getMode())
  .addAll(getWorkflowNodes())
  .build();
}
origin: co.cask.cdap/cdap-app-fabric

 private void writeProgramSystemMetadata(ApplicationId appId, ProgramType programType,
                     Iterable<? extends ProgramSpecification> specs) {
  for (ProgramSpecification spec : specs) {
   ProgramId programId = appId.program(programType, spec.getName());
   Map<String, String> properties = metadataStore.getProperties(MetadataScope.SYSTEM, programId.toMetadataEntity());
   ProgramSystemMetadataWriter writer = new ProgramSystemMetadataWriter(metadataStore, programId, spec,
                                      !properties.isEmpty());
   writer.write();
  }
 }
}
co.cask.cdap.data2.metadata.systemProgramSystemMetadataWriter

Javadoc

A AbstractSystemMetadataWriter for a ProgramId.

Most used methods

  • <init>
  • getMode
  • getWorkflowNodes
  • write

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Sublime Text for Python
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