Package com.alibaba.rocketmq.store

Examples of com.alibaba.rocketmq.store.DefaultMessageStore



    public MessageStoreTestObject(final MessageStoreConfig messageStoreConfig) throws IOException {
        this.storeHost = new InetSocketAddress(InetAddress.getLocalHost(), 8123);
        this.bornHost = new InetSocketAddress(InetAddress.getByName("10.232.102.184"), 0);
        this.messageStore = new DefaultMessageStore(messageStoreConfig);
        this.messageBody = this.buildMessageBody();
    }
View Full Code Here


        result = result && this.subscriptionGroupManager.load();

        // 初始化存储层
        if (result) {
            try {
                this.messageStore = new DefaultMessageStore(this.messageStoreConfig);
            }
            catch (IOException e) {
                result = false;
                e.printStackTrace();
            }
View Full Code Here

        // 初始化存储层
        if (result) {
            try {
                this.messageStore =
                        new DefaultMessageStore(this.messageStoreConfig, this.defaultTransactionCheckExecuter);
            }
            catch (IOException e) {
                result = false;
                e.printStackTrace();
            }
View Full Code Here

        // 初始化存储层
        if (result) {
            try {
                this.messageStore =
                        new DefaultMessageStore(this.messageStoreConfig, this.defaultTransactionCheckExecuter);
            }
            catch (IOException e) {
                result = false;
                e.printStackTrace();
            }
View Full Code Here

        // 初始化存储层
        if (result) {
            try {
                this.messageStore =
                        new DefaultMessageStore(this.messageStoreConfig, this.defaultTransactionCheckExecuter);
            }
            catch (IOException e) {
                result = false;
                e.printStackTrace();
            }
View Full Code Here

        // 初始化存储层
        if (result) {
            try {
                this.messageStore =
                        new DefaultMessageStore(this.messageStoreConfig, this.defaultTransactionCheckExecuter);
            }
            catch (IOException e) {
                result = false;
                e.printStackTrace();
            }
View Full Code Here

        result = result && this.subscriptionGroupManager.load();

        // 初始化存储层
        if (result) {
            try {
                this.messageStore = new DefaultMessageStore(this.messageStoreConfig);
            }
            catch (IOException e) {
                result = false;
                e.printStackTrace();
            }
View Full Code Here


    public void tolog() {
        Map<String/* topic@group */, ConcurrentHashMap<Integer, Long>> offsetTable =
                brokerController.getConsumerOffsetManager().getOffsetTable();
        DefaultMessageStore defaultMessageStore = (DefaultMessageStore) brokerController.getMessageStore();
        for (String key : offsetTable.keySet()) {
            String[] strs = key.split(TOPIC_GROUP_SEPARATOR);
            String topic = strs[0];
            String group = strs[1];
            for (Integer queueId : offsetTable.get(key).keySet()) {
View Full Code Here


    public void tolog() {
        Map<String/* topic@group */, ConcurrentHashMap<Integer, Long>> offsetTable =
                brokerController.getConsumerOffsetManager().getOffsetTable();
        DefaultMessageStore defaultMessageStore = (DefaultMessageStore) brokerController.getMessageStore();
        for (String key : offsetTable.keySet()) {
            String[] strs = key.split(TOPIC_GROUP_SEPARATOR);
            String topic = strs[0];
            String group = strs[1];
            for (Integer queueId : offsetTable.get(key).keySet()) {
                long maxoffsize = defaultMessageStore.getMaxOffsetInQuque(topic, queueId);
                StringBuffer sb = new StringBuffer();
                sb.append("Client Put And get Count").append(",");
                sb.append("Topic[").append(topic).append("],");
                sb.append("Mq[").append(brokerController.getBrokerConfig().getBrokerName() + "-" + queueId)
                    .append("],");
View Full Code Here

        this.brokerController = brokerController;
    }


    public void tolog() {
        DefaultMessageStore defaultMessageStore = (DefaultMessageStore) brokerController.getMessageStore();
        Map<String, AtomicLong> putMessageTopicTimesTotal =
                defaultMessageStore.getStoreStatsService().getPutMessageTopicTimesTotal();
        Map<String, AtomicLong> putMessageTopicSizeTotal =
                defaultMessageStore.getStoreStatsService().getPutMessageTopicSizeTotal();
        for (String topic : putMessageTopicTimesTotal.keySet()) {
            long putMessageTopicTimesTotalValue = putMessageTopicTimesTotal.get(topic).get();
            long putMessageTopicSizeTotalValue = putMessageTopicSizeTotal.get(topic).get();
            long putMessageTopicTimesTotalValueLast =
                    putMessageTopicTimesTotalLast.get(topic) == null ? 0 : putMessageTopicTimesTotalLast
View Full Code Here

TOP

Related Classes of com.alibaba.rocketmq.store.DefaultMessageStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.