use of org.smartdata.model.ExecutorType in project SSM by Intel-bigdata.
the class CmdletDispatcher method onCmdletFinished.
public void onCmdletFinished(long cmdletId) {
synchronized (dispatchedToSrvs) {
if (dispatchedToSrvs.containsKey(cmdletId)) {
LaunchCmdlet cmdlet = idToLaunchCmdlet.get(cmdletId);
if (cmdlet == null) {
return;
}
if (regNodes.get(cmdlet.getNodeId()) != null) {
regNodes.get(cmdlet.getNodeId()).incrementAndGet();
}
NodeCmdletMetrics metrics = regNodeInfos.get(cmdlet.getNodeId());
if (metrics != null) {
metrics.finishCmdlet();
}
ExecutorType t = dispatchedToSrvs.remove(cmdletId);
updateSlotsLeft(t.ordinal(), 1);
completeOn[t.ordinal()] = cmdlet.getNodeId();
}
}
}
Aggregations