提交 853b167b 编写于 作者: Y yukon

ROCKETMQ-18 Fix the conflicts between code and check style.

上级 388ba7a5
...@@ -205,7 +205,7 @@ public class BrokerController { ...@@ -205,7 +205,7 @@ public class BrokerController {
this.messageStore = this.messageStore =
new DefaultMessageStore(this.messageStoreConfig, this.brokerStatsManager, this.messageArrivingListener, new DefaultMessageStore(this.messageStoreConfig, this.brokerStatsManager, this.messageArrivingListener,
this.brokerConfig); this.brokerConfig);
this.brokerStats = new BrokerStats((DefaultMessageStore)this.messageStore); this.brokerStats = new BrokerStats((DefaultMessageStore) this.messageStore);
//load plugin //load plugin
MessageStorePluginContext context = new MessageStorePluginContext(messageStoreConfig, brokerStatsManager, messageArrivingListener, brokerConfig); MessageStorePluginContext context = new MessageStorePluginContext(messageStoreConfig, brokerStatsManager, messageArrivingListener, brokerConfig);
this.messageStore = MessageStoreFactory.build(context, this.messageStore); this.messageStore = MessageStoreFactory.build(context, this.messageStore);
...@@ -219,7 +219,7 @@ public class BrokerController { ...@@ -219,7 +219,7 @@ public class BrokerController {
if (result) { if (result) {
this.remotingServer = new NettyRemotingServer(this.nettyServerConfig, this.clientHousekeepingService); this.remotingServer = new NettyRemotingServer(this.nettyServerConfig, this.clientHousekeepingService);
NettyServerConfig fastConfig = (NettyServerConfig)this.nettyServerConfig.clone(); NettyServerConfig fastConfig = (NettyServerConfig) this.nettyServerConfig.clone();
fastConfig.setListenPort(nettyServerConfig.getListenPort() - 2); fastConfig.setListenPort(nettyServerConfig.getListenPort() - 2);
this.fastRemotingServer = new NettyRemotingServer(fastConfig, this.clientHousekeepingService); this.fastRemotingServer = new NettyRemotingServer(fastConfig, this.clientHousekeepingService);
this.sendMessageExecutor = new BrokerFixedThreadPoolExecutor( this.sendMessageExecutor = new BrokerFixedThreadPoolExecutor(
......
...@@ -178,7 +178,7 @@ public class BrokerStartup { ...@@ -178,7 +178,7 @@ public class BrokerStartup {
} }
messageStoreConfig.setHaListenPort(nettyServerConfig.getListenPort() + 1); messageStoreConfig.setHaListenPort(nettyServerConfig.getListenPort() + 1);
LoggerContext lc = (LoggerContext)LoggerFactory.getILoggerFactory(); LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
JoranConfigurator configurator = new JoranConfigurator(); JoranConfigurator configurator = new JoranConfigurator();
configurator.setContext(lc); configurator.setContext(lc);
lc.reset(); lc.reset();
......
...@@ -68,7 +68,7 @@ public class ClientChannelInfo { ...@@ -68,7 +68,7 @@ public class ClientChannelInfo {
result = prime * result + ((channel == null) ? 0 : channel.hashCode()); result = prime * result + ((channel == null) ? 0 : channel.hashCode());
result = prime * result + ((clientId == null) ? 0 : clientId.hashCode()); result = prime * result + ((clientId == null) ? 0 : clientId.hashCode());
result = prime * result + ((language == null) ? 0 : language.hashCode()); result = prime * result + ((language == null) ? 0 : language.hashCode());
result = prime * result + (int)(lastUpdateTimestamp ^ (lastUpdateTimestamp >>> 32)); result = prime * result + (int) (lastUpdateTimestamp ^ (lastUpdateTimestamp >>> 32));
result = prime * result + version; result = prime * result + version;
return result; return result;
} }
...@@ -81,7 +81,7 @@ public class ClientChannelInfo { ...@@ -81,7 +81,7 @@ public class ClientChannelInfo {
return false; return false;
if (getClass() != obj.getClass()) if (getClass() != obj.getClass())
return false; return false;
ClientChannelInfo other = (ClientChannelInfo)obj; ClientChannelInfo other = (ClientChannelInfo) obj;
if (channel == null) { if (channel == null) {
if (other.channel != null) if (other.channel != null)
return false; return false;
......
...@@ -39,8 +39,8 @@ public class BrokerFastFailure { ...@@ -39,8 +39,8 @@ public class BrokerFastFailure {
public static RequestTask castRunnable(final Runnable runnable) { public static RequestTask castRunnable(final Runnable runnable) {
try { try {
FutureTaskExt object = (FutureTaskExt)runnable; FutureTaskExt object = (FutureTaskExt) runnable;
return (RequestTask)object.getRunnable(); return (RequestTask) object.getRunnable();
} catch (Throwable e) { } catch (Throwable e) {
log.error(String.format("castRunnable exception, %s", runnable.getClass().getName()), e); log.error(String.format("castRunnable exception, %s", runnable.getClass().getName()), e);
} }
......
...@@ -32,7 +32,7 @@ public class ManyPullRequest { ...@@ -32,7 +32,7 @@ public class ManyPullRequest {
public synchronized List<PullRequest> cloneListAndClear() { public synchronized List<PullRequest> cloneListAndClear() {
if (!this.pullRequestList.isEmpty()) { if (!this.pullRequestList.isEmpty()) {
List<PullRequest> result = (ArrayList<PullRequest>)this.pullRequestList.clone(); List<PullRequest> result = (ArrayList<PullRequest>) this.pullRequestList.clone();
this.pullRequestList.clear(); this.pullRequestList.clear();
return result; return result;
} }
......
...@@ -169,7 +169,7 @@ public class BrokerOuterAPI { ...@@ -169,7 +169,7 @@ public class BrokerOuterAPI {
switch (response.getCode()) { switch (response.getCode()) {
case ResponseCode.SUCCESS: { case ResponseCode.SUCCESS: {
RegisterBrokerResponseHeader responseHeader = RegisterBrokerResponseHeader responseHeader =
(RegisterBrokerResponseHeader)response.decodeCommandCustomHeader(RegisterBrokerResponseHeader.class); (RegisterBrokerResponseHeader) response.decodeCommandCustomHeader(RegisterBrokerResponseHeader.class);
RegisterBrokerResult result = new RegisterBrokerResult(); RegisterBrokerResult result = new RegisterBrokerResult();
result.setMasterAddr(responseHeader.getMasterAddr()); result.setMasterAddr(responseHeader.getMasterAddr());
result.setHaServerAddr(responseHeader.getHaServerAddr()); result.setHaServerAddr(responseHeader.getHaServerAddr());
......
...@@ -34,7 +34,7 @@ public final class MessageStoreFactory { ...@@ -34,7 +34,7 @@ public final class MessageStoreFactory {
String pluginClass = pluginClasses[i]; String pluginClass = pluginClasses[i];
try { try {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
Class<AbstractPluginMessageStore> clazz = (Class<AbstractPluginMessageStore>)Class.forName(pluginClass); Class<AbstractPluginMessageStore> clazz = (Class<AbstractPluginMessageStore>) Class.forName(pluginClass);
Constructor<AbstractPluginMessageStore> construct = clazz.getConstructor(MessageStorePluginContext.class, MessageStore.class); Constructor<AbstractPluginMessageStore> construct = clazz.getConstructor(MessageStorePluginContext.class, MessageStore.class);
messageStore = construct.newInstance(context, messageStore); messageStore = construct.newInstance(context, messageStore);
} catch (Throwable e) { } catch (Throwable e) {
......
...@@ -283,12 +283,12 @@ public abstract class AbstractSendMessageProcessor implements NettyRequestProces ...@@ -283,12 +283,12 @@ public abstract class AbstractSendMessageProcessor implements NettyRequestProces
switch (request.getCode()) { switch (request.getCode()) {
case RequestCode.SEND_MESSAGE_V2: case RequestCode.SEND_MESSAGE_V2:
requestHeaderV2 = requestHeaderV2 =
(SendMessageRequestHeaderV2)request (SendMessageRequestHeaderV2) request
.decodeCommandCustomHeader(SendMessageRequestHeaderV2.class); .decodeCommandCustomHeader(SendMessageRequestHeaderV2.class);
case RequestCode.SEND_MESSAGE: case RequestCode.SEND_MESSAGE:
if (null == requestHeaderV2) { if (null == requestHeaderV2) {
requestHeader = requestHeader =
(SendMessageRequestHeader)request (SendMessageRequestHeader) request
.decodeCommandCustomHeader(SendMessageRequestHeader.class); .decodeCommandCustomHeader(SendMessageRequestHeader.class);
} else { } else {
requestHeader = SendMessageRequestHeaderV2.createSendMessageRequestHeaderV1(requestHeaderV2); requestHeader = SendMessageRequestHeaderV2.createSendMessageRequestHeaderV1(requestHeaderV2);
...@@ -305,7 +305,7 @@ public abstract class AbstractSendMessageProcessor implements NettyRequestProces ...@@ -305,7 +305,7 @@ public abstract class AbstractSendMessageProcessor implements NettyRequestProces
try { try {
if (response != null) { if (response != null) {
final SendMessageResponseHeader responseHeader = final SendMessageResponseHeader responseHeader =
(SendMessageResponseHeader)response.readCustomHeader(); (SendMessageResponseHeader) response.readCustomHeader();
context.setMsgId(responseHeader.getMsgId()); context.setMsgId(responseHeader.getMsgId());
context.setQueueId(responseHeader.getQueueId()); context.setQueueId(responseHeader.getQueueId());
context.setQueueOffset(responseHeader.getQueueOffset()); context.setQueueOffset(responseHeader.getQueueOffset());
......
...@@ -125,7 +125,7 @@ public class ClientManageProcessor implements NettyRequestProcessor { ...@@ -125,7 +125,7 @@ public class ClientManageProcessor implements NettyRequestProcessor {
final RemotingCommand response = final RemotingCommand response =
RemotingCommand.createResponseCommand(UnregisterClientResponseHeader.class); RemotingCommand.createResponseCommand(UnregisterClientResponseHeader.class);
final UnregisterClientRequestHeader requestHeader = final UnregisterClientRequestHeader requestHeader =
(UnregisterClientRequestHeader)request (UnregisterClientRequestHeader) request
.decodeCommandCustomHeader(UnregisterClientRequestHeader.class); .decodeCommandCustomHeader(UnregisterClientRequestHeader.class);
ClientChannelInfo clientChannelInfo = new ClientChannelInfo( ClientChannelInfo clientChannelInfo = new ClientChannelInfo(
......
...@@ -72,7 +72,7 @@ public class ConsumerManageProcessor implements NettyRequestProcessor { ...@@ -72,7 +72,7 @@ public class ConsumerManageProcessor implements NettyRequestProcessor {
final RemotingCommand response = final RemotingCommand response =
RemotingCommand.createResponseCommand(GetConsumerListByGroupResponseHeader.class); RemotingCommand.createResponseCommand(GetConsumerListByGroupResponseHeader.class);
final GetConsumerListByGroupRequestHeader requestHeader = final GetConsumerListByGroupRequestHeader requestHeader =
(GetConsumerListByGroupRequestHeader)request (GetConsumerListByGroupRequestHeader) request
.decodeCommandCustomHeader(GetConsumerListByGroupRequestHeader.class); .decodeCommandCustomHeader(GetConsumerListByGroupRequestHeader.class);
ConsumerGroupInfo consumerGroupInfo = ConsumerGroupInfo consumerGroupInfo =
...@@ -106,7 +106,7 @@ public class ConsumerManageProcessor implements NettyRequestProcessor { ...@@ -106,7 +106,7 @@ public class ConsumerManageProcessor implements NettyRequestProcessor {
final RemotingCommand response = final RemotingCommand response =
RemotingCommand.createResponseCommand(UpdateConsumerOffsetResponseHeader.class); RemotingCommand.createResponseCommand(UpdateConsumerOffsetResponseHeader.class);
final UpdateConsumerOffsetRequestHeader requestHeader = final UpdateConsumerOffsetRequestHeader requestHeader =
(UpdateConsumerOffsetRequestHeader)request (UpdateConsumerOffsetRequestHeader) request
.decodeCommandCustomHeader(UpdateConsumerOffsetRequestHeader.class); .decodeCommandCustomHeader(UpdateConsumerOffsetRequestHeader.class);
this.brokerController.getConsumerOffsetManager().commitOffset(RemotingHelper.parseChannelRemoteAddr(ctx.channel()), requestHeader.getConsumerGroup(), this.brokerController.getConsumerOffsetManager().commitOffset(RemotingHelper.parseChannelRemoteAddr(ctx.channel()), requestHeader.getConsumerGroup(),
requestHeader.getTopic(), requestHeader.getQueueId(), requestHeader.getCommitOffset()); requestHeader.getTopic(), requestHeader.getQueueId(), requestHeader.getCommitOffset());
...@@ -120,9 +120,9 @@ public class ConsumerManageProcessor implements NettyRequestProcessor { ...@@ -120,9 +120,9 @@ public class ConsumerManageProcessor implements NettyRequestProcessor {
final RemotingCommand response = final RemotingCommand response =
RemotingCommand.createResponseCommand(QueryConsumerOffsetResponseHeader.class); RemotingCommand.createResponseCommand(QueryConsumerOffsetResponseHeader.class);
final QueryConsumerOffsetResponseHeader responseHeader = final QueryConsumerOffsetResponseHeader responseHeader =
(QueryConsumerOffsetResponseHeader)response.readCustomHeader(); (QueryConsumerOffsetResponseHeader) response.readCustomHeader();
final QueryConsumerOffsetRequestHeader requestHeader = final QueryConsumerOffsetRequestHeader requestHeader =
(QueryConsumerOffsetRequestHeader)request (QueryConsumerOffsetRequestHeader) request
.decodeCommandCustomHeader(QueryConsumerOffsetRequestHeader.class); .decodeCommandCustomHeader(QueryConsumerOffsetRequestHeader.class);
long offset = long offset =
......
...@@ -49,7 +49,7 @@ public class EndTransactionProcessor implements NettyRequestProcessor { ...@@ -49,7 +49,7 @@ public class EndTransactionProcessor implements NettyRequestProcessor {
public RemotingCommand processRequest(ChannelHandlerContext ctx, RemotingCommand request) throws RemotingCommandException { public RemotingCommand processRequest(ChannelHandlerContext ctx, RemotingCommand request) throws RemotingCommandException {
final RemotingCommand response = RemotingCommand.createResponseCommand(null); final RemotingCommand response = RemotingCommand.createResponseCommand(null);
final EndTransactionRequestHeader requestHeader = final EndTransactionRequestHeader requestHeader =
(EndTransactionRequestHeader)request.decodeCommandCustomHeader(EndTransactionRequestHeader.class); (EndTransactionRequestHeader) request.decodeCommandCustomHeader(EndTransactionRequestHeader.class);
if (requestHeader.getFromTransactionCheck()) { if (requestHeader.getFromTransactionCheck()) {
switch (requestHeader.getCommitOrRollback()) { switch (requestHeader.getCommitOrRollback()) {
......
...@@ -81,9 +81,9 @@ public class PullMessageProcessor implements NettyRequestProcessor { ...@@ -81,9 +81,9 @@ public class PullMessageProcessor implements NettyRequestProcessor {
private RemotingCommand processRequest(final Channel channel, RemotingCommand request, boolean brokerAllowSuspend) private RemotingCommand processRequest(final Channel channel, RemotingCommand request, boolean brokerAllowSuspend)
throws RemotingCommandException { throws RemotingCommandException {
RemotingCommand response = RemotingCommand.createResponseCommand(PullMessageResponseHeader.class); RemotingCommand response = RemotingCommand.createResponseCommand(PullMessageResponseHeader.class);
final PullMessageResponseHeader responseHeader = (PullMessageResponseHeader)response.readCustomHeader(); final PullMessageResponseHeader responseHeader = (PullMessageResponseHeader) response.readCustomHeader();
final PullMessageRequestHeader requestHeader = final PullMessageRequestHeader requestHeader =
(PullMessageRequestHeader)request.decodeCommandCustomHeader(PullMessageRequestHeader.class); (PullMessageRequestHeader) request.decodeCommandCustomHeader(PullMessageRequestHeader.class);
response.setOpaque(request.getOpaque()); response.setOpaque(request.getOpaque());
...@@ -335,7 +335,7 @@ public class PullMessageProcessor implements NettyRequestProcessor { ...@@ -335,7 +335,7 @@ public class PullMessageProcessor implements NettyRequestProcessor {
final byte[] r = this.readGetMessageResult(getMessageResult, requestHeader.getConsumerGroup(), requestHeader.getTopic(), requestHeader.getQueueId()); final byte[] r = this.readGetMessageResult(getMessageResult, requestHeader.getConsumerGroup(), requestHeader.getTopic(), requestHeader.getQueueId());
this.brokerController.getBrokerStatsManager().incGroupGetLatency(requestHeader.getConsumerGroup(), this.brokerController.getBrokerStatsManager().incGroupGetLatency(requestHeader.getConsumerGroup(),
requestHeader.getTopic(), requestHeader.getQueueId(), requestHeader.getTopic(), requestHeader.getQueueId(),
(int)(this.brokerController.getMessageStore().now() - beginTimeMills)); (int) (this.brokerController.getMessageStore().now() - beginTimeMills));
response.setBody(r); response.setBody(r);
} else { } else {
try { try {
......
...@@ -72,9 +72,9 @@ public class QueryMessageProcessor implements NettyRequestProcessor { ...@@ -72,9 +72,9 @@ public class QueryMessageProcessor implements NettyRequestProcessor {
final RemotingCommand response = final RemotingCommand response =
RemotingCommand.createResponseCommand(QueryMessageResponseHeader.class); RemotingCommand.createResponseCommand(QueryMessageResponseHeader.class);
final QueryMessageResponseHeader responseHeader = final QueryMessageResponseHeader responseHeader =
(QueryMessageResponseHeader)response.readCustomHeader(); (QueryMessageResponseHeader) response.readCustomHeader();
final QueryMessageRequestHeader requestHeader = final QueryMessageRequestHeader requestHeader =
(QueryMessageRequestHeader)request (QueryMessageRequestHeader) request
.decodeCommandCustomHeader(QueryMessageRequestHeader.class); .decodeCommandCustomHeader(QueryMessageRequestHeader.class);
response.setOpaque(request.getOpaque()); response.setOpaque(request.getOpaque());
...@@ -127,7 +127,7 @@ public class QueryMessageProcessor implements NettyRequestProcessor { ...@@ -127,7 +127,7 @@ public class QueryMessageProcessor implements NettyRequestProcessor {
throws RemotingCommandException { throws RemotingCommandException {
final RemotingCommand response = RemotingCommand.createResponseCommand(null); final RemotingCommand response = RemotingCommand.createResponseCommand(null);
final ViewMessageRequestHeader requestHeader = final ViewMessageRequestHeader requestHeader =
(ViewMessageRequestHeader)request.decodeCommandCustomHeader(ViewMessageRequestHeader.class); (ViewMessageRequestHeader) request.decodeCommandCustomHeader(ViewMessageRequestHeader.class);
response.setOpaque(request.getOpaque()); response.setOpaque(request.getOpaque());
......
...@@ -89,7 +89,7 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement ...@@ -89,7 +89,7 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement
throws RemotingCommandException { throws RemotingCommandException {
final RemotingCommand response = RemotingCommand.createResponseCommand(null); final RemotingCommand response = RemotingCommand.createResponseCommand(null);
final ConsumerSendMsgBackRequestHeader requestHeader = final ConsumerSendMsgBackRequestHeader requestHeader =
(ConsumerSendMsgBackRequestHeader)request.decodeCommandCustomHeader(ConsumerSendMsgBackRequestHeader.class); (ConsumerSendMsgBackRequestHeader) request.decodeCommandCustomHeader(ConsumerSendMsgBackRequestHeader.class);
if (this.hasConsumeMessageHook() && !UtilAll.isBlank(requestHeader.getOriginMsgId())) { if (this.hasConsumeMessageHook() && !UtilAll.isBlank(requestHeader.getOriginMsgId())) {
...@@ -244,7 +244,7 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement ...@@ -244,7 +244,7 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement
final SendMessageRequestHeader requestHeader) throws RemotingCommandException { final SendMessageRequestHeader requestHeader) throws RemotingCommandException {
final RemotingCommand response = RemotingCommand.createResponseCommand(SendMessageResponseHeader.class); final RemotingCommand response = RemotingCommand.createResponseCommand(SendMessageResponseHeader.class);
final SendMessageResponseHeader responseHeader = (SendMessageResponseHeader)response.readCustomHeader(); final SendMessageResponseHeader responseHeader = (SendMessageResponseHeader) response.readCustomHeader();
response.setOpaque(request.getOpaque()); response.setOpaque(request.getOpaque());
...@@ -415,7 +415,7 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement ...@@ -415,7 +415,7 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement
int commercialBaseCount = brokerController.getBrokerConfig().getCommercialBaseCount(); int commercialBaseCount = brokerController.getBrokerConfig().getCommercialBaseCount();
int wroteSize = putMessageResult.getAppendMessageResult().getWroteBytes(); int wroteSize = putMessageResult.getAppendMessageResult().getWroteBytes();
int incValue = (int)Math.ceil(wroteSize / BrokerStatsManager.SIZE_PER_COUNT) * commercialBaseCount; int incValue = (int) Math.ceil(wroteSize / BrokerStatsManager.SIZE_PER_COUNT) * commercialBaseCount;
sendMessageContext.setCommercialSendStats(BrokerStatsManager.StatsType.SEND_SUCCESS); sendMessageContext.setCommercialSendStats(BrokerStatsManager.StatsType.SEND_SUCCESS);
sendMessageContext.setCommercialSendTimes(incValue); sendMessageContext.setCommercialSendTimes(incValue);
...@@ -426,7 +426,7 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement ...@@ -426,7 +426,7 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement
} else { } else {
if (hasSendMessageHook()) { if (hasSendMessageHook()) {
int wroteSize = request.getBody().length; int wroteSize = request.getBody().length;
int incValue = (int)Math.ceil(wroteSize / BrokerStatsManager.SIZE_PER_COUNT); int incValue = (int) Math.ceil(wroteSize / BrokerStatsManager.SIZE_PER_COUNT);
sendMessageContext.setCommercialSendStats(BrokerStatsManager.StatsType.SEND_FAILURE); sendMessageContext.setCommercialSendStats(BrokerStatsManager.StatsType.SEND_FAILURE);
sendMessageContext.setCommercialSendTimes(incValue); sendMessageContext.setCommercialSendTimes(incValue);
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: SendMessageTest.java 1831 2013-05-16 01:39:51Z vintagewang@apache.org $ * $Id: SendMessageTest.java 1831 2013-05-16 01:39:51Z vintagewang@apache.org $
*
* $Id: SendMessageTest.java 1831 2013-05-16 01:39:51Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: SendMessageTest.java 1831 2013-05-16 01:39:51Z vintagewang@apache.org $ * $Id: SendMessageTest.java 1831 2013-05-16 01:39:51Z vintagewang@apache.org $
*
* $Id: SendMessageTest.java 1831 2013-05-16 01:39:51Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: ConsumerOffsetManagerTest.java 1831 2013-05-16 01:39:51Z vintagewang@apache.org $ * $Id: ConsumerOffsetManagerTest.java 1831 2013-05-16 01:39:51Z vintagewang@apache.org $
*
* $Id: ConsumerOffsetManagerTest.java 1831 2013-05-16 01:39:51Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: TopicConfigManagerTest.java 1831 2013-05-16 01:39:51Z vintagewang@apache.org $ * $Id: TopicConfigManagerTest.java 1831 2013-05-16 01:39:51Z vintagewang@apache.org $
*
* $Id: TopicConfigManagerTest.java 1831 2013-05-16 01:39:51Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -22,7 +22,6 @@ import org.apache.rocketmq.remoting.common.RemotingUtil; ...@@ -22,7 +22,6 @@ import org.apache.rocketmq.remoting.common.RemotingUtil;
/** /**
* Client Common configuration * Client Common configuration
*
*/ */
public class ClientConfig { public class ClientConfig {
public static final String SEND_MESSAGE_WITH_VIP_CHANNEL_PROPERTY = "com.rocketmq.sendMessageWithVIPChannel"; public static final String SEND_MESSAGE_WITH_VIP_CHANNEL_PROPERTY = "com.rocketmq.sendMessageWithVIPChannel";
......
...@@ -24,19 +24,14 @@ import org.apache.rocketmq.remoting.exception.RemotingException; ...@@ -24,19 +24,14 @@ import org.apache.rocketmq.remoting.exception.RemotingException;
/** /**
* Base interface for MQ management * Base interface for MQ management
*
*/ */
public interface MQAdmin { public interface MQAdmin {
/** /**
* Creates an topic * Creates an topic
* *
* @param key * @param key accesskey
* accesskey * @param newTopic topic name
* @param newTopic * @param queueNum topic's queue number
* topic name
* @param queueNum
* topic's queue number
*
* @throws MQClientException * @throws MQClientException
*/ */
void createTopic(final String key, final String newTopic, final int queueNum) void createTopic(final String key, final String newTopic, final int queueNum)
...@@ -45,15 +40,10 @@ public interface MQAdmin { ...@@ -45,15 +40,10 @@ public interface MQAdmin {
/** /**
* Creates an topic * Creates an topic
* *
* @param key * @param key accesskey
* accesskey * @param newTopic topic name
* @param newTopic * @param queueNum topic's queue number
* topic name * @param topicSysFlag topic system flag
* @param queueNum
* topic's queue number
* @param topicSysFlag
* topic system flag
*
* @throws MQClientException * @throws MQClientException
*/ */
void createTopic(String key, String newTopic, int queueNum, int topicSysFlag) void createTopic(String key, String newTopic, int queueNum, int topicSysFlag)
...@@ -63,13 +53,9 @@ public interface MQAdmin { ...@@ -63,13 +53,9 @@ public interface MQAdmin {
* Gets the message queue offset according to some time in milliseconds<br> * Gets the message queue offset according to some time in milliseconds<br>
* be cautious to call because of more IO overhead * be cautious to call because of more IO overhead
* *
* @param mq * @param mq Instance of MessageQueue
* Instance of MessageQueue * @param timestamp from when in milliseconds.
* @param timestamp
* from when in milliseconds.
*
* @return offset * @return offset
*
* @throws MQClientException * @throws MQClientException
*/ */
long searchOffset(final MessageQueue mq, final long timestamp) throws MQClientException; long searchOffset(final MessageQueue mq, final long timestamp) throws MQClientException;
...@@ -77,11 +63,8 @@ public interface MQAdmin { ...@@ -77,11 +63,8 @@ public interface MQAdmin {
/** /**
* Gets the max offset * Gets the max offset
* *
* @param mq * @param mq Instance of MessageQueue
* Instance of MessageQueue
*
* @return the max offset * @return the max offset
*
* @throws MQClientException * @throws MQClientException
*/ */
long maxOffset(final MessageQueue mq) throws MQClientException; long maxOffset(final MessageQueue mq) throws MQClientException;
...@@ -89,11 +72,8 @@ public interface MQAdmin { ...@@ -89,11 +72,8 @@ public interface MQAdmin {
/** /**
* Gets the minimum offset * Gets the minimum offset
* *
* @param mq * @param mq Instance of MessageQueue
* Instance of MessageQueue
*
* @return the minimum offset * @return the minimum offset
*
* @throws MQClientException * @throws MQClientException
*/ */
long minOffset(final MessageQueue mq) throws MQClientException; long minOffset(final MessageQueue mq) throws MQClientException;
...@@ -101,11 +81,8 @@ public interface MQAdmin { ...@@ -101,11 +81,8 @@ public interface MQAdmin {
/** /**
* Gets the earliest stored message time * Gets the earliest stored message time
* *
* @param mq * @param mq Instance of MessageQueue
* Instance of MessageQueue
*
* @return the time in microseconds * @return the time in microseconds
*
* @throws MQClientException * @throws MQClientException
*/ */
long earliestMsgStoreTime(final MessageQueue mq) throws MQClientException; long earliestMsgStoreTime(final MessageQueue mq) throws MQClientException;
...@@ -113,11 +90,8 @@ public interface MQAdmin { ...@@ -113,11 +90,8 @@ public interface MQAdmin {
/** /**
* Query message according tto message id * Query message according tto message id
* *
* @param offsetMsgId * @param offsetMsgId message id
* message id
*
* @return message * @return message
*
* @throws InterruptedException * @throws InterruptedException
* @throws MQBrokerException * @throws MQBrokerException
* @throws RemotingException * @throws RemotingException
...@@ -129,19 +103,12 @@ public interface MQAdmin { ...@@ -129,19 +103,12 @@ public interface MQAdmin {
/** /**
* Query messages * Query messages
* *
* @param topic * @param topic message topic
* message topic * @param key message key index word
* @param key * @param maxNum max message number
* message key index word * @param begin from when
* @param maxNum * @param end to when
* max message number
* @param begin
* from when
* @param end
* to when
*
* @return Instance of QueryResult * @return Instance of QueryResult
*
* @throws MQClientException * @throws MQClientException
* @throws InterruptedException * @throws InterruptedException
*/ */
...@@ -149,7 +116,6 @@ public interface MQAdmin { ...@@ -149,7 +116,6 @@ public interface MQAdmin {
final long end) throws MQClientException, InterruptedException; final long end) throws MQClientException, InterruptedException;
/** /**
* @param topic * @param topic
* @param msgId * @param msgId
* @return The {@code MessageExt} of given msgId * @return The {@code MessageExt} of given msgId
......
...@@ -28,7 +28,6 @@ import org.apache.rocketmq.common.protocol.ResponseCode; ...@@ -28,7 +28,6 @@ import org.apache.rocketmq.common.protocol.ResponseCode;
/** /**
* Common Validator * Common Validator
*
*/ */
public class Validators { public class Validators {
public static final String VALID_PATTERN_STR = "^[%|a-zA-Z0-9_-]+$"; public static final String VALID_PATTERN_STR = "^[%|a-zA-Z0-9_-]+$";
...@@ -38,7 +37,6 @@ public class Validators { ...@@ -38,7 +37,6 @@ public class Validators {
/** /**
* @param origin * @param origin
* @param patternStr * @param patternStr
*
* @return The resulting {@code String} * @return The resulting {@code String}
*/ */
public static String getGroupWithRegularExpression(String origin, String patternStr) { public static String getGroupWithRegularExpression(String origin, String patternStr) {
...@@ -54,7 +52,6 @@ public class Validators { ...@@ -54,7 +52,6 @@ public class Validators {
* Validate group * Validate group
* *
* @param group * @param group
*
* @throws MQClientException * @throws MQClientException
*/ */
public static void checkGroup(String group) throws MQClientException { public static void checkGroup(String group) throws MQClientException {
...@@ -74,9 +71,7 @@ public class Validators { ...@@ -74,9 +71,7 @@ public class Validators {
/** /**
* @param origin * @param origin
* @param pattern * @param pattern
* * @return <tt>true</tt> if, and only if, the entire origin sequence matches this matcher's pattern
* @return <tt>true</tt> if, and only if, the entire origin sequence
* matches this matcher's pattern
*/ */
public static boolean regularExpressionMatcher(String origin, Pattern pattern) { public static boolean regularExpressionMatcher(String origin, Pattern pattern) {
if (pattern == null) { if (pattern == null) {
...@@ -91,7 +86,6 @@ public class Validators { ...@@ -91,7 +86,6 @@ public class Validators {
* *
* @param msg * @param msg
* @param defaultMQProducer * @param defaultMQProducer
*
* @throws MQClientException * @throws MQClientException
*/ */
public static void checkMessage(Message msg, DefaultMQProducer defaultMQProducer) public static void checkMessage(Message msg, DefaultMQProducer defaultMQProducer)
...@@ -120,7 +114,6 @@ public class Validators { ...@@ -120,7 +114,6 @@ public class Validators {
* Validate topic * Validate topic
* *
* @param topic * @param topic
*
* @throws MQClientException * @throws MQClientException
*/ */
public static void checkTopic(String topic) throws MQClientException { public static void checkTopic(String topic) throws MQClientException {
......
...@@ -35,7 +35,6 @@ import org.apache.rocketmq.remoting.exception.RemotingException; ...@@ -35,7 +35,6 @@ import org.apache.rocketmq.remoting.exception.RemotingException;
/** /**
* Default pulling consumer * Default pulling consumer
*
*/ */
public class DefaultMQPullConsumer extends ClientConfig implements MQPullConsumer { public class DefaultMQPullConsumer extends ClientConfig implements MQPullConsumer {
protected final transient DefaultMQPullConsumerImpl defaultMQPullConsumerImpl; protected final transient DefaultMQPullConsumerImpl defaultMQPullConsumerImpl;
......
...@@ -26,7 +26,6 @@ import org.apache.rocketmq.remoting.exception.RemotingException; ...@@ -26,7 +26,6 @@ import org.apache.rocketmq.remoting.exception.RemotingException;
/** /**
* Message queue consumer interface * Message queue consumer interface
*
*/ */
public interface MQConsumer extends MQAdmin { public interface MQConsumer extends MQAdmin {
/** /**
...@@ -34,7 +33,6 @@ public interface MQConsumer extends MQAdmin { ...@@ -34,7 +33,6 @@ public interface MQConsumer extends MQAdmin {
* *
* @param msg * @param msg
* @param delayLevel * @param delayLevel
*
* @throws InterruptedException * @throws InterruptedException
* @throws MQBrokerException * @throws MQBrokerException
* @throws RemotingException * @throws RemotingException
...@@ -50,7 +48,6 @@ public interface MQConsumer extends MQAdmin { ...@@ -50,7 +48,6 @@ public interface MQConsumer extends MQAdmin {
* @param msg * @param msg
* @param delayLevel * @param delayLevel
* @param brokerName * @param brokerName
*
* @throws RemotingException * @throws RemotingException
* @throws MQBrokerException * @throws MQBrokerException
* @throws InterruptedException * @throws InterruptedException
...@@ -62,11 +59,8 @@ public interface MQConsumer extends MQAdmin { ...@@ -62,11 +59,8 @@ public interface MQConsumer extends MQAdmin {
/** /**
* Fetch message queues from consumer cache according to the topic * Fetch message queues from consumer cache according to the topic
* *
* @param topic * @param topic message topic
* message topic
*
* @return queue set * @return queue set
*
* @throws MQClientException * @throws MQClientException
*/ */
Set<MessageQueue> fetchSubscribeMessageQueues(final String topic) throws MQClientException; Set<MessageQueue> fetchSubscribeMessageQueues(final String topic) throws MQClientException;
......
...@@ -25,7 +25,6 @@ import org.apache.rocketmq.remoting.exception.RemotingException; ...@@ -25,7 +25,6 @@ import org.apache.rocketmq.remoting.exception.RemotingException;
/** /**
* Pulling consumer interface * Pulling consumer interface
*
*/ */
public interface MQPullConsumer extends MQConsumer { public interface MQPullConsumer extends MQConsumer {
/** /**
...@@ -51,18 +50,12 @@ public interface MQPullConsumer extends MQConsumer { ...@@ -51,18 +50,12 @@ public interface MQPullConsumer extends MQConsumer {
/** /**
* Pulling the messages,not blocking * Pulling the messages,not blocking
* *
* @param mq * @param mq from which message queue
* from which message queue * @param subExpression subscription expression.it only support or operation such as "tag1 || tag2 || tag3" <br> if null or * expression,meaning subscribe
* @param subExpression * all
* subscription expression.it only support or operation such as "tag1 || tag2 || tag3" <br> * @param offset from where to pull
* if null or * expression,meaning subscribe all * @param maxNums max pulling numbers
* @param offset
* from where to pull
* @param maxNums
* max pulling numbers
*
* @return The resulting {@code PullRequest} * @return The resulting {@code PullRequest}
*
* @throws MQClientException * @throws MQClientException
* @throws InterruptedException * @throws InterruptedException
* @throws MQBrokerException * @throws MQBrokerException
...@@ -80,9 +73,7 @@ public interface MQPullConsumer extends MQConsumer { ...@@ -80,9 +73,7 @@ public interface MQPullConsumer extends MQConsumer {
* @param offset * @param offset
* @param maxNums * @param maxNums
* @param timeout * @param timeout
*
* @return The resulting {@code PullRequest} * @return The resulting {@code PullRequest}
*
* @throws MQClientException * @throws MQClientException
* @throws RemotingException * @throws RemotingException
* @throws MQBrokerException * @throws MQBrokerException
...@@ -100,7 +91,6 @@ public interface MQPullConsumer extends MQConsumer { ...@@ -100,7 +91,6 @@ public interface MQPullConsumer extends MQConsumer {
* @param offset * @param offset
* @param maxNums * @param maxNums
* @param pullCallback * @param pullCallback
*
* @throws MQClientException * @throws MQClientException
* @throws RemotingException * @throws RemotingException
* @throws InterruptedException * @throws InterruptedException
...@@ -118,7 +108,6 @@ public interface MQPullConsumer extends MQConsumer { ...@@ -118,7 +108,6 @@ public interface MQPullConsumer extends MQConsumer {
* @param maxNums * @param maxNums
* @param pullCallback * @param pullCallback
* @param timeout * @param timeout
*
* @throws MQClientException * @throws MQClientException
* @throws RemotingException * @throws RemotingException
* @throws InterruptedException * @throws InterruptedException
...@@ -134,9 +123,7 @@ public interface MQPullConsumer extends MQConsumer { ...@@ -134,9 +123,7 @@ public interface MQPullConsumer extends MQConsumer {
* @param subExpression * @param subExpression
* @param offset * @param offset
* @param maxNums * @param maxNums
*
* @return The resulting {@code PullRequest} * @return The resulting {@code PullRequest}
*
* @throws MQClientException * @throws MQClientException
* @throws RemotingException * @throws RemotingException
* @throws MQBrokerException * @throws MQBrokerException
...@@ -154,7 +141,6 @@ public interface MQPullConsumer extends MQConsumer { ...@@ -154,7 +141,6 @@ public interface MQPullConsumer extends MQConsumer {
* @param offset * @param offset
* @param maxNums * @param maxNums
* @param pullCallback * @param pullCallback
*
* @throws MQClientException * @throws MQClientException
* @throws RemotingException * @throws RemotingException
* @throws InterruptedException * @throws InterruptedException
...@@ -168,7 +154,6 @@ public interface MQPullConsumer extends MQConsumer { ...@@ -168,7 +154,6 @@ public interface MQPullConsumer extends MQConsumer {
* *
* @param mq * @param mq
* @param offset * @param offset
*
* @throws MQClientException * @throws MQClientException
*/ */
void updateConsumeOffset(final MessageQueue mq, final long offset) throws MQClientException; void updateConsumeOffset(final MessageQueue mq, final long offset) throws MQClientException;
...@@ -178,9 +163,7 @@ public interface MQPullConsumer extends MQConsumer { ...@@ -178,9 +163,7 @@ public interface MQPullConsumer extends MQConsumer {
* *
* @param mq * @param mq
* @param fromStore * @param fromStore
*
* @return The fetched offset of given queue * @return The fetched offset of given queue
*
* @throws MQClientException * @throws MQClientException
*/ */
long fetchConsumeOffset(final MessageQueue mq, final boolean fromStore) throws MQClientException; long fetchConsumeOffset(final MessageQueue mq, final boolean fromStore) throws MQClientException;
...@@ -188,11 +171,8 @@ public interface MQPullConsumer extends MQConsumer { ...@@ -188,11 +171,8 @@ public interface MQPullConsumer extends MQConsumer {
/** /**
* Fetch the message queues according to the topic * Fetch the message queues according to the topic
* *
* @param topic * @param topic message topic
* message topic
*
* @return message queue set * @return message queue set
*
* @throws MQClientException * @throws MQClientException
*/ */
Set<MessageQueue> fetchMessageQueuesInBalance(final String topic) throws MQClientException; Set<MessageQueue> fetchMessageQueuesInBalance(final String topic) throws MQClientException;
...@@ -205,7 +185,6 @@ public interface MQPullConsumer extends MQConsumer { ...@@ -205,7 +185,6 @@ public interface MQPullConsumer extends MQConsumer {
* @param delayLevel * @param delayLevel
* @param brokerName * @param brokerName
* @param consumerGroup * @param consumerGroup
*
* @throws RemotingException * @throws RemotingException
* @throws MQBrokerException * @throws MQBrokerException
* @throws InterruptedException * @throws InterruptedException
......
...@@ -23,7 +23,6 @@ import org.apache.rocketmq.client.exception.MQClientException; ...@@ -23,7 +23,6 @@ import org.apache.rocketmq.client.exception.MQClientException;
/** /**
* Push consumer * Push consumer
*
*/ */
public interface MQPushConsumer extends MQConsumer { public interface MQPushConsumer extends MQConsumer {
/** /**
...@@ -54,11 +53,8 @@ public interface MQPushConsumer extends MQConsumer { ...@@ -54,11 +53,8 @@ public interface MQPushConsumer extends MQConsumer {
* Subscribe some topic * Subscribe some topic
* *
* @param topic * @param topic
* @param subExpression * @param subExpression subscription expression.it only support or operation such as "tag1 || tag2 || tag3" <br> if null or * expression,meaning subscribe
* subscription expression.it only support or operation such as * all
* "tag1 || tag2 || tag3" <br>
* if null or * expression,meaning subscribe all
*
* @throws MQClientException * @throws MQClientException
*/ */
void subscribe(final String topic, final String subExpression) throws MQClientException; void subscribe(final String topic, final String subExpression) throws MQClientException;
...@@ -67,13 +63,8 @@ public interface MQPushConsumer extends MQConsumer { ...@@ -67,13 +63,8 @@ public interface MQPushConsumer extends MQConsumer {
* Subscribe some topic * Subscribe some topic
* *
* @param topic * @param topic
* @param fullClassName * @param fullClassName full class name,must extend org.apache.rocketmq.common.filter. MessageFilter
* full class name,must extend * @param filterClassSource class source code,used UTF-8 file encoding,must be responsible for your code safety
* org.apache.rocketmq.common.filter. MessageFilter
* @param filterClassSource
* class source code,used UTF-8 file encoding,must be responsible
* for your code safety
*
* @throws MQClientException * @throws MQClientException
*/ */
void subscribe(final String topic, final String fullClassName, final String filterClassSource) throws MQClientException; void subscribe(final String topic, final String fullClassName, final String filterClassSource) throws MQClientException;
...@@ -81,8 +72,7 @@ public interface MQPushConsumer extends MQConsumer { ...@@ -81,8 +72,7 @@ public interface MQPushConsumer extends MQConsumer {
/** /**
* Unsubscribe consumption some topic * Unsubscribe consumption some topic
* *
* @param topic * @param topic message topic
* message topic
*/ */
void unsubscribe(final String topic); void unsubscribe(final String topic);
......
...@@ -21,16 +21,12 @@ import org.apache.rocketmq.common.message.MessageQueue; ...@@ -21,16 +21,12 @@ import org.apache.rocketmq.common.message.MessageQueue;
/** /**
* A MessageQueueListener is implemented by the application and may be specified when a message queue changed * A MessageQueueListener is implemented by the application and may be specified when a message queue changed
*
*/ */
public interface MessageQueueListener { public interface MessageQueueListener {
/** /**
* @param topic * @param topic message topic
* message topic * @param mqAll all queues in this message topic
* @param mqAll * @param mqDivided collection of queues,assigned to the current consumer
* all queues in this message topic
* @param mqDivided
* collection of queues,assigned to the current consumer
*/ */
void messageQueueChanged(final String topic, final Set<MessageQueue> mqAll, void messageQueueChanged(final String topic, final Set<MessageQueue> mqAll,
final Set<MessageQueue> mqDivided); final Set<MessageQueue> mqDivided);
......
...@@ -18,7 +18,6 @@ package org.apache.rocketmq.client.consumer; ...@@ -18,7 +18,6 @@ package org.apache.rocketmq.client.consumer;
/** /**
* Async message pulling interface * Async message pulling interface
*
*/ */
public interface PullCallback { public interface PullCallback {
void onSuccess(final PullResult pullResult); void onSuccess(final PullResult pullResult);
......
...@@ -20,7 +20,6 @@ import org.apache.rocketmq.common.message.MessageQueue; ...@@ -20,7 +20,6 @@ import org.apache.rocketmq.common.message.MessageQueue;
/** /**
* Consumer Orderly consumption context * Consumer Orderly consumption context
*
*/ */
public class ConsumeOrderlyContext { public class ConsumeOrderlyContext {
private final MessageQueue messageQueue; private final MessageQueue messageQueue;
......
...@@ -18,7 +18,6 @@ package org.apache.rocketmq.client.consumer.listener; ...@@ -18,7 +18,6 @@ package org.apache.rocketmq.client.consumer.listener;
/** /**
* A MessageListener object is used to receive asynchronously delivered messages. * A MessageListener object is used to receive asynchronously delivered messages.
*
*/ */
public interface MessageListener { public interface MessageListener {
} }
...@@ -21,17 +21,13 @@ import org.apache.rocketmq.common.message.MessageExt; ...@@ -21,17 +21,13 @@ import org.apache.rocketmq.common.message.MessageExt;
/** /**
* A MessageListenerConcurrently object is used to receive asynchronously delivered messages concurrently * A MessageListenerConcurrently object is used to receive asynchronously delivered messages concurrently
*
*/ */
public interface MessageListenerConcurrently extends MessageListener { public interface MessageListenerConcurrently extends MessageListener {
/** /**
* It is not recommend to throw exception,rather than returning ConsumeConcurrentlyStatus.RECONSUME_LATER if consumption failure * It is not recommend to throw exception,rather than returning ConsumeConcurrentlyStatus.RECONSUME_LATER if consumption failure
* *
* @param msgs * @param msgs msgs.size() >= 1<br> DefaultMQPushConsumer.consumeMessageBatchMaxSize=1,you can modify here
* msgs.size() >= 1<br>
* DefaultMQPushConsumer.consumeMessageBatchMaxSize=1,you can modify here
* @param context * @param context
*
* @return The consume status * @return The consume status
*/ */
ConsumeConcurrentlyStatus consumeMessage(final List<MessageExt> msgs, ConsumeConcurrentlyStatus consumeMessage(final List<MessageExt> msgs,
......
...@@ -21,17 +21,13 @@ import org.apache.rocketmq.common.message.MessageExt; ...@@ -21,17 +21,13 @@ import org.apache.rocketmq.common.message.MessageExt;
/** /**
* A MessageListenerConcurrently object is used to receive asynchronously delivered messages orderly.one queue,one thread * A MessageListenerConcurrently object is used to receive asynchronously delivered messages orderly.one queue,one thread
*
*/ */
public interface MessageListenerOrderly extends MessageListener { public interface MessageListenerOrderly extends MessageListener {
/** /**
* It is not recommend to throw exception,rather than returning ConsumeOrderlyStatus.SUSPEND_CURRENT_QUEUE_A_MOMENT if consumption failure * It is not recommend to throw exception,rather than returning ConsumeOrderlyStatus.SUSPEND_CURRENT_QUEUE_A_MOMENT if consumption failure
* *
* @param msgs * @param msgs msgs.size() >= 1<br> DefaultMQPushConsumer.consumeMessageBatchMaxSize=1,you can modify here
* msgs.size() >= 1<br>
* DefaultMQPushConsumer.consumeMessageBatchMaxSize=1,you can modify here
* @param context * @param context
*
* @return The consume status * @return The consume status
*/ */
ConsumeOrderlyStatus consumeMessage(final List<MessageExt> msgs, ConsumeOrderlyStatus consumeMessage(final List<MessageExt> msgs,
......
...@@ -23,7 +23,6 @@ import org.apache.rocketmq.remoting.protocol.RemotingSerializable; ...@@ -23,7 +23,6 @@ import org.apache.rocketmq.remoting.protocol.RemotingSerializable;
/** /**
* Wrapper class for offset serialization * Wrapper class for offset serialization
*
*/ */
public class OffsetSerializeWrapper extends RemotingSerializable { public class OffsetSerializeWrapper extends RemotingSerializable {
private ConcurrentHashMap<MessageQueue, AtomicLong> offsetTable = private ConcurrentHashMap<MessageQueue, AtomicLong> offsetTable =
......
...@@ -25,7 +25,6 @@ import org.apache.rocketmq.remoting.exception.RemotingException; ...@@ -25,7 +25,6 @@ import org.apache.rocketmq.remoting.exception.RemotingException;
/** /**
* Offset store interface * Offset store interface
*
*/ */
public interface OffsetStore { public interface OffsetStore {
/** /**
...@@ -49,7 +48,6 @@ public interface OffsetStore { ...@@ -49,7 +48,6 @@ public interface OffsetStore {
* *
* @param mq * @param mq
* @param type * @param type
*
* @return The fetched offset * @return The fetched offset
*/ */
long readOffset(final MessageQueue mq, final ReadOffsetType type); long readOffset(final MessageQueue mq, final ReadOffsetType type);
...@@ -77,13 +75,11 @@ public interface OffsetStore { ...@@ -77,13 +75,11 @@ public interface OffsetStore {
/** /**
* @param topic * @param topic
*
* @return The cloned offset table of given topic * @return The cloned offset table of given topic
*/ */
Map<MessageQueue, Long> cloneOffsetTable(String topic); Map<MessageQueue, Long> cloneOffsetTable(String topic);
/** /**
*
* @param mq * @param mq
* @param offset * @param offset
* @param isOneway * @param isOneway
......
...@@ -84,7 +84,7 @@ public class ClientRemotingProcessor implements NettyRequestProcessor { ...@@ -84,7 +84,7 @@ public class ClientRemotingProcessor implements NettyRequestProcessor {
public RemotingCommand checkTransactionState(ChannelHandlerContext ctx, RemotingCommand request) throws RemotingCommandException { public RemotingCommand checkTransactionState(ChannelHandlerContext ctx, RemotingCommand request) throws RemotingCommandException {
final CheckTransactionStateRequestHeader requestHeader = final CheckTransactionStateRequestHeader requestHeader =
(CheckTransactionStateRequestHeader)request.decodeCommandCustomHeader(CheckTransactionStateRequestHeader.class); (CheckTransactionStateRequestHeader) request.decodeCommandCustomHeader(CheckTransactionStateRequestHeader.class);
final ByteBuffer byteBuffer = ByteBuffer.wrap(request.getBody()); final ByteBuffer byteBuffer = ByteBuffer.wrap(request.getBody());
final MessageExt messageExt = MessageDecoder.decode(byteBuffer); final MessageExt messageExt = MessageDecoder.decode(byteBuffer);
if (messageExt != null) { if (messageExt != null) {
...@@ -110,7 +110,7 @@ public class ClientRemotingProcessor implements NettyRequestProcessor { ...@@ -110,7 +110,7 @@ public class ClientRemotingProcessor implements NettyRequestProcessor {
public RemotingCommand notifyConsumerIdsChanged(ChannelHandlerContext ctx, RemotingCommand request) throws RemotingCommandException { public RemotingCommand notifyConsumerIdsChanged(ChannelHandlerContext ctx, RemotingCommand request) throws RemotingCommandException {
try { try {
final NotifyConsumerIdsChangedRequestHeader requestHeader = final NotifyConsumerIdsChangedRequestHeader requestHeader =
(NotifyConsumerIdsChangedRequestHeader)request.decodeCommandCustomHeader(NotifyConsumerIdsChangedRequestHeader.class); (NotifyConsumerIdsChangedRequestHeader) request.decodeCommandCustomHeader(NotifyConsumerIdsChangedRequestHeader.class);
log.info("receive broker's notification[{}], the consumer group: {} changed, rebalance immediately", log.info("receive broker's notification[{}], the consumer group: {} changed, rebalance immediately",
RemotingHelper.parseChannelRemoteAddr(ctx.channel()), RemotingHelper.parseChannelRemoteAddr(ctx.channel()),
requestHeader.getConsumerGroup()); requestHeader.getConsumerGroup());
...@@ -123,7 +123,7 @@ public class ClientRemotingProcessor implements NettyRequestProcessor { ...@@ -123,7 +123,7 @@ public class ClientRemotingProcessor implements NettyRequestProcessor {
public RemotingCommand resetOffset(ChannelHandlerContext ctx, RemotingCommand request) throws RemotingCommandException { public RemotingCommand resetOffset(ChannelHandlerContext ctx, RemotingCommand request) throws RemotingCommandException {
final ResetOffsetRequestHeader requestHeader = final ResetOffsetRequestHeader requestHeader =
(ResetOffsetRequestHeader)request.decodeCommandCustomHeader(ResetOffsetRequestHeader.class); (ResetOffsetRequestHeader) request.decodeCommandCustomHeader(ResetOffsetRequestHeader.class);
log.info("invoke reset offset operation from broker. brokerAddr={}, topic={}, group={}, timestamp={}", log.info("invoke reset offset operation from broker. brokerAddr={}, topic={}, group={}, timestamp={}",
new Object[] { new Object[] {
RemotingHelper.parseChannelRemoteAddr(ctx.channel()), requestHeader.getTopic(), requestHeader.getGroup(), RemotingHelper.parseChannelRemoteAddr(ctx.channel()), requestHeader.getTopic(), requestHeader.getGroup(),
...@@ -141,7 +141,7 @@ public class ClientRemotingProcessor implements NettyRequestProcessor { ...@@ -141,7 +141,7 @@ public class ClientRemotingProcessor implements NettyRequestProcessor {
public RemotingCommand getConsumeStatus(ChannelHandlerContext ctx, RemotingCommand request) throws RemotingCommandException { public RemotingCommand getConsumeStatus(ChannelHandlerContext ctx, RemotingCommand request) throws RemotingCommandException {
final RemotingCommand response = RemotingCommand.createResponseCommand(null); final RemotingCommand response = RemotingCommand.createResponseCommand(null);
final GetConsumerStatusRequestHeader requestHeader = final GetConsumerStatusRequestHeader requestHeader =
(GetConsumerStatusRequestHeader)request.decodeCommandCustomHeader(GetConsumerStatusRequestHeader.class); (GetConsumerStatusRequestHeader) request.decodeCommandCustomHeader(GetConsumerStatusRequestHeader.class);
Map<MessageQueue, Long> offsetTable = this.mqClientFactory.getConsumerStatus(requestHeader.getTopic(), requestHeader.getGroup()); Map<MessageQueue, Long> offsetTable = this.mqClientFactory.getConsumerStatus(requestHeader.getTopic(), requestHeader.getGroup());
GetConsumerStatusBody body = new GetConsumerStatusBody(); GetConsumerStatusBody body = new GetConsumerStatusBody();
...@@ -154,7 +154,7 @@ public class ClientRemotingProcessor implements NettyRequestProcessor { ...@@ -154,7 +154,7 @@ public class ClientRemotingProcessor implements NettyRequestProcessor {
private RemotingCommand getConsumerRunningInfo(ChannelHandlerContext ctx, RemotingCommand request) throws RemotingCommandException { private RemotingCommand getConsumerRunningInfo(ChannelHandlerContext ctx, RemotingCommand request) throws RemotingCommandException {
final RemotingCommand response = RemotingCommand.createResponseCommand(null); final RemotingCommand response = RemotingCommand.createResponseCommand(null);
final GetConsumerRunningInfoRequestHeader requestHeader = final GetConsumerRunningInfoRequestHeader requestHeader =
(GetConsumerRunningInfoRequestHeader)request.decodeCommandCustomHeader(GetConsumerRunningInfoRequestHeader.class); (GetConsumerRunningInfoRequestHeader) request.decodeCommandCustomHeader(GetConsumerRunningInfoRequestHeader.class);
ConsumerRunningInfo consumerRunningInfo = this.mqClientFactory.consumerRunningInfo(requestHeader.getConsumerGroup()); ConsumerRunningInfo consumerRunningInfo = this.mqClientFactory.consumerRunningInfo(requestHeader.getConsumerGroup());
if (null != consumerRunningInfo) { if (null != consumerRunningInfo) {
...@@ -177,7 +177,7 @@ public class ClientRemotingProcessor implements NettyRequestProcessor { ...@@ -177,7 +177,7 @@ public class ClientRemotingProcessor implements NettyRequestProcessor {
private RemotingCommand consumeMessageDirectly(ChannelHandlerContext ctx, RemotingCommand request) throws RemotingCommandException { private RemotingCommand consumeMessageDirectly(ChannelHandlerContext ctx, RemotingCommand request) throws RemotingCommandException {
final RemotingCommand response = RemotingCommand.createResponseCommand(null); final RemotingCommand response = RemotingCommand.createResponseCommand(null);
final ConsumeMessageDirectlyResultRequestHeader requestHeader = final ConsumeMessageDirectlyResultRequestHeader requestHeader =
(ConsumeMessageDirectlyResultRequestHeader)request (ConsumeMessageDirectlyResultRequestHeader) request
.decodeCommandCustomHeader(ConsumeMessageDirectlyResultRequestHeader.class); .decodeCommandCustomHeader(ConsumeMessageDirectlyResultRequestHeader.class);
final MessageExt msg = MessageDecoder.decode(ByteBuffer.wrap(request.getBody())); final MessageExt msg = MessageDecoder.decode(ByteBuffer.wrap(request.getBody()));
......
...@@ -307,7 +307,7 @@ public class MQAdminImpl { ...@@ -307,7 +307,7 @@ public class MQAdminImpl {
QueryMessageResponseHeader responseHeader = null; QueryMessageResponseHeader responseHeader = null;
try { try {
responseHeader = responseHeader =
(QueryMessageResponseHeader)response (QueryMessageResponseHeader) response
.decodeCommandCustomHeader(QueryMessageResponseHeader.class); .decodeCommandCustomHeader(QueryMessageResponseHeader.class);
} catch (RemotingCommandException e) { } catch (RemotingCommandException e) {
log.error("decodeCommandCustomHeader exception", e); log.error("decodeCommandCustomHeader exception", e);
......
...@@ -505,7 +505,7 @@ public class MQClientAPIImpl { ...@@ -505,7 +505,7 @@ public class MQClientAPIImpl {
} }
SendMessageResponseHeader responseHeader = SendMessageResponseHeader responseHeader =
(SendMessageResponseHeader)response.decodeCommandCustomHeader(SendMessageResponseHeader.class); (SendMessageResponseHeader) response.decodeCommandCustomHeader(SendMessageResponseHeader.class);
MessageQueue messageQueue = new MessageQueue(msg.getTopic(), brokerName, responseHeader.getQueueId()); MessageQueue messageQueue = new MessageQueue(msg.getTopic(), brokerName, responseHeader.getQueueId());
...@@ -622,7 +622,7 @@ public class MQClientAPIImpl { ...@@ -622,7 +622,7 @@ public class MQClientAPIImpl {
} }
PullMessageResponseHeader responseHeader = PullMessageResponseHeader responseHeader =
(PullMessageResponseHeader)response.decodeCommandCustomHeader(PullMessageResponseHeader.class); (PullMessageResponseHeader) response.decodeCommandCustomHeader(PullMessageResponseHeader.class);
return new PullResultExt(pullStatus, responseHeader.getNextBeginOffset(), responseHeader.getMinOffset(), return new PullResultExt(pullStatus, responseHeader.getNextBeginOffset(), responseHeader.getMinOffset(),
responseHeader.getMaxOffset(), null, responseHeader.getSuggestWhichBrokerId(), response.getBody()); responseHeader.getMaxOffset(), null, responseHeader.getSuggestWhichBrokerId(), response.getBody());
...@@ -664,7 +664,7 @@ public class MQClientAPIImpl { ...@@ -664,7 +664,7 @@ public class MQClientAPIImpl {
switch (response.getCode()) { switch (response.getCode()) {
case ResponseCode.SUCCESS: { case ResponseCode.SUCCESS: {
SearchOffsetResponseHeader responseHeader = SearchOffsetResponseHeader responseHeader =
(SearchOffsetResponseHeader)response.decodeCommandCustomHeader(SearchOffsetResponseHeader.class); (SearchOffsetResponseHeader) response.decodeCommandCustomHeader(SearchOffsetResponseHeader.class);
return responseHeader.getOffset(); return responseHeader.getOffset();
} }
default: default:
...@@ -687,7 +687,7 @@ public class MQClientAPIImpl { ...@@ -687,7 +687,7 @@ public class MQClientAPIImpl {
switch (response.getCode()) { switch (response.getCode()) {
case ResponseCode.SUCCESS: { case ResponseCode.SUCCESS: {
GetMaxOffsetResponseHeader responseHeader = GetMaxOffsetResponseHeader responseHeader =
(GetMaxOffsetResponseHeader)response.decodeCommandCustomHeader(GetMaxOffsetResponseHeader.class); (GetMaxOffsetResponseHeader) response.decodeCommandCustomHeader(GetMaxOffsetResponseHeader.class);
return responseHeader.getOffset(); return responseHeader.getOffset();
} }
...@@ -738,7 +738,7 @@ public class MQClientAPIImpl { ...@@ -738,7 +738,7 @@ public class MQClientAPIImpl {
switch (response.getCode()) { switch (response.getCode()) {
case ResponseCode.SUCCESS: { case ResponseCode.SUCCESS: {
GetMinOffsetResponseHeader responseHeader = GetMinOffsetResponseHeader responseHeader =
(GetMinOffsetResponseHeader)response.decodeCommandCustomHeader(GetMinOffsetResponseHeader.class); (GetMinOffsetResponseHeader) response.decodeCommandCustomHeader(GetMinOffsetResponseHeader.class);
return responseHeader.getOffset(); return responseHeader.getOffset();
} }
...@@ -762,7 +762,7 @@ public class MQClientAPIImpl { ...@@ -762,7 +762,7 @@ public class MQClientAPIImpl {
switch (response.getCode()) { switch (response.getCode()) {
case ResponseCode.SUCCESS: { case ResponseCode.SUCCESS: {
GetEarliestMsgStoretimeResponseHeader responseHeader = GetEarliestMsgStoretimeResponseHeader responseHeader =
(GetEarliestMsgStoretimeResponseHeader)response.decodeCommandCustomHeader(GetEarliestMsgStoretimeResponseHeader.class); (GetEarliestMsgStoretimeResponseHeader) response.decodeCommandCustomHeader(GetEarliestMsgStoretimeResponseHeader.class);
return responseHeader.getTimestamp(); return responseHeader.getTimestamp();
} }
...@@ -786,7 +786,7 @@ public class MQClientAPIImpl { ...@@ -786,7 +786,7 @@ public class MQClientAPIImpl {
switch (response.getCode()) { switch (response.getCode()) {
case ResponseCode.SUCCESS: { case ResponseCode.SUCCESS: {
QueryConsumerOffsetResponseHeader responseHeader = QueryConsumerOffsetResponseHeader responseHeader =
(QueryConsumerOffsetResponseHeader)response.decodeCommandCustomHeader(QueryConsumerOffsetResponseHeader.class); (QueryConsumerOffsetResponseHeader) response.decodeCommandCustomHeader(QueryConsumerOffsetResponseHeader.class);
return responseHeader.getOffset(); return responseHeader.getOffset();
} }
...@@ -1249,7 +1249,7 @@ public class MQClientAPIImpl { ...@@ -1249,7 +1249,7 @@ public class MQClientAPIImpl {
switch (response.getCode()) { switch (response.getCode()) {
case ResponseCode.SUCCESS: { case ResponseCode.SUCCESS: {
WipeWritePermOfBrokerResponseHeader responseHeader = WipeWritePermOfBrokerResponseHeader responseHeader =
(WipeWritePermOfBrokerResponseHeader)response.decodeCommandCustomHeader(WipeWritePermOfBrokerResponseHeader.class); (WipeWritePermOfBrokerResponseHeader) response.decodeCommandCustomHeader(WipeWritePermOfBrokerResponseHeader.class);
return responseHeader.getWipeTopicCount(); return responseHeader.getWipeTopicCount();
} }
default: default:
...@@ -1331,7 +1331,7 @@ public class MQClientAPIImpl { ...@@ -1331,7 +1331,7 @@ public class MQClientAPIImpl {
switch (response.getCode()) { switch (response.getCode()) {
case ResponseCode.SUCCESS: { case ResponseCode.SUCCESS: {
GetKVConfigResponseHeader responseHeader = GetKVConfigResponseHeader responseHeader =
(GetKVConfigResponseHeader)response.decodeCommandCustomHeader(GetKVConfigResponseHeader.class); (GetKVConfigResponseHeader) response.decodeCommandCustomHeader(GetKVConfigResponseHeader.class);
return responseHeader.getValue(); return responseHeader.getValue();
} }
default: default:
......
...@@ -581,11 +581,11 @@ public class DefaultMQPushConsumerImpl implements MQConsumerInner { ...@@ -581,11 +581,11 @@ public class DefaultMQPushConsumerImpl implements MQConsumerInner {
if (this.getMessageListenerInner() instanceof MessageListenerOrderly) { if (this.getMessageListenerInner() instanceof MessageListenerOrderly) {
this.consumeOrderly = true; this.consumeOrderly = true;
this.consumeMessageService = this.consumeMessageService =
new ConsumeMessageOrderlyService(this, (MessageListenerOrderly)this.getMessageListenerInner()); new ConsumeMessageOrderlyService(this, (MessageListenerOrderly) this.getMessageListenerInner());
} else if (this.getMessageListenerInner() instanceof MessageListenerConcurrently) { } else if (this.getMessageListenerInner() instanceof MessageListenerConcurrently) {
this.consumeOrderly = false; this.consumeOrderly = false;
this.consumeMessageService = this.consumeMessageService =
new ConsumeMessageConcurrentlyService(this, (MessageListenerConcurrently)this.getMessageListenerInner()); new ConsumeMessageConcurrentlyService(this, (MessageListenerConcurrently) this.getMessageListenerInner());
} }
this.consumeMessageService.start(); this.consumeMessageService.start();
...@@ -1024,9 +1024,9 @@ public class DefaultMQPushConsumerImpl implements MQConsumerInner { ...@@ -1024,9 +1024,9 @@ public class DefaultMQPushConsumerImpl implements MQConsumerInner {
long computeAccTotal = this.computeAccumulationTotal(); long computeAccTotal = this.computeAccumulationTotal();
long adjustThreadPoolNumsThreshold = this.defaultMQPushConsumer.getAdjustThreadPoolNumsThreshold(); long adjustThreadPoolNumsThreshold = this.defaultMQPushConsumer.getAdjustThreadPoolNumsThreshold();
long incThreshold = (long)(adjustThreadPoolNumsThreshold * 1.0); long incThreshold = (long) (adjustThreadPoolNumsThreshold * 1.0);
long decThreshold = (long)(adjustThreadPoolNumsThreshold * 0.8); long decThreshold = (long) (adjustThreadPoolNumsThreshold * 0.8);
if (computeAccTotal >= incThreshold) { if (computeAccTotal >= incThreshold) {
this.consumeMessageService.incCorePoolSize(); this.consumeMessageService.incCorePoolSize();
......
...@@ -26,7 +26,6 @@ import org.apache.rocketmq.common.protocol.heartbeat.SubscriptionData; ...@@ -26,7 +26,6 @@ import org.apache.rocketmq.common.protocol.heartbeat.SubscriptionData;
/** /**
* Consumer inner interface * Consumer inner interface
*
*/ */
public interface MQConsumerInner { public interface MQConsumerInner {
String groupName(); String groupName();
......
...@@ -21,7 +21,6 @@ import org.apache.rocketmq.common.message.MessageQueue; ...@@ -21,7 +21,6 @@ import org.apache.rocketmq.common.message.MessageQueue;
/** /**
* Message lock,strictly ensure the single queue only one thread at a time consuming * Message lock,strictly ensure the single queue only one thread at a time consuming
*
*/ */
public class MessageQueueLock { public class MessageQueueLock {
private ConcurrentHashMap<MessageQueue, Object> mqLockTable = private ConcurrentHashMap<MessageQueue, Object> mqLockTable =
......
...@@ -35,7 +35,6 @@ import org.slf4j.Logger; ...@@ -35,7 +35,6 @@ import org.slf4j.Logger;
/** /**
* Queue consumption snapshot * Queue consumption snapshot
*
*/ */
public class ProcessQueue { public class ProcessQueue {
public final static long REBALANCE_LOCK_MAX_LIVE_TIME = public final static long REBALANCE_LOCK_MAX_LIVE_TIME =
...@@ -69,8 +68,6 @@ public class ProcessQueue { ...@@ -69,8 +68,6 @@ public class ProcessQueue {
} }
/** /**
*
* @param pushConsumer * @param pushConsumer
*/ */
public void cleanExpiredMsg(DefaultMQPushConsumer pushConsumer) { public void cleanExpiredMsg(DefaultMQPushConsumer pushConsumer) {
......
...@@ -66,7 +66,7 @@ public class PullAPIWrapper { ...@@ -66,7 +66,7 @@ public class PullAPIWrapper {
public PullResult processPullResult(final MessageQueue mq, final PullResult pullResult, public PullResult processPullResult(final MessageQueue mq, final PullResult pullResult,
final SubscriptionData subscriptionData) { final SubscriptionData subscriptionData) {
PullResultExt pullResultExt = (PullResultExt)pullResult; PullResultExt pullResultExt = (PullResultExt) pullResult;
this.updatePullFromWhichNode(mq, pullResultExt.getSuggestWhichBrokerId()); this.updatePullFromWhichNode(mq, pullResultExt.getSuggestWhichBrokerId());
if (PullStatus.FOUND == pullResult.getPullStatus()) { if (PullStatus.FOUND == pullResult.getPullStatus()) {
......
...@@ -71,7 +71,7 @@ public class PullMessageService extends ServiceThread { ...@@ -71,7 +71,7 @@ public class PullMessageService extends ServiceThread {
private void pullMessage(final PullRequest pullRequest) { private void pullMessage(final PullRequest pullRequest) {
final MQConsumerInner consumer = this.mQClientFactory.selectConsumer(pullRequest.getConsumerGroup()); final MQConsumerInner consumer = this.mQClientFactory.selectConsumer(pullRequest.getConsumerGroup());
if (consumer != null) { if (consumer != null) {
DefaultMQPushConsumerImpl impl = (DefaultMQPushConsumerImpl)consumer; DefaultMQPushConsumerImpl impl = (DefaultMQPushConsumerImpl) consumer;
impl.pullMessage(pullRequest); impl.pullMessage(pullRequest);
} else { } else {
log.warn("No matched consumer for the PullRequest {}, drop it", pullRequest); log.warn("No matched consumer for the PullRequest {}, drop it", pullRequest);
......
...@@ -74,7 +74,7 @@ public class PullRequest { ...@@ -74,7 +74,7 @@ public class PullRequest {
return false; return false;
if (getClass() != obj.getClass()) if (getClass() != obj.getClass())
return false; return false;
PullRequest other = (PullRequest)obj; PullRequest other = (PullRequest) obj;
if (consumerGroup == null) { if (consumerGroup == null) {
if (other.consumerGroup != null) if (other.consumerGroup != null)
return false; return false;
......
...@@ -23,7 +23,6 @@ import org.slf4j.Logger; ...@@ -23,7 +23,6 @@ import org.slf4j.Logger;
/** /**
* Rebalance Service * Rebalance Service
*
*/ */
public class RebalanceService extends ServiceThread { public class RebalanceService extends ServiceThread {
private static long waitInterval = private static long waitInterval =
......
...@@ -436,7 +436,7 @@ public class MQClientInstance { ...@@ -436,7 +436,7 @@ public class MQClientInstance {
if (impl != null) { if (impl != null) {
try { try {
if (impl instanceof DefaultMQPushConsumerImpl) { if (impl instanceof DefaultMQPushConsumerImpl) {
DefaultMQPushConsumerImpl dmq = (DefaultMQPushConsumerImpl)impl; DefaultMQPushConsumerImpl dmq = (DefaultMQPushConsumerImpl) impl;
dmq.adjustThreadPool(); dmq.adjustThreadPool();
} }
} catch (Exception e) { } catch (Exception e) {
...@@ -1026,7 +1026,7 @@ public class MQClientInstance { ...@@ -1026,7 +1026,7 @@ public class MQClientInstance {
try { try {
MQConsumerInner impl = this.consumerTable.get(group); MQConsumerInner impl = this.consumerTable.get(group);
if (impl != null && impl instanceof DefaultMQPushConsumerImpl) { if (impl != null && impl instanceof DefaultMQPushConsumerImpl) {
consumer = (DefaultMQPushConsumerImpl)impl; consumer = (DefaultMQPushConsumerImpl) impl;
} else { } else {
log.info("[reset-offset] consumer dose not exist. group={}", group); log.info("[reset-offset] consumer dose not exist. group={}", group);
return; return;
...@@ -1071,10 +1071,10 @@ public class MQClientInstance { ...@@ -1071,10 +1071,10 @@ public class MQClientInstance {
public Map<MessageQueue, Long> getConsumerStatus(String topic, String group) { public Map<MessageQueue, Long> getConsumerStatus(String topic, String group) {
MQConsumerInner impl = this.consumerTable.get(group); MQConsumerInner impl = this.consumerTable.get(group);
if (impl != null && impl instanceof DefaultMQPushConsumerImpl) { if (impl != null && impl instanceof DefaultMQPushConsumerImpl) {
DefaultMQPushConsumerImpl consumer = (DefaultMQPushConsumerImpl)impl; DefaultMQPushConsumerImpl consumer = (DefaultMQPushConsumerImpl) impl;
return consumer.getOffsetStore().cloneOffsetTable(topic); return consumer.getOffsetStore().cloneOffsetTable(topic);
} else if (impl != null && impl instanceof DefaultMQPullConsumerImpl) { } else if (impl != null && impl instanceof DefaultMQPullConsumerImpl) {
DefaultMQPullConsumerImpl consumer = (DefaultMQPullConsumerImpl)impl; DefaultMQPullConsumerImpl consumer = (DefaultMQPullConsumerImpl) impl;
return consumer.getOffsetStore().cloneOffsetTable(topic); return consumer.getOffsetStore().cloneOffsetTable(topic);
} else { } else {
return Collections.EMPTY_MAP; return Collections.EMPTY_MAP;
...@@ -1118,7 +1118,7 @@ public class MQClientInstance { ...@@ -1118,7 +1118,7 @@ public class MQClientInstance {
final String brokerName) { final String brokerName) {
MQConsumerInner mqConsumerInner = this.consumerTable.get(consumerGroup); MQConsumerInner mqConsumerInner = this.consumerTable.get(consumerGroup);
if (null != mqConsumerInner) { if (null != mqConsumerInner) {
DefaultMQPushConsumerImpl consumer = (DefaultMQPushConsumerImpl)mqConsumerInner; DefaultMQPushConsumerImpl consumer = (DefaultMQPushConsumerImpl) mqConsumerInner;
ConsumeMessageDirectlyResult result = consumer.getConsumeMessageService().consumeMessageDirectly(msg, brokerName); ConsumeMessageDirectlyResult result = consumer.getConsumeMessageService().consumeMessageDirectly(msg, brokerName);
return result; return result;
......
...@@ -112,7 +112,7 @@ public class DefaultMQProducerImpl implements MQProducerInner { ...@@ -112,7 +112,7 @@ public class DefaultMQProducerImpl implements MQProducerInner {
} }
public void initTransactionEnv() { public void initTransactionEnv() {
TransactionMQProducer producer = (TransactionMQProducer)this.defaultMQProducer; TransactionMQProducer producer = (TransactionMQProducer) this.defaultMQProducer;
this.checkRequestQueue = new LinkedBlockingQueue<Runnable>(producer.getCheckRequestHoldMax()); this.checkRequestQueue = new LinkedBlockingQueue<Runnable>(producer.getCheckRequestHoldMax());
this.checkExecutor = new ThreadPoolExecutor(// this.checkExecutor = new ThreadPoolExecutor(//
producer.getCheckThreadPoolMinSize(), // producer.getCheckThreadPoolMinSize(), //
...@@ -238,7 +238,7 @@ public class DefaultMQProducerImpl implements MQProducerInner { ...@@ -238,7 +238,7 @@ public class DefaultMQProducerImpl implements MQProducerInner {
@Override @Override
public TransactionCheckListener checkListener() { public TransactionCheckListener checkListener() {
if (this.defaultMQProducer instanceof TransactionMQProducer) { if (this.defaultMQProducer instanceof TransactionMQProducer) {
TransactionMQProducer producer = (TransactionMQProducer)defaultMQProducer; TransactionMQProducer producer = (TransactionMQProducer) defaultMQProducer;
return producer.getTransactionCheckListener(); return producer.getTransactionCheckListener();
} }
...@@ -538,7 +538,7 @@ public class DefaultMQProducerImpl implements MQProducerInner { ...@@ -538,7 +538,7 @@ public class DefaultMQProducerImpl implements MQProducerInner {
MQClientException mqClientException = new MQClientException(info, exception); MQClientException mqClientException = new MQClientException(info, exception);
if (exception instanceof MQBrokerException) { if (exception instanceof MQBrokerException) {
mqClientException.setResponseCode(((MQBrokerException)exception).getResponseCode()); mqClientException.setResponseCode(((MQBrokerException) exception).getResponseCode());
} else if (exception instanceof RemotingConnectException) { } else if (exception instanceof RemotingConnectException) {
mqClientException.setResponseCode(ClientErrorCode.CONNECT_BROKER_EXCEPTION); mqClientException.setResponseCode(ClientErrorCode.CONNECT_BROKER_EXCEPTION);
} else if (exception instanceof RemotingTimeoutException) { } else if (exception instanceof RemotingTimeoutException) {
......
...@@ -137,8 +137,8 @@ public class LatencyFaultToleranceImpl implements LatencyFaultTolerance<String> ...@@ -137,8 +137,8 @@ public class LatencyFaultToleranceImpl implements LatencyFaultTolerance<String>
@Override @Override
public int hashCode() { public int hashCode() {
int result = getName() != null ? getName().hashCode() : 0; int result = getName() != null ? getName().hashCode() : 0;
result = 31 * result + (int)(getCurrentLatency() ^ (getCurrentLatency() >>> 32)); result = 31 * result + (int) (getCurrentLatency() ^ (getCurrentLatency() >>> 32));
result = 31 * result + (int)(getStartTimestamp() ^ (getStartTimestamp() >>> 32)); result = 31 * result + (int) (getStartTimestamp() ^ (getStartTimestamp() >>> 32));
return result; return result;
} }
...@@ -149,7 +149,7 @@ public class LatencyFaultToleranceImpl implements LatencyFaultTolerance<String> ...@@ -149,7 +149,7 @@ public class LatencyFaultToleranceImpl implements LatencyFaultTolerance<String>
if (!(o instanceof FaultItem)) if (!(o instanceof FaultItem))
return false; return false;
final FaultItem faultItem = (FaultItem)o; final FaultItem faultItem = (FaultItem) o;
if (getCurrentLatency() != faultItem.getCurrentLatency()) if (getCurrentLatency() != faultItem.getCurrentLatency())
return false; return false;
......
...@@ -62,23 +62,23 @@ public class ConsumerStatsManager { ...@@ -62,23 +62,23 @@ public class ConsumerStatsManager {
} }
public void incPullRT(final String group, final String topic, final long rt) { public void incPullRT(final String group, final String topic, final long rt) {
this.topicAndGroupPullRT.addValue(topic + "@" + group, (int)rt, 1); this.topicAndGroupPullRT.addValue(topic + "@" + group, (int) rt, 1);
} }
public void incPullTPS(final String group, final String topic, final long msgs) { public void incPullTPS(final String group, final String topic, final long msgs) {
this.topicAndGroupPullTPS.addValue(topic + "@" + group, (int)msgs, 1); this.topicAndGroupPullTPS.addValue(topic + "@" + group, (int) msgs, 1);
} }
public void incConsumeRT(final String group, final String topic, final long rt) { public void incConsumeRT(final String group, final String topic, final long rt) {
this.topicAndGroupConsumeRT.addValue(topic + "@" + group, (int)rt, 1); this.topicAndGroupConsumeRT.addValue(topic + "@" + group, (int) rt, 1);
} }
public void incConsumeOKTPS(final String group, final String topic, final long msgs) { public void incConsumeOKTPS(final String group, final String topic, final long msgs) {
this.topicAndGroupConsumeOKTPS.addValue(topic + "@" + group, (int)msgs, 1); this.topicAndGroupConsumeOKTPS.addValue(topic + "@" + group, (int) msgs, 1);
} }
public void incConsumeFailedTPS(final String group, final String topic, final long msgs) { public void incConsumeFailedTPS(final String group, final String topic, final long msgs) {
this.topicAndGroupConsumeFailedTPS.addValue(topic + "@" + group, (int)msgs, 1); this.topicAndGroupConsumeFailedTPS.addValue(topic + "@" + group, (int) msgs, 1);
} }
public ConsumeStatus consumeStatus(final String group, final String topic) { public ConsumeStatus consumeStatus(final String group, final String topic) {
......
...@@ -119,7 +119,6 @@ public class Configuration { ...@@ -119,7 +119,6 @@ public class Configuration {
* *
* @param object * @param object
* @param fieldName * @param fieldName
*
* @throws java.lang.RuntimeException if the field of object is not exist. * @throws java.lang.RuntimeException if the field of object is not exist.
*/ */
public void setStorePathFromConfig(Object object, String fieldName) { public void setStorePathFromConfig(Object object, String fieldName) {
...@@ -156,7 +155,7 @@ public class Configuration { ...@@ -156,7 +155,7 @@ public class Configuration {
if (this.storePathFromConfig) { if (this.storePathFromConfig) {
try { try {
realStorePath = (String)storePathField.get(this.storePathObject); realStorePath = (String) storePathField.get(this.storePathObject);
} catch (IllegalAccessException e) { } catch (IllegalAccessException e) {
log.error("getStorePath error, ", e); log.error("getStorePath error, ", e);
} }
......
...@@ -176,7 +176,7 @@ public class CountDownLatch2 { ...@@ -176,7 +176,7 @@ public class CountDownLatch2 {
protected boolean tryReleaseShared(int releases) { protected boolean tryReleaseShared(int releases) {
// Decrement count; signal when transition to zero // Decrement count; signal when transition to zero
for (; ; ) { for (;;) {
int c = getState(); int c = getState();
if (c == 0) if (c == 0)
return false; return false;
......
...@@ -56,7 +56,7 @@ public class DataVersion extends RemotingSerializable { ...@@ -56,7 +56,7 @@ public class DataVersion extends RemotingSerializable {
if (o == null || getClass() != o.getClass()) if (o == null || getClass() != o.getClass())
return false; return false;
final DataVersion that = (DataVersion)o; final DataVersion that = (DataVersion) o;
if (timestatmp != that.timestatmp) if (timestatmp != that.timestatmp)
return false; return false;
...@@ -66,7 +66,7 @@ public class DataVersion extends RemotingSerializable { ...@@ -66,7 +66,7 @@ public class DataVersion extends RemotingSerializable {
@Override @Override
public int hashCode() { public int hashCode() {
int result = (int)(timestatmp ^ (timestatmp >>> 32)); int result = (int) (timestatmp ^ (timestatmp >>> 32));
result = 31 * result + (counter != null ? counter.hashCode() : 0); result = 31 * result + (counter != null ? counter.hashCode() : 0);
return result; return result;
} }
......
...@@ -186,7 +186,7 @@ public class MixAll { ...@@ -186,7 +186,7 @@ public class MixAll {
public static final String file2String(final File file) { public static final String file2String(final File file) {
if (file.exists()) { if (file.exists()) {
char[] data = new char[(int)file.length()]; char[] data = new char[(int) file.length()];
boolean result = false; boolean result = false;
FileReader fileReader = null; FileReader fileReader = null;
...@@ -442,7 +442,7 @@ public class MixAll { ...@@ -442,7 +442,7 @@ public class MixAll {
int unit = si ? 1000 : 1024; int unit = si ? 1000 : 1024;
if (bytes < unit) if (bytes < unit)
return bytes + " B"; return bytes + " B";
int exp = (int)(Math.log(bytes) / Math.log(unit)); int exp = (int) (Math.log(bytes) / Math.log(unit));
String pre = (si ? "kMGTPE" : "KMGTPE").charAt(exp - 1) + (si ? "" : "i"); String pre = (si ? "kMGTPE" : "KMGTPE").charAt(exp - 1) + (si ? "" : "i");
return String.format("%.1f %sB", bytes / Math.pow(unit, exp), pre); return String.format("%.1f %sB", bytes / Math.pow(unit, exp), pre);
} }
......
...@@ -151,7 +151,7 @@ public class TopicConfig { ...@@ -151,7 +151,7 @@ public class TopicConfig {
if (o == null || getClass() != o.getClass()) if (o == null || getClass() != o.getClass())
return false; return false;
final TopicConfig that = (TopicConfig)o; final TopicConfig that = (TopicConfig) o;
if (readQueueNums != that.readQueueNums) if (readQueueNums != that.readQueueNums)
return false; return false;
......
...@@ -193,7 +193,7 @@ public class UtilAll { ...@@ -193,7 +193,7 @@ public class UtilAll {
long freeSpace = file.getFreeSpace(); long freeSpace = file.getFreeSpace();
long usedSpace = totalSpace - freeSpace; long usedSpace = totalSpace - freeSpace;
if (totalSpace > 0) { if (totalSpace > 0) {
return usedSpace / (double)totalSpace; return usedSpace / (double) totalSpace;
} }
} catch (Exception e) { } catch (Exception e) {
return -1; return -1;
...@@ -213,7 +213,7 @@ public class UtilAll { ...@@ -213,7 +213,7 @@ public class UtilAll {
public static final int crc32(byte[] array, int offset, int length) { public static final int crc32(byte[] array, int offset, int length) {
CRC32 crc32 = new CRC32(); CRC32 crc32 = new CRC32();
crc32.update(array, offset, length); crc32.update(array, offset, length);
return (int)(crc32.getValue() & 0x7FFFFFFF); return (int) (crc32.getValue() & 0x7FFFFFFF);
} }
public static String bytes2string(byte[] src) { public static String bytes2string(byte[] src) {
...@@ -236,13 +236,13 @@ public class UtilAll { ...@@ -236,13 +236,13 @@ public class UtilAll {
byte[] d = new byte[length]; byte[] d = new byte[length];
for (int i = 0; i < length; i++) { for (int i = 0; i < length; i++) {
int pos = i * 2; int pos = i * 2;
d[i] = (byte)(charToByte(hexChars[pos]) << 4 | charToByte(hexChars[pos + 1])); d[i] = (byte) (charToByte(hexChars[pos]) << 4 | charToByte(hexChars[pos + 1]));
} }
return d; return d;
} }
private static byte charToByte(char c) { private static byte charToByte(char c) {
return (byte)"0123456789ABCDEF".indexOf(c); return (byte) "0123456789ABCDEF".indexOf(c);
} }
public static byte[] uncompress(final byte[] src) throws IOException { public static byte[] uncompress(final byte[] src) throws IOException {
...@@ -400,15 +400,15 @@ public class UtilAll { ...@@ -400,15 +400,15 @@ public class UtilAll {
//10.0.0.0~10.255.255.255 //10.0.0.0~10.255.255.255
//172.16.0.0~172.31.255.255 //172.16.0.0~172.31.255.255
//192.168.0.0~192.168.255.255 //192.168.0.0~192.168.255.255
if (ip[0] == (byte)10) { if (ip[0] == (byte) 10) {
return true; return true;
} else if (ip[0] == (byte)172) { } else if (ip[0] == (byte) 172) {
if (ip[1] >= (byte)16 && ip[1] <= (byte)31) { if (ip[1] >= (byte) 16 && ip[1] <= (byte) 31) {
return true; return true;
} }
} else if (ip[0] == (byte)192) { } else if (ip[0] == (byte) 192) {
if (ip[1] == (byte)168) { if (ip[1] == (byte) 168) {
return true; return true;
} }
} }
...@@ -423,27 +423,27 @@ public class UtilAll { ...@@ -423,27 +423,27 @@ public class UtilAll {
// if (ip[0] == (byte)30 && ip[1] == (byte)10 && ip[2] == (byte)163 && ip[3] == (byte)120) { // if (ip[0] == (byte)30 && ip[1] == (byte)10 && ip[2] == (byte)163 && ip[3] == (byte)120) {
// } // }
if (ip[0] >= (byte)1 && ip[0] <= (byte)126) { if (ip[0] >= (byte) 1 && ip[0] <= (byte) 126) {
if (ip[1] == (byte)1 && ip[2] == (byte)1 && ip[3] == (byte)1) { if (ip[1] == (byte) 1 && ip[2] == (byte) 1 && ip[3] == (byte) 1) {
return false; return false;
} }
if (ip[1] == (byte)0 && ip[2] == (byte)0 && ip[3] == (byte)0) { if (ip[1] == (byte) 0 && ip[2] == (byte) 0 && ip[3] == (byte) 0) {
return false; return false;
} }
return true; return true;
} else if (ip[0] >= (byte)128 && ip[0] <= (byte)191) { } else if (ip[0] >= (byte) 128 && ip[0] <= (byte) 191) {
if (ip[2] == (byte)1 && ip[3] == (byte)1) { if (ip[2] == (byte) 1 && ip[3] == (byte) 1) {
return false; return false;
} }
if (ip[2] == (byte)0 && ip[3] == (byte)0) { if (ip[2] == (byte) 0 && ip[3] == (byte) 0) {
return false; return false;
} }
return true; return true;
} else if (ip[0] >= (byte)192 && ip[0] <= (byte)223) { } else if (ip[0] >= (byte) 192 && ip[0] <= (byte) 223) {
if (ip[3] == (byte)1) { if (ip[3] == (byte) 1) {
return false; return false;
} }
if (ip[3] == (byte)0) { if (ip[3] == (byte) 0) {
return false; return false;
} }
return true; return true;
...@@ -466,10 +466,10 @@ public class UtilAll { ...@@ -466,10 +466,10 @@ public class UtilAll {
InetAddress ip = null; InetAddress ip = null;
byte[] internalIP = null; byte[] internalIP = null;
while (allNetInterfaces.hasMoreElements()) { while (allNetInterfaces.hasMoreElements()) {
NetworkInterface netInterface = (NetworkInterface)allNetInterfaces.nextElement(); NetworkInterface netInterface = (NetworkInterface) allNetInterfaces.nextElement();
Enumeration addresses = netInterface.getInetAddresses(); Enumeration addresses = netInterface.getInetAddresses();
while (addresses.hasMoreElements()) { while (addresses.hasMoreElements()) {
ip = (InetAddress)addresses.nextElement(); ip = (InetAddress) addresses.nextElement();
if (ip != null && ip instanceof Inet4Address) { if (ip != null && ip instanceof Inet4Address) {
byte[] ipByte = ip.getAddress(); byte[] ipByte = ip.getAddress();
if (ipByte.length == 4) { if (ipByte.length == 4) {
......
...@@ -49,7 +49,7 @@ public class PolishExpr { ...@@ -49,7 +49,7 @@ public class PolishExpr {
segments.add(token); segments.add(token);
} else if (isLeftParenthesis(token)) { } else if (isLeftParenthesis(token)) {
operatorStack.push((Operator)token); operatorStack.push((Operator) token);
} else if (isRightParenthesis(token)) { } else if (isRightParenthesis(token)) {
Operator opNew = null; Operator opNew = null;
...@@ -60,7 +60,7 @@ public class PolishExpr { ...@@ -60,7 +60,7 @@ public class PolishExpr {
throw new IllegalArgumentException("mismatched parentheses"); throw new IllegalArgumentException("mismatched parentheses");
} else if (isOperator(token)) { } else if (isOperator(token)) {
Operator opNew = (Operator)token; Operator opNew = (Operator) token;
if (!operatorStack.empty()) { if (!operatorStack.empty()) {
Operator opOld = operatorStack.peek(); Operator opOld = operatorStack.peek();
if (opOld.isCompareable() && opNew.compare(opOld) != 1) { if (opOld.isCompareable() && opNew.compare(opOld) != 1) {
...@@ -83,11 +83,8 @@ public class PolishExpr { ...@@ -83,11 +83,8 @@ public class PolishExpr {
} }
/** /**
*
* @param expression * @param expression
*
* @return * @return
*
* @throws Exception * @throws Exception
*/ */
private static List<Op> participle(String expression) { private static List<Op> participle(String expression) {
...@@ -99,7 +96,7 @@ public class PolishExpr { ...@@ -99,7 +96,7 @@ public class PolishExpr {
Type preType = Type.NULL; Type preType = Type.NULL;
for (int i = 0; i < size; i++) { for (int i = 0; i < size; i++) {
int chValue = (int)expression.charAt(i); int chValue = (int) expression.charAt(i);
if ((97 <= chValue && chValue <= 122) || (65 <= chValue && chValue <= 90) if ((97 <= chValue && chValue <= 122) || (65 <= chValue && chValue <= 90)
|| (49 <= chValue && chValue <= 57) || 95 == chValue) { || (49 <= chValue && chValue <= 57) || 95 == chValue) {
...@@ -129,7 +126,7 @@ public class PolishExpr { ...@@ -129,7 +126,7 @@ public class PolishExpr {
} }
preType = Type.PARENTHESIS; preType = Type.PARENTHESIS;
segments.add(createOperator((char)chValue + "")); segments.add(createOperator((char) chValue + ""));
} else if (38 == chValue || 124 == chValue) { } else if (38 == chValue || 124 == chValue) {
if (Type.OPERAND == preType || Type.SEPAERATOR == preType || Type.PARENTHESIS == preType) { if (Type.OPERAND == preType || Type.SEPAERATOR == preType || Type.PARENTHESIS == preType) {
...@@ -157,7 +154,7 @@ public class PolishExpr { ...@@ -157,7 +154,7 @@ public class PolishExpr {
preType = Type.SEPAERATOR; preType = Type.SEPAERATOR;
} else { } else {
throw new IllegalArgumentException("illegal expression, at index " + i + " " + (char)chValue); throw new IllegalArgumentException("illegal expression, at index " + i + " " + (char) chValue);
} }
} }
...@@ -173,11 +170,11 @@ public class PolishExpr { ...@@ -173,11 +170,11 @@ public class PolishExpr {
} }
public static boolean isLeftParenthesis(Op token) { public static boolean isLeftParenthesis(Op token) {
return token instanceof Operator && LEFTPARENTHESIS == (Operator)token; return token instanceof Operator && LEFTPARENTHESIS == (Operator) token;
} }
public static boolean isRightParenthesis(Op token) { public static boolean isRightParenthesis(Op token) {
return token instanceof Operator && RIGHTPARENTHESIS == (Operator)token; return token instanceof Operator && RIGHTPARENTHESIS == (Operator) token;
} }
public static boolean isOperator(Op token) { public static boolean isOperator(Op token) {
......
...@@ -64,10 +64,10 @@ public class MessageClientIDSetter { ...@@ -64,10 +64,10 @@ public class MessageClientIDSetter {
public static Date getNearlyTimeFromID(String msgID) { public static Date getNearlyTimeFromID(String msgID) {
ByteBuffer buf = ByteBuffer.allocate(8); ByteBuffer buf = ByteBuffer.allocate(8);
byte[] bytes = UtilAll.string2bytes(msgID); byte[] bytes = UtilAll.string2bytes(msgID);
buf.put((byte)0); buf.put((byte) 0);
buf.put((byte)0); buf.put((byte) 0);
buf.put((byte)0); buf.put((byte) 0);
buf.put((byte)0); buf.put((byte) 0);
buf.put(bytes, 10, 4); buf.put(bytes, 10, 4);
buf.position(0); buf.position(0);
long spanMS = buf.getLong(); long spanMS = buf.getLong();
...@@ -113,8 +113,8 @@ public class MessageClientIDSetter { ...@@ -113,8 +113,8 @@ public class MessageClientIDSetter {
setStartTime(current); setStartTime(current);
} }
buffer.position(0); buffer.position(0);
buffer.putInt((int)(System.currentTimeMillis() - startTime)); buffer.putInt((int) (System.currentTimeMillis() - startTime));
buffer.putShort((short)COUNTER.getAndIncrement()); buffer.putShort((short) COUNTER.getAndIncrement());
return buffer.array(); return buffer.array();
} }
......
...@@ -54,7 +54,7 @@ public class MessageDecoder { ...@@ -54,7 +54,7 @@ public class MessageDecoder {
public static String createMessageId(SocketAddress socketAddress, long transactionIdhashCode) { public static String createMessageId(SocketAddress socketAddress, long transactionIdhashCode) {
ByteBuffer byteBuffer = ByteBuffer.allocate(MessageDecoder.MSG_ID_LENGTH); ByteBuffer byteBuffer = ByteBuffer.allocate(MessageDecoder.MSG_ID_LENGTH);
InetSocketAddress inetSocketAddress = (InetSocketAddress)socketAddress; InetSocketAddress inetSocketAddress = (InetSocketAddress) socketAddress;
byteBuffer.put(inetSocketAddress.getAddress().getAddress()); byteBuffer.put(inetSocketAddress.getAddress().getAddress());
byteBuffer.putInt(inetSocketAddress.getPort()); byteBuffer.putInt(inetSocketAddress.getPort());
byteBuffer.putLong(transactionIdhashCode); byteBuffer.putLong(transactionIdhashCode);
...@@ -95,10 +95,10 @@ public class MessageDecoder { ...@@ -95,10 +95,10 @@ public class MessageDecoder {
public static byte[] encode(MessageExt messageExt, boolean needCompress) throws Exception { public static byte[] encode(MessageExt messageExt, boolean needCompress) throws Exception {
byte[] body = messageExt.getBody(); byte[] body = messageExt.getBody();
byte[] topics = messageExt.getTopic().getBytes(CHARSET_UTF8); byte[] topics = messageExt.getTopic().getBytes(CHARSET_UTF8);
byte topicLen = (byte)topics.length; byte topicLen = (byte) topics.length;
String properties = messageProperties2String(messageExt.getProperties()); String properties = messageProperties2String(messageExt.getProperties());
byte[] propertiesBytes = properties.getBytes(CHARSET_UTF8); byte[] propertiesBytes = properties.getBytes(CHARSET_UTF8);
short propertiesLength = (short)propertiesBytes.length; short propertiesLength = (short) propertiesBytes.length;
int sysFlag = messageExt.getSysFlag(); int sysFlag = messageExt.getSysFlag();
byte[] newBody = messageExt.getBody(); byte[] newBody = messageExt.getBody();
if (needCompress && (sysFlag & MessageSysFlag.COMPRESSED_FLAG) == MessageSysFlag.COMPRESSED_FLAG) { if (needCompress && (sysFlag & MessageSysFlag.COMPRESSED_FLAG) == MessageSysFlag.COMPRESSED_FLAG) {
...@@ -164,7 +164,7 @@ public class MessageDecoder { ...@@ -164,7 +164,7 @@ public class MessageDecoder {
byteBuffer.putLong(bornTimeStamp); byteBuffer.putLong(bornTimeStamp);
// 10 BORNHOST // 10 BORNHOST
InetSocketAddress bornHost = (InetSocketAddress)messageExt.getBornHost(); InetSocketAddress bornHost = (InetSocketAddress) messageExt.getBornHost();
byteBuffer.put(bornHost.getAddress().getAddress()); byteBuffer.put(bornHost.getAddress().getAddress());
byteBuffer.putInt(bornHost.getPort()); byteBuffer.putInt(bornHost.getPort());
...@@ -173,7 +173,7 @@ public class MessageDecoder { ...@@ -173,7 +173,7 @@ public class MessageDecoder {
byteBuffer.putLong(storeTimestamp); byteBuffer.putLong(storeTimestamp);
// 12 STOREHOST // 12 STOREHOST
InetSocketAddress serverHost = (InetSocketAddress)messageExt.getStoreHost(); InetSocketAddress serverHost = (InetSocketAddress) messageExt.getStoreHost();
byteBuffer.put(serverHost.getAddress().getAddress()); byteBuffer.put(serverHost.getAddress().getAddress());
byteBuffer.putInt(serverHost.getPort()); byteBuffer.putInt(serverHost.getPort());
...@@ -295,7 +295,7 @@ public class MessageDecoder { ...@@ -295,7 +295,7 @@ public class MessageDecoder {
// 16 TOPIC // 16 TOPIC
byte topicLen = byteBuffer.get(); byte topicLen = byteBuffer.get();
byte[] topic = new byte[(int)topicLen]; byte[] topic = new byte[(int) topicLen];
byteBuffer.get(topic); byteBuffer.get(topic);
msgExt.setTopic(new String(topic, CHARSET_UTF8)); msgExt.setTopic(new String(topic, CHARSET_UTF8));
...@@ -314,7 +314,7 @@ public class MessageDecoder { ...@@ -314,7 +314,7 @@ public class MessageDecoder {
msgExt.setMsgId(msgId); msgExt.setMsgId(msgId);
if (isClient) { if (isClient) {
((MessageClientExt)msgExt).setOffsetMsgId(msgId); ((MessageClientExt) msgExt).setOffsetMsgId(msgId);
} }
return msgExt; return msgExt;
......
...@@ -65,7 +65,7 @@ public class MessageExt extends Message { ...@@ -65,7 +65,7 @@ public class MessageExt extends Message {
} }
private static ByteBuffer socketAddress2ByteBuffer(final SocketAddress socketAddress, final ByteBuffer byteBuffer) { private static ByteBuffer socketAddress2ByteBuffer(final SocketAddress socketAddress, final ByteBuffer byteBuffer) {
InetSocketAddress inetSocketAddress = (InetSocketAddress)socketAddress; InetSocketAddress inetSocketAddress = (InetSocketAddress) socketAddress;
byteBuffer.put(inetSocketAddress.getAddress().getAddress(), 0, 4); byteBuffer.put(inetSocketAddress.getAddress().getAddress(), 0, 4);
byteBuffer.putInt(inetSocketAddress.getPort()); byteBuffer.putInt(inetSocketAddress.getPort());
byteBuffer.flip(); byteBuffer.flip();
...@@ -119,7 +119,7 @@ public class MessageExt extends Message { ...@@ -119,7 +119,7 @@ public class MessageExt extends Message {
public String getBornHostString() { public String getBornHostString() {
if (this.bornHost != null) { if (this.bornHost != null) {
InetSocketAddress inetSocketAddress = (InetSocketAddress)this.bornHost; InetSocketAddress inetSocketAddress = (InetSocketAddress) this.bornHost;
return inetSocketAddress.getAddress().getHostAddress(); return inetSocketAddress.getAddress().getHostAddress();
} }
...@@ -128,7 +128,7 @@ public class MessageExt extends Message { ...@@ -128,7 +128,7 @@ public class MessageExt extends Message {
public String getBornHostNameString() { public String getBornHostNameString() {
if (this.bornHost != null) { if (this.bornHost != null) {
InetSocketAddress inetSocketAddress = (InetSocketAddress)this.bornHost; InetSocketAddress inetSocketAddress = (InetSocketAddress) this.bornHost;
return inetSocketAddress.getAddress().getHostName(); return inetSocketAddress.getAddress().getHostName();
} }
......
...@@ -76,7 +76,7 @@ public class MessageQueue implements Comparable<MessageQueue>, Serializable { ...@@ -76,7 +76,7 @@ public class MessageQueue implements Comparable<MessageQueue>, Serializable {
return false; return false;
if (getClass() != obj.getClass()) if (getClass() != obj.getClass())
return false; return false;
MessageQueue other = (MessageQueue)obj; MessageQueue other = (MessageQueue) obj;
if (brokerName == null) { if (brokerName == null) {
if (other.brokerName != null) if (other.brokerName != null)
return false; return false;
......
...@@ -75,7 +75,7 @@ public class MessageQueueForC implements Comparable<MessageQueueForC>, Serializa ...@@ -75,7 +75,7 @@ public class MessageQueueForC implements Comparable<MessageQueueForC>, Serializa
return false; return false;
if (getClass() != obj.getClass()) if (getClass() != obj.getClass())
return false; return false;
MessageQueueForC other = (MessageQueueForC)obj; MessageQueueForC other = (MessageQueueForC) obj;
if (brokerName == null) { if (brokerName == null) {
if (other.brokerName != null) if (other.brokerName != null)
return false; return false;
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: NamesrvConfig.java 1839 2013-05-16 02:12:02Z vintagewang@apache.org $ * $Id: NamesrvConfig.java 1839 2013-05-16 02:12:02Z vintagewang@apache.org $
*
* $Id: NamesrvConfig.java 1839 2013-05-16 02:12:02Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: TopAddressing.java 1831 2013-05-16 01:39:51Z vintagewang@apache.org $ * $Id: TopAddressing.java 1831 2013-05-16 01:39:51Z vintagewang@apache.org $
*
* $Id: TopAddressing.java 1831 2013-05-16 01:39:51Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -53,7 +53,7 @@ public class ConsumerRunningInfo extends RemotingSerializable { ...@@ -53,7 +53,7 @@ public class ConsumerRunningInfo extends RemotingSerializable {
String property = prev.getProperties().getProperty(ConsumerRunningInfo.PROP_CONSUME_TYPE); String property = prev.getProperties().getProperty(ConsumerRunningInfo.PROP_CONSUME_TYPE);
if (property == null) { if (property == null) {
property = ((ConsumeType)prev.getProperties().get(ConsumerRunningInfo.PROP_CONSUME_TYPE)).name(); property = ((ConsumeType) prev.getProperties().get(ConsumerRunningInfo.PROP_CONSUME_TYPE)).name();
} }
push = ConsumeType.valueOf(property) == ConsumeType.CONSUME_PASSIVELY; push = ConsumeType.valueOf(property) == ConsumeType.CONSUME_PASSIVELY;
} }
...@@ -109,7 +109,7 @@ public class ConsumerRunningInfo extends RemotingSerializable { ...@@ -109,7 +109,7 @@ public class ConsumerRunningInfo extends RemotingSerializable {
String property = info.getProperties().getProperty(ConsumerRunningInfo.PROP_CONSUME_TYPE); String property = info.getProperties().getProperty(ConsumerRunningInfo.PROP_CONSUME_TYPE);
if (property == null) { if (property == null) {
property = ((ConsumeType)info.getProperties().get(ConsumerRunningInfo.PROP_CONSUME_TYPE)).name(); property = ((ConsumeType) info.getProperties().get(ConsumerRunningInfo.PROP_CONSUME_TYPE)).name();
} }
push = ConsumeType.valueOf(property) == ConsumeType.CONSUME_PASSIVELY; push = ConsumeType.valueOf(property) == ConsumeType.CONSUME_PASSIVELY;
} }
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: EndTransactionRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: EndTransactionRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: EndTransactionRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: EndTransactionResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: EndTransactionResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: EndTransactionResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: DeleteTopicRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: DeleteTopicRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: DeleteTopicRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: CreateTopicRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: CreateTopicRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: CreateTopicRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: DeleteTopicRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: DeleteTopicRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: DeleteTopicRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: EndTransactionRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: EndTransactionRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: EndTransactionRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: EndTransactionResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: EndTransactionResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: EndTransactionResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: GetAllTopicConfigResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: GetAllTopicConfigResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: GetAllTopicConfigResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: GetBrokerConfigResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: GetBrokerConfigResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: GetBrokerConfigResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: GetEarliestMsgStoretimeRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: GetEarliestMsgStoretimeRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: GetEarliestMsgStoretimeRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: GetEarliestMsgStoretimeResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: GetEarliestMsgStoretimeResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: GetEarliestMsgStoretimeResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: GetMaxOffsetRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: GetMaxOffsetRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: GetMaxOffsetRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: GetMaxOffsetResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: GetMaxOffsetResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: GetMaxOffsetResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: GetMinOffsetRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: GetMinOffsetRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: GetMinOffsetRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: GetMinOffsetResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: GetMinOffsetResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: GetMinOffsetResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: PullMessageRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: PullMessageRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: PullMessageRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: PullMessageResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: PullMessageResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: PullMessageResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: QueryConsumerOffsetRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: QueryConsumerOffsetRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: QueryConsumerOffsetRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: QueryConsumerOffsetResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: QueryConsumerOffsetResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: QueryConsumerOffsetResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: GetMinOffsetRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: GetMinOffsetRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: GetMinOffsetRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: QueryMessageRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: QueryMessageRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: QueryMessageRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: QueryMessageResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: QueryMessageResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: QueryMessageResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: QueryMessageRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: QueryMessageRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: QueryMessageRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: SearchOffsetRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: SearchOffsetRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: SearchOffsetRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: SearchOffsetResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: SearchOffsetResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: SearchOffsetResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: SendMessageRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: SendMessageRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: SendMessageRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: SendMessageResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: SendMessageResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: SendMessageResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: UpdateConsumerOffsetRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: UpdateConsumerOffsetRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: UpdateConsumerOffsetRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: UpdateConsumerOffsetResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: UpdateConsumerOffsetResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: UpdateConsumerOffsetResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: ViewMessageRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: ViewMessageRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: ViewMessageRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: ViewMessageResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: ViewMessageResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: ViewMessageResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: GetRouteInfoRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: GetRouteInfoRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: GetRouteInfoRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: GetRouteInfoResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: GetRouteInfoResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: GetRouteInfoResponseHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: RegisterBrokerRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: RegisterBrokerRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: RegisterBrokerRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: RegisterOrderTopicRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: RegisterOrderTopicRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: RegisterOrderTopicRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
* *
* $Id: UnRegisterBrokerRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $ * $Id: UnRegisterBrokerRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*
* $Id: UnRegisterBrokerRequestHeader.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
*/ */
/** /**
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册