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

How to use
HOCONInputStreamJobTemplate
in
org.apache.gobblin.runtime.template

Best Java code snippets using org.apache.gobblin.runtime.template.HOCONInputStreamJobTemplate (Showing top 4 results out of 315)

origin: apache/incubator-gobblin

@Override
public JobTemplate getTemplate(URI uri)
  throws SpecNotFoundException, JobTemplate.TemplateException {
 if (!uri.getScheme().equals(FS_SCHEME)) {
  throw new RuntimeException("Expected scheme " + FS_SCHEME + " got unsupported scheme " + uri.getScheme());
 }
 // path of uri is location of template file relative to the job configuration root directory
 Path templateFullPath = PathUtils.mergePaths(jobConfDirPath, new Path(uri.getPath()));
 try (InputStream is = fs.open(templateFullPath)) {
  return new HOCONInputStreamJobTemplate(is, uri, this);
 } catch (IOException ioe) {
  throw new SpecNotFoundException(uri, ioe);
 }
}
origin: apache/incubator-gobblin

 jobConfig = jobConfig.withFallback(loadHoconFileAtPath(fullJobTemplatePath, true));
jobTemplates.add(new HOCONInputStreamJobTemplate(jobConfig, fileStatus.getPath().toUri(), this));
origin: org.apache.gobblin/gobblin-runtime

@Override
public JobTemplate getTemplate(URI uri)
  throws SpecNotFoundException, JobTemplate.TemplateException {
 if (!uri.getScheme().equals(FS_SCHEME)) {
  throw new RuntimeException("Expected scheme " + FS_SCHEME + " got unsupported scheme " + uri.getScheme());
 }
 // path of uri is location of template file relative to the job configuration root directory
 Path templateFullPath = PathUtils.mergePaths(jobConfDirPath, new Path(uri.getPath()));
 try (InputStream is = fs.open(templateFullPath)) {
  return new HOCONInputStreamJobTemplate(is, uri, this);
 } catch (IOException ioe) {
  throw new SpecNotFoundException(uri, ioe);
 }
}
origin: org.apache.gobblin/gobblin-service

 jobConfig = jobConfig.withFallback(loadHoconFileAtPath(fullJobTemplatePath, true));
jobTemplates.add(new HOCONInputStreamJobTemplate(jobConfig, fileStatus.getPath().toUri(), this));
org.apache.gobblin.runtime.templateHOCONInputStreamJobTemplate

Javadoc

A org.apache.gobblin.runtime.api.JobTemplate that loads a HOCON file as a StaticJobTemplate.

Most used methods

  • <init>
    Load a template from an InputStream. Caller is responsible for closing InputStream.

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • BoxLayout (javax.swing)
  • JPanel (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Best IntelliJ 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