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

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top Vim 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