From fe9cb397a190ce60a5d5219c29ce062d7fd59619 Mon Sep 17 00:00:00 2001 From: Fangjin Yang Date: Wed, 31 Oct 2012 10:29:03 -0700 Subject: [PATCH] remove unncessarily created file --- .../main/java/com/metamx/druid/DruidNode.java | 55 ------------------- 1 file changed, 55 deletions(-) delete mode 100644 client/src/main/java/com/metamx/druid/DruidNode.java diff --git a/client/src/main/java/com/metamx/druid/DruidNode.java b/client/src/main/java/com/metamx/druid/DruidNode.java deleted file mode 100644 index 69844e78cb8..00000000000 --- a/client/src/main/java/com/metamx/druid/DruidNode.java +++ /dev/null @@ -1,55 +0,0 @@ -package com.metamx.druid; - -import com.metamx.common.lifecycle.Lifecycle; -import com.metamx.common.lifecycle.LifecycleStart; -import com.metamx.common.lifecycle.LifecycleStop; -import com.metamx.common.logger.Logger; -import org.codehaus.jackson.map.ObjectMapper; -import org.skife.config.ConfigurationObjectFactory; - -import java.util.Properties; - -/** - */ -public abstract class DruidNode -{ - private static final Logger log = new Logger(DruidNode.class); - - private final ObjectMapper jsonMapper; - private final Lifecycle lifecycle; - private final Properties props; - private final ConfigurationObjectFactory configFactory; - - private boolean initialized = false; - - public DruidNode( - ObjectMapper jsonMapper, - Lifecycle lifecycle, - Properties props, - ConfigurationObjectFactory configFactory - ) - { - this.jsonMapper = jsonMapper; - this.lifecycle = lifecycle; - this.props = props; - this.configFactory = configFactory; - } - - public abstract void init(); - - @LifecycleStart - public synchronized void start() throws Exception - { - if (!initialized) { - init(); - } - - lifecycle.start(); - } - - @LifecycleStop - public synchronized void stop() - { - lifecycle.stop(); - } -}