use of com.cloud.agent.api.CancelCommand in project cloudstack by apache.
the class ClusteredAgentManagerImpl method cancel.
public void cancel(final String peerName, final long hostId, final long sequence, final String reason) {
final CancelCommand cancel = new CancelCommand(sequence, reason);
final Request req = new Request(hostId, _nodeId, cancel, true);
req.setControl(true);
routeToPeer(peerName, req.getBytes());
}
Aggregations