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;
}
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");
}
Aggregations