GetJobDetails

See javadoc - uk.gov.gchq.gaffer.operation.impl.job.GetJobDetails

Available since Gaffer version 1.0.0

Gets the details of a single job

Required fields

No required fields

Examples

Get job details in operation chain

Using this directed graph:


    --> 4 <--
  /     ^     \
 /      |      \
1  -->  2  -->  3
         \
           -->  5

Java
JSON
Full JSON
Python
final OperationChain<JobDetail> opChain = new OperationChain.Builder()
        .first(new GetAllElements())
        .then(new DiscardOutput())
        .then(new GetJobDetails())
        .build();
{
  "class" : "OperationChain",
  "operations" : [ {
    "class" : "GetAllElements"
  }, {
    "class" : "DiscardOutput"
  }, {
    "class" : "GetJobDetails"
  } ]
}
{
  "class" : "uk.gov.gchq.gaffer.operation.OperationChain",
  "operations" : [ {
    "class" : "uk.gov.gchq.gaffer.operation.impl.get.GetAllElements"
  }, {
    "class" : "uk.gov.gchq.gaffer.operation.impl.DiscardOutput"
  }, {
    "class" : "uk.gov.gchq.gaffer.operation.impl.job.GetJobDetails"
  } ]
}
g.OperationChain( 
  operations=[ 
    g.GetAllElements(), 
    g.DiscardOutput(), 
    g.GetJobDetails() 
  ] 
)

Result:

Java
JSON
JobDetail[jobId=73534df1-ba91-487d-aac0-b367eeddd8f2,user=User[userId=user01,dataAuths=[],opAuths=[]],status=RUNNING,startTime=1665484757420,opChain=OperationChain[GetAllElements->DiscardOutput->GetJobDetails]]
{
  "jobId" : "73534df1-ba91-487d-aac0-b367eeddd8f2",
  "user" : {
    "userId" : "user01",
    "dataAuths" : [ ],
    "opAuths" : [ ]
  },
  "status" : "RUNNING",
  "startTime" : 1665484757420,
  "opChain" : "OperationChain[GetAllElements->DiscardOutput->GetJobDetails]"
}


Get job details

Using this directed graph:


    --> 4 <--
  /     ^     \
 /      |      \
1  -->  2  -->  3
         \
           -->  5

Java
JSON
Full JSON
Python
final GetJobDetails operation = new GetJobDetails.Builder()
        .jobId(jobId)
        .build();
{
  "class" : "GetJobDetails",
  "jobId" : "73534df1-ba91-487d-aac0-b367eeddd8f2"
}
{
  "class" : "uk.gov.gchq.gaffer.operation.impl.job.GetJobDetails",
  "jobId" : "73534df1-ba91-487d-aac0-b367eeddd8f2"
}
g.GetJobDetails( 
  job_id="73534df1-ba91-487d-aac0-b367eeddd8f2" 
)

Result:

Java
JSON
JobDetail[jobId=73534df1-ba91-487d-aac0-b367eeddd8f2,user=User[userId=user01,dataAuths=[],opAuths=[]],status=FINISHED,startTime=1665484757420,endTime=1665484757420,opChain=OperationChain[GetAllElements->DiscardOutput->GetJobDetails]]
{
  "jobId" : "73534df1-ba91-487d-aac0-b367eeddd8f2",
  "user" : {
    "userId" : "user01",
    "dataAuths" : [ ],
    "opAuths" : [ ]
  },
  "status" : "FINISHED",
  "startTime" : 1665484757420,
  "endTime" : 1665484757420,
  "opChain" : "OperationChain[GetAllElements->DiscardOutput->GetJobDetails]"
}


results matching ""

    No results matching ""