*
* @see HostStatus
*
*/
public void setVertexState(String host, HostStatus status) {
Vertex x = getVertex(host);
// according to doc the setUserDatum is equivalent to
// addUserDatum if the key doesn't exist already otherwise
// it changes the datum
if (x != null) {
x.setUserDatum("hoststatus", status, UserData.CLONE);
x.setUserDatum("state", status.getCurrentState(), UserData.CLONE);
}
}