Search in sources :

Example 1 with ClearWanQueuesOperation

use of com.hazelcast.internal.management.operation.ClearWanQueuesOperation in project hazelcast by hazelcast.

the class ClearWanQueuesRequest method writeResponse.

@Override
public void writeResponse(ManagementCenterService mcs, JsonObject out) throws Exception {
    ClearWanQueuesOperation operation = new ClearWanQueuesOperation(schemeName, publisherName);
    Object operationResult = mcs.callOnThis(operation);
    JsonObject result = new JsonObject();
    if (operationResult == null) {
        result.add("result", SUCCESS);
    } else {
        result.add("result", operationResult.toString());
    }
    out.add("result", result);
}
Also used : ClearWanQueuesOperation(com.hazelcast.internal.management.operation.ClearWanQueuesOperation) JsonObject(com.eclipsesource.json.JsonObject) JsonObject(com.eclipsesource.json.JsonObject)

Aggregations

JsonObject (com.eclipsesource.json.JsonObject)1 ClearWanQueuesOperation (com.hazelcast.internal.management.operation.ClearWanQueuesOperation)1