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

ASF GitHub Bot commented on STORM-1229:
---------------------------------------

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

    https://github.com/apache/storm/pull/1238#discussion_r56766748
  
    --- Diff: 
storm-core/test/jvm/org/apache/storm/metric/FakeMetricConsumer.java ---
    @@ -0,0 +1,88 @@
    +/**
    + * 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
    + * <p/>
    + * http://www.apache.org/licenses/LICENSE-2.0
    + * <p/>
    + * 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.storm.metric;
    +
    +import com.google.common.collect.ArrayListMultimap;
    +import com.google.common.collect.HashBasedTable;
    +import com.google.common.collect.Multimap;
    +import com.google.common.collect.Table;
    +
    +import org.apache.storm.metric.api.IMetricsConsumer;
    +import org.apache.storm.task.IErrorReporter;
    +import org.apache.storm.task.TopologyContext;
    +
    +import java.util.Collection;
    +import java.util.HashMap;
    +import java.util.Map;
    +
    +public class FakeMetricConsumer implements IMetricsConsumer {
    +
    +    public static final Table<String, String, Multimap<Integer, Object>> 
buffer = HashBasedTable.create();
    --- End diff --
    
    why is this static? can't we make it an instance field?


> port backtype.storm.metric.testing to java
> ------------------------------------------
>
>                 Key: STORM-1229
>                 URL: https://issues.apache.org/jira/browse/STORM-1229
>             Project: Apache Storm
>          Issue Type: New Feature
>          Components: storm-core
>            Reporter: Robert Joseph Evans
>            Assignee: Abhishek Agarwal
>              Labels: java-migration, jstorm-merger
>
> This provides a way to capture and inspect the datapoints sent to a 
> FakeMetricConsumer.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to