Search in sources :

Example 1 with SchedulerStarter

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);
        }
    }
}
Also used : NodeSourceData(org.ow2.proactive.resourcemanager.db.NodeSourceData)

Example 2 with SchedulerStarter

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);
        }
    }
}
Also used : NodeSourceData(org.ow2.proactive.resourcemanager.db.NodeSourceData)

Aggregations

NodeSourceData (org.ow2.proactive.resourcemanager.db.NodeSourceData)2