Search in sources :

Example 1 with CancelCommand

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());
}
Also used : CancelCommand(com.cloud.agent.api.CancelCommand) Request(com.cloud.agent.transport.Request)

Aggregations

CancelCommand (com.cloud.agent.api.CancelCommand)1 Request (com.cloud.agent.transport.Request)1