use of org.smartdata.protocol.message.LaunchCmdlet in project SSM by Intel-bigdata.
the class CmdletDispatcher method getNextCmdletToRun.
public LaunchCmdlet getNextCmdletToRun() throws IOException {
Long cmdletId = pendingCmdlets.poll();
if (cmdletId == null) {
return null;
}
LaunchCmdlet launchCmdlet = idToLaunchCmdlet.get(cmdletId);
runningCmdlets.add(cmdletId);
return launchCmdlet;
}
Aggregations