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);
}
Aggregations