Search in sources :

Example 1 with ChangeWanStateOperation

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

the class ChangeWanStateRequest method writeResponse.

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

Aggregations

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