Search in sources :

Example 1 with TriggerPartialStartRequest

use of com.hazelcast.internal.management.request.TriggerPartialStartRequest in project hazelcast by hazelcast.

the class TriggerPartialStartRequestTest method triggerPartialStart.

public static String triggerPartialStart(HazelcastInstance hz) throws Exception {
    ManagementCenterService managementCenterService = getNode(hz).getManagementCenterService();
    ConsoleRequest request = new TriggerPartialStartRequest();
    JsonObject jsonObject = new JsonObject();
    request.writeResponse(managementCenterService, jsonObject);
    return String.valueOf(request.readResponse(jsonObject));
}
Also used : JsonObject(com.eclipsesource.json.JsonObject) ConsoleRequest(com.hazelcast.internal.management.request.ConsoleRequest) TriggerPartialStartRequest(com.hazelcast.internal.management.request.TriggerPartialStartRequest)

Aggregations

JsonObject (com.eclipsesource.json.JsonObject)1 ConsoleRequest (com.hazelcast.internal.management.request.ConsoleRequest)1 TriggerPartialStartRequest (com.hazelcast.internal.management.request.TriggerPartialStartRequest)1