Search in sources :

Example 1 with AbstractDumpState

use of org.openkilda.messaging.ctrl.AbstractDumpState in project open-kilda by telstra.

the class DumpStateAction method handle.

@Override
protected void handle() throws MessageFormatException, UnsupportedActionException, JsonProcessingException {
    AbstractDumpState state = getMaster().getBolt().dumpState();
    TopologyContext context = getBolt().getContext();
    emitResponse(new DumpStateResponseData(context.getThisComponentId(), context.getThisTaskId(), getMessage().getTopology(), state));
}
Also used : AbstractDumpState(org.openkilda.messaging.ctrl.AbstractDumpState) DumpStateResponseData(org.openkilda.messaging.ctrl.DumpStateResponseData) TopologyContext(org.apache.storm.task.TopologyContext)

Aggregations

TopologyContext (org.apache.storm.task.TopologyContext)1 AbstractDumpState (org.openkilda.messaging.ctrl.AbstractDumpState)1 DumpStateResponseData (org.openkilda.messaging.ctrl.DumpStateResponseData)1