Search in sources :

Example 1 with RMNodeDescriptor

use of org.ow2.proactive.resourcemanager.common.event.RMNodeDescriptor in project scheduling by ow2-proactive.

the class AbstractRMNode method toNodeDescriptor.

protected RMNodeDescriptor toNodeDescriptor() {
    RMNodeDescriptor rmNodeDescriptor = new RMNodeDescriptor();
    rmNodeDescriptor.setDefaultJMXUrl(getJMXUrl(JMXTransportProtocol.RMI));
    rmNodeDescriptor.setDescriptorVMName(getDescriptorVMName());
    rmNodeDescriptor.setHostName(getHostName());
    rmNodeDescriptor.setLocked(isLocked());
    rmNodeDescriptor.setLockedBy(getLockedBy() == null ? null : getLockedBy().getName());
    rmNodeDescriptor.setLockTime(getLockTime());
    rmNodeDescriptor.setNodeInfo(getNodeInfo());
    rmNodeDescriptor.setNodeSourceName(getNodeSourceName());
    rmNodeDescriptor.setNodeURL(getNodeURL());
    rmNodeDescriptor.setOwnerName(getOwner() == null ? null : getOwner().getName());
    rmNodeDescriptor.setProactiveJMXUrl(getJMXUrl(JMXTransportProtocol.RO));
    rmNodeDescriptor.setProviderName(getProvider() == null ? null : getProvider().getName());
    rmNodeDescriptor.setState(getState());
    rmNodeDescriptor.setStateChangeTime(getStateChangeTime());
    rmNodeDescriptor.setVNodeName(getVNodeName());
    return rmNodeDescriptor;
}
Also used : RMNodeDescriptor(org.ow2.proactive.resourcemanager.common.event.RMNodeDescriptor)

Example 2 with RMNodeDescriptor

use of org.ow2.proactive.resourcemanager.common.event.RMNodeDescriptor in project scheduling by ow2-proactive.

the class RMCoreTest method createRmNodeEvent.

private RMNodeEvent createRmNodeEvent(NodeState previousNodeState) {
    RMNodeDescriptor rmNodeDescriptor = new RMNodeDescriptor();
    rmNodeDescriptor.setState(NodeState.DOWN);
    return new RMNodeEvent(rmNodeDescriptor, RMEventType.NODE_STATE_CHANGED, previousNodeState, "initiator");
}
Also used : RMNodeDescriptor(org.ow2.proactive.resourcemanager.common.event.RMNodeDescriptor) RMNodeEvent(org.ow2.proactive.resourcemanager.common.event.RMNodeEvent)

Aggregations

RMNodeDescriptor (org.ow2.proactive.resourcemanager.common.event.RMNodeDescriptor)2 RMNodeEvent (org.ow2.proactive.resourcemanager.common.event.RMNodeEvent)1