GetJobDetails

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

Available since Gaffer version 1.0.0

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=0d3964a9-3bac-4401-ae99-c64b3dab19a3,userId=user01,status=RUNNING,startTime=1531133960571,opChain=OperationChain[GetAllElements->DiscardOutput->GetJobDetails]]
{
  "jobId" : "0d3964a9-3bac-4401-ae99-c64b3dab19a3",
  "userId" : "user01",
  "status" : "RUNNING",
  "startTime" : 1531133960571,
  "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" : "0d3964a9-3bac-4401-ae99-c64b3dab19a3"
}
{
  "class" : "uk.gov.gchq.gaffer.operation.impl.job.GetJobDetails",
  "jobId" : "0d3964a9-3bac-4401-ae99-c64b3dab19a3"
}
g.GetJobDetails( 
  job_id="0d3964a9-3bac-4401-ae99-c64b3dab19a3" 
)

Result:

Java
JSON
JobDetail[jobId=0d3964a9-3bac-4401-ae99-c64b3dab19a3,userId=user01,status=FINISHED,startTime=1531133960571,endTime=1531133960571,opChain=OperationChain[GetAllElements->DiscardOutput->GetJobDetails]]
{
  "jobId" : "0d3964a9-3bac-4401-ae99-c64b3dab19a3",
  "userId" : "user01",
  "status" : "FINISHED",
  "startTime" : 1531133960571,
  "endTime" : 1531133960571,
  "opChain" : "OperationChain[GetAllElements->DiscardOutput->GetJobDetails]"
}


results matching ""

    No results matching ""