Github user revans2 commented on a diff in the pull request: https://github.com/apache/storm/pull/2343#discussion_r141189175 --- Diff: storm-server/src/main/java/org/apache/storm/scheduler/blacklist/strategies/DefaultBlacklistStrategy.java --- @@ -0,0 +1,169 @@ +/** + * 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.storm.scheduler.blacklist.strategies; + +import org.apache.storm.DaemonConfig; +import org.apache.storm.scheduler.Cluster; +import org.apache.storm.scheduler.SupervisorDetails; +import org.apache.storm.scheduler.Topologies; +import org.apache.storm.scheduler.TopologyDetails; +import org.apache.storm.scheduler.WorkerSlot; +import org.apache.storm.scheduler.blacklist.reporters.IReporter; +import org.apache.storm.scheduler.blacklist.reporters.LogReporter; +import org.apache.storm.utils.ObjectReader; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.TreeMap; + +public class DefaultBlacklistStrategy implements IBlacklistStrategy { + + private static Logger LOG = LoggerFactory.getLogger(DefaultBlacklistStrategy.class); + + public static final int DEFAULT_BLACKLIST_SCHEDULER_RESUME_TIME = 1800; + public static final int DEFAULT_BLACKLIST_SCHEDULER_TOLERANCE_COUNT = 3; + + private IReporter _reporter; --- End diff -- Again if we remove the '_' I think that would fix a lot of the checkstyle violations.
---