Updated Branches: refs/heads/trunk b460b565e -> 0f4ce2fb6
make CHECK_PERIOD_IN_MS field, static Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/0f4ce2fb Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/0f4ce2fb Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/0f4ce2fb Branch: refs/heads/trunk Commit: 0f4ce2fb68f6bb9957877a76a3a5bee80b4c5a8c Parents: b460b56 Author: Dave Brosius <dbros...@apache.org> Authored: Sun May 5 16:26:43 2013 -0400 Committer: Dave Brosius <dbros...@apache.org> Committed: Sun May 5 16:26:43 2013 -0400 ---------------------------------------------------------------------- .../locator/YamlFileNetworkTopologySnitch.java | 18 +++++++------- 1 files changed, 9 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/0f4ce2fb/src/java/org/apache/cassandra/locator/YamlFileNetworkTopologySnitch.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/cassandra/locator/YamlFileNetworkTopologySnitch.java b/src/java/org/apache/cassandra/locator/YamlFileNetworkTopologySnitch.java index 61f2d6d..ce17a52 100644 --- a/src/java/org/apache/cassandra/locator/YamlFileNetworkTopologySnitch.java +++ b/src/java/org/apache/cassandra/locator/YamlFileNetworkTopologySnitch.java @@ -60,6 +60,14 @@ public class YamlFileNetworkTopologySnitch /** Logger. */ private static final Logger logger = LoggerFactory .getLogger(YamlFileNetworkTopologySnitch.class); + + /** + * How often to check the topology configuration file, in milliseconds; defaults to one minute. + */ + private static final int CHECK_PERIOD_IN_MS = 60 * 1000; + + /** Default name for the topology configuration file. */ + private static final String DEFAULT_TOPOLOGY_CONFIG_FILENAME = "cassandra-topology.yaml"; /** Node data map, keyed by broadcast address. */ private volatile Map<InetAddress, NodeData> nodeDataMap; @@ -70,17 +78,9 @@ public class YamlFileNetworkTopologySnitch /** Node data to fall back to when there is no match. */ private volatile NodeData defaultNodeData; - /** Default name for the topology configuration file. */ - private static final String DEFAULT_TOPOLOGY_CONFIG_FILENAME = "cassandra-topology.yaml"; - /** Name of the topology configuration file. */ private final String topologyConfigFilename; - /** - * How often to check the topology configuration file, in milliseconds; defaults to one minute. - */ - private final int checkPeriodInMs = 60 * 1000; - /** True if the gossiper has been initialized. */ private volatile boolean gossiperInitialized = false; @@ -127,7 +127,7 @@ public class YamlFileNetworkTopologySnitch } }; ResourceWatcher.watch(topologyConfigFilename, runnable, - checkPeriodInMs); + CHECK_PERIOD_IN_MS); } catch (final ConfigurationException e) {