use of com.cloud.legacymodel.communication.command.CancelCommand in project cosmic by MissionCriticalCloud.
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, this._nodeId, cancel, true);
req.setControl(true);
routeToPeer(peerName, req.getBytes());
}
Aggregations