Search in sources :

Example 1 with CancelCommand

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());
}
Also used : CancelCommand(com.cloud.legacymodel.communication.command.CancelCommand) Request(com.cloud.common.transport.Request)

Aggregations

Request (com.cloud.common.transport.Request)1 CancelCommand (com.cloud.legacymodel.communication.command.CancelCommand)1