congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BatchProgramHistory
Code IndexAdd Tabnine to your IDE (free)

How to use
BatchProgramHistory
in
co.cask.cdap.proto

Best Java code snippets using co.cask.cdap.proto.BatchProgramHistory (Showing top 3 results out of 315)

origin: cdapio/cdap

                       programId.getProgram());
if (exception == null) {
 response.add(new BatchProgramHistory(batchProgram, HttpResponseStatus.OK.code(), null,
                    programHistory.getRuns()));
} else if (exception instanceof NotFoundException) {
 response.add(new BatchProgramHistory(batchProgram, HttpResponseStatus.NOT_FOUND.code(),
                    exception.getMessage(), Collections.emptyList()));
} else if (exception instanceof UnauthorizedException) {
 response.add(new BatchProgramHistory(batchProgram, HttpResponseStatus.FORBIDDEN.code(),
                    exception.getMessage(), Collections.emptyList()));
} else {
 response.add(new BatchProgramHistory(batchProgram, HttpResponseStatus.INTERNAL_SERVER_ERROR.code(),
                    exception.getMessage(), Collections.emptyList()));
origin: cdapio/cdap

Assert.assertEquals(sleepWorkflow2.getId(), sleepRun.getProgramId());
Assert.assertEquals(dummyMR2.getId(), dummyMR2Run.getProgramId());
Assert.assertEquals(serviceId2.getProgram(), service2Run.getProgramId());
Assert.assertEquals(200, sleepRun.getStatusCode());
Assert.assertEquals(200, dummyMR2Run.getStatusCode());
Assert.assertEquals(404, service2Run.getStatusCode());
Assert.assertEquals(runRecord.getPid(), sleepRun.getRuns().iterator().next().getPid());
Assert.assertEquals(runRecord.getPid(), dummyMR2Run.getRuns().iterator().next().getPid());
Assert.assertTrue(service2Run.getRuns().isEmpty());
origin: co.cask.cdap/cdap-app-fabric

                       programId.getProgram());
if (exception == null) {
 response.add(new BatchProgramHistory(batchProgram, HttpResponseStatus.OK.code(), null,
                    programHistory.getRuns()));
} else if (exception instanceof NotFoundException) {
 response.add(new BatchProgramHistory(batchProgram, HttpResponseStatus.NOT_FOUND.code(),
                    exception.getMessage(), Collections.emptyList()));
} else if (exception instanceof UnauthorizedException) {
 response.add(new BatchProgramHistory(batchProgram, HttpResponseStatus.FORBIDDEN.code(),
                    exception.getMessage(), Collections.emptyList()));
} else {
 response.add(new BatchProgramHistory(batchProgram, HttpResponseStatus.INTERNAL_SERVER_ERROR.code(),
                    exception.getMessage(), Collections.emptyList()));
co.cask.cdap.protoBatchProgramHistory

Javadoc

Result for the batch program runs endpoint

Most used methods

  • <init>
  • getProgramId
  • getRuns
  • getStatusCode

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • setContentView (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Permission (java.security)
    Legacy security code; do not use.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top Sublime Text 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