this.controller = controller;
}
@Override
protected ManagementRequestHeader validateRequest(ManagementProtocolHeader header) throws IOException {
final ManagementRequestHeader request = super.validateRequest(header);
// Initialize the request context
if(request.getOperationId() == ModelControllerProtocol.EXECUTE_TX_REQUEST) {
final ExecuteRequestContext executeRequestContext = new ExecuteRequestContext();
final ActiveOperation<Void, ExecuteRequestContext> support = registerActiveOperation(request.getBatchId(), executeRequestContext);
executeRequestContext.setActiveOperation(support);
} else if (request.getOperationId() == ModelControllerProtocol.LEGACY_MASTER_HC_PING_REQUEST) {
registerActiveOperation(request.getBatchId(), new ExecuteRequestContext());
}
return request;
}