Search in sources :

Example 6 with UnlockBatchRequestBody

use of org.apache.rocketmq.common.protocol.body.UnlockBatchRequestBody in project rocketmq by apache.

the class AdminBrokerProcessor method unlockBatchMQ.

private RemotingCommand unlockBatchMQ(ChannelHandlerContext ctx, RemotingCommand request) throws RemotingCommandException {
    final RemotingCommand response = RemotingCommand.createResponseCommand(null);
    UnlockBatchRequestBody requestBody = UnlockBatchRequestBody.decode(request.getBody(), UnlockBatchRequestBody.class);
    this.brokerController.getRebalanceLockManager().unlockBatch(requestBody.getConsumerGroup(), requestBody.getMqSet(), requestBody.getClientId());
    response.setCode(ResponseCode.SUCCESS);
    response.setRemark(null);
    return response;
}
Also used : RemotingCommand(org.apache.rocketmq.remoting.protocol.RemotingCommand) UnlockBatchRequestBody(org.apache.rocketmq.common.protocol.body.UnlockBatchRequestBody)

Aggregations

UnlockBatchRequestBody (org.apache.rocketmq.common.protocol.body.UnlockBatchRequestBody)6 FindBrokerResult (org.apache.rocketmq.client.impl.FindBrokerResult)4 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 Map (java.util.Map)2 Set (java.util.Set)2 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)2 ConcurrentMap (java.util.concurrent.ConcurrentMap)2 MessageQueue (org.apache.rocketmq.common.message.MessageQueue)2 RemotingCommand (org.apache.rocketmq.remoting.protocol.RemotingCommand)2