use of org.ow2.proactive.scheduler.util.SchedulerStarter in project scheduling by ow2-proactive.
the class NodesRecoveryManager method recoverNodeSourcesAndNodes.
public void recoverNodeSourcesAndNodes() {
Collection<NodeSourceData> nodeSources = this.rmCore.getDbManager().getNodeSources();
this.logPersistedNodeSourceInfo(nodeSources);
for (NodeSourceData nodeSourceData : nodeSources) {
String nodeSourceName = nodeSourceData.getName();
if (RMConstants.DEFAULT_LOCAL_NODES_NODE_SOURCE_NAME.equals(nodeSourceName)) {
// will be recreated by SchedulerStarter
this.rmCore.getDbManager().removeNodeSource(nodeSourceName);
} else {
this.recoverNodeSourceSuccessfullyOrRemove(nodeSourceData, nodeSourceName);
}
}
}
use of org.ow2.proactive.scheduler.util.SchedulerStarter in project scheduling by ow2-proactive.
the class NodesRecoveryManager method recoverNodeSourcesAndNodes.
protected void recoverNodeSourcesAndNodes() {
Collection<NodeSourceData> nodeSources = this.rmCore.getDbManager().getNodeSources();
this.logPersistedNodeSourceInfo(nodeSources);
for (NodeSourceData nodeSourceData : nodeSources) {
String nodeSourceName = nodeSourceData.getName();
if (NodeSource.DEFAULT_LOCAL_NODES_NODE_SOURCE_NAME.equals(nodeSourceName)) {
// will be recreated by SchedulerStarter
this.rmCore.getDbManager().removeNodeSource(nodeSourceName);
} else {
this.recoverNodeSourceSuccessfullyOrRemove(nodeSourceData, nodeSourceName);
}
}
}
Aggregations