Class JobResource

  • All Implemented Interfaces:
    RestResource

    public class JobResource
    extends CompositeResource
    This resource is used to view the current state of a specific job.

    Example Interactions

    View a specific detached job

    $ curl --user admin:admin123 -v \ -H Accept:application/vnd.oracle.glassfish+json \ -H Content-Type:application/vnd.oracle.glassfish+json \ -H X-Requested-By:MyClient \ http://localhost:4848/management/jobs/id/1 HTTP/1.1 200 OK { "exitCode": "COMPLETED", "jobId": "1", "jobName": "load-sdp", "jobState": "COMPLETED", "executionDate": "Wed Jan 02 11:36:38 CST 2013", "message": "SDP loaded with name nucleusSDP.", "user": "admin" }
    Author:
    jdlee
    • Constructor Detail

      • JobResource

        public JobResource()
    • Method Detail

      • getItem

        @GET
        public RestModelResponseBody<Job> getItem​(@PathParam("jobId")
                                                  String jobId)
                                           throws Exception
        Retrieve information about the specific job identified by the resource URL.

        Roles: PaasAdmin, TenantAdmin

        Parameters:
        jobId -
        Returns:
        the Job entity which contains information about the job id specified.
        Throws:
        Exception
      • getCommandName

        protected String getCommandName()