[ 
https://issues.apache.org/jira/browse/ROCKETMQ-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16005770#comment-16005770
 ] 

ASF GitHub Bot commented on ROCKETMQ-194:
-----------------------------------------

Github user vongosling commented on a diff in the pull request:

    https://github.com/apache/incubator-rocketmq/pull/101#discussion_r115889155
  
    --- Diff: 
logappender/src/test/java/org/apache/rocketmq/logappender/AbstractTestCase.java 
---
    @@ -0,0 +1,165 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +package org.apache.rocketmq.logappender;
    +
    +import org.apache.rocketmq.broker.BrokerController;
    +import org.apache.rocketmq.client.consumer.DefaultMQPushConsumer;
    +import 
org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyContext;
    +import 
org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyStatus;
    +import 
org.apache.rocketmq.client.consumer.listener.MessageListenerConcurrently;
    +import org.apache.rocketmq.client.exception.MQClientException;
    +import org.apache.rocketmq.common.BrokerConfig;
    +import org.apache.rocketmq.common.MQVersion;
    +import org.apache.rocketmq.common.MixAll;
    +import org.apache.rocketmq.common.consumer.ConsumeFromWhere;
    +import org.apache.rocketmq.common.message.MessageExt;
    +import org.apache.rocketmq.common.namesrv.NamesrvConfig;
    +import org.apache.rocketmq.logappender.common.ProducerInstance;
    +import org.apache.rocketmq.namesrv.NamesrvController;
    +import org.apache.rocketmq.remoting.netty.NettyClientConfig;
    +import org.apache.rocketmq.remoting.netty.NettyServerConfig;
    +import org.apache.rocketmq.remoting.protocol.RemotingCommand;
    +import org.apache.rocketmq.store.config.MessageStoreConfig;
    +import org.junit.AfterClass;
    +import org.junit.BeforeClass;
    +
    +import java.util.List;
    +import java.util.Random;
    +import java.util.concurrent.CountDownLatch;
    +import java.util.concurrent.TimeUnit;
    +import java.util.concurrent.atomic.AtomicInteger;
    +
    +/**
    + * Basic test rocketmq broker and name server init
    + */
    +public class AbstractTestCase {
    +
    +    private static String nameServer = "localhost:9876";
    +
    +    private static NamesrvController namesrvController;
    +
    +    private static BrokerController brokerController;
    +
    +    private static String topic = "TopicTest";
    +
    +    @BeforeClass
    +    public static void startRocketmqService() throws Exception {
    +
    +        /*
    +        Start nameserver
    +         */
    +        startNamesrv();
    +
    +        /*
    +        Start broker
    +         */
    +        startBroker();
    +
    +        Thread.sleep(2000);
    --- End diff --
    
    CountDownLatch


> log appender useing rocketmq
> ----------------------------
>
>                 Key: ROCKETMQ-194
>                 URL: https://issues.apache.org/jira/browse/ROCKETMQ-194
>             Project: Apache RocketMQ
>          Issue Type: New Feature
>    Affects Versions: 4.1.0-incubating
>         Environment: jdk7
>            Reporter: lindzh
>            Assignee: vongosling
>              Labels: features
>             Fix For: 4.1.0-incubating
>
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>
> As Rocketmq is widely used,A log appender is also necessary.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to