final String directorJobUuid = UUID.randomUUID().toString();
jobStatus.setJobInfo(directorJobUuid, nodeGroupType, agentCommandType);
if (asyncMode) {
scheduler.tell(new JobInitInfo(nodeGroupType, agentCommandType, localMode, failOver, dataStore, maxConcNum, asyncMode, directorJobUuid, dataStore.get(nodeGroupType).getNodeDataMapValid().size()), ActorRef.noSender());
GenericResponseFromDirector uuid = new GenericResponseFromDirector();
uuid.directorJobUuid = directorJobUuid;
return uuid;
}
scheduler.tell(new JobInitInfo(nodeGroupType, agentCommandType, localMode, failOver, dataStore, maxConcNum, asyncMode, directorJobUuid, dataStore.get(nodeGroupType).getNodeDataMapValid().size()), ActorRef.noSender());
GenericResponseFromDirector uuid = new GenericResponseFromDirector();
uuid.directorJobUuid = directorJobUuid;
JobStatus.JobInfo jobInfo = jobStatus.getJobInfo(directorJobUuid);
while (jobInfo!=null && jobInfo.state != JobStatus.State.gathered) {
jobInfo = jobStatus.getJobInfo(directorJobUuid);