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

How to use
getApplication
method
in
co.cask.cdap.proto.id.WorkflowId

Best Java code snippets using co.cask.cdap.proto.id.WorkflowId.getApplication (Showing top 6 results out of 315)

origin: caskdata/cdap

private List<ScheduleDetail> doList(WorkflowId workflow)
 throws IOException, UnauthenticatedException, NotFoundException, UnauthorizedException {
 String path = String.format("apps/%s/workflows/%s/schedules", workflow.getApplication(), workflow.getProgram());
 URL url = config.resolveNamespacedURLV3(workflow.getNamespaceId(), path);
 HttpResponse response = restClient.execute(HttpMethod.GET, url, config.getAccessToken(),
                       HttpURLConnection.HTTP_NOT_FOUND);
 if (HttpURLConnection.HTTP_NOT_FOUND == response.getResponseCode()) {
  throw new NotFoundException(workflow);
 }
 ObjectResponse<List<ScheduleDetail>> objectResponse =
  ObjectResponse.fromJsonBody(response, LIST_SCHEDULE_DETAIL_TYPE, GSON);
 return objectResponse.getResponseObject();
}
origin: co.cask.cdap/cdap-app-fabric

String programName = programRun.getName();
ProgramType programType = programRun.getProgramType();
ProgramId program = new ProgramId(workflowId.getNamespace(), workflowId.getApplication(),
                 programType, programName);
String programRunId = programRun.getRunId();
origin: cdapio/cdap

String programName = programRun.getName();
ProgramType programType = programRun.getProgramType();
ProgramId program = new ProgramId(workflowId.getNamespace(), workflowId.getApplication(),
                 programType, programName);
String programRunId = programRun.getRunId();
origin: cdapio/cdap

 private static MDSKey.Builder getRowKeyBuilder(WorkflowId id, long time) {
  return new MDSKey.Builder().add(id.getNamespace())
   .add(id.getApplication()).add(id.getVersion()).add(id.getProgram()).add(time);
 }
}
origin: co.cask.cdap/cdap-app-fabric

 private static MDSKey.Builder getRowKeyBuilder(WorkflowId id, long time) {
  return new MDSKey.Builder().add(id.getNamespace())
   .add(id.getApplication()).add(id.getVersion()).add(id.getProgram()).add(time);
 }
}
origin: caskdata/cdap

/**
 * Get the next scheduled run time of the program. A program may contain multiple schedules.
 * This method returns the next scheduled runtimes for all the schedules. This method only takes
 + into account schedules based on time. Schedules based on data are ignored.
 *
 * @param workflow Id of the Workflow for which to fetch next run times.
 * @return list of Scheduled runtimes for the Workflow. Empty list if there are no schedules.
 */
public List<ScheduledRuntime> nextRuntimes(WorkflowId workflow)
 throws IOException, UnauthenticatedException, NotFoundException, UnauthorizedException {
 String path = String.format("apps/%s/workflows/%s/nextruntime", workflow.getApplication(), workflow.getProgram());
 URL url = config.resolveNamespacedURLV3(workflow.getNamespaceId(), path);
 HttpResponse response = restClient.execute(HttpMethod.GET, url, config.getAccessToken(),
                       HttpURLConnection.HTTP_NOT_FOUND);
 if (HttpURLConnection.HTTP_NOT_FOUND == response.getResponseCode()) {
  throw new NotFoundException(workflow);
 }
 ObjectResponse<List<ScheduledRuntime>> objectResponse = ObjectResponse.fromJsonBody(
  response, new TypeToken<List<ScheduledRuntime>>() { }.getType(), GSON);
 return objectResponse.getResponseObject();
}
co.cask.cdap.proto.idWorkflowIdgetApplication

Popular methods of WorkflowId

  • getProgram
  • run
  • <init>
  • getParent
  • toMetadataEntity
  • getNamespace
  • getNamespaceId
  • getVersion

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • JCheckBox (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 12 Jupyter Notebook Extensions
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