org.apache.flume.node
Class PollingZooKeeperConfigurationProvider

java.lang.Object
  extended by org.apache.flume.node.AbstractConfigurationProvider
      extended by org.apache.flume.node.AbstractZooKeeperConfigurationProvider
          extended by org.apache.flume.node.PollingZooKeeperConfigurationProvider
All Implemented Interfaces:
LifecycleAware, ConfigurationProvider

public class PollingZooKeeperConfigurationProvider
extends AbstractZooKeeperConfigurationProvider
implements LifecycleAware


Field Summary
 
Fields inherited from class org.apache.flume.node.AbstractZooKeeperConfigurationProvider
basePath, zkConnString
 
Constructor Summary
PollingZooKeeperConfigurationProvider(String agentName, String zkConnString, String basePath, com.google.common.eventbus.EventBus eventBus)
           
 
Method Summary
protected  FlumeConfiguration getFlumeConfiguration()
           
 LifecycleState getLifecycleState()
           Return the current state of the service or component.
 void start()
           Starts a service or component.
 void stop()
           Stops a service or component.
 
Methods inherited from class org.apache.flume.node.AbstractZooKeeperConfigurationProvider
configFromBytes, createClient
 
Methods inherited from class org.apache.flume.node.AbstractConfigurationProvider
getAgentName, getConfiguration, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollingZooKeeperConfigurationProvider

public PollingZooKeeperConfigurationProvider(String agentName,
                                             String zkConnString,
                                             String basePath,
                                             com.google.common.eventbus.EventBus eventBus)
Method Detail

getFlumeConfiguration

protected FlumeConfiguration getFlumeConfiguration()
Specified by:
getFlumeConfiguration in class AbstractConfigurationProvider

start

public void start()
Description copied from interface: LifecycleAware

Starts a service or component.

Implementations should determine the result of any start logic and effect the return value of LifecycleAware.getLifecycleState() accordingly.

Specified by:
start in interface LifecycleAware

stop

public void stop()
Description copied from interface: LifecycleAware

Stops a service or component.

Implementations should determine the result of any stop logic and effect the return value of LifecycleAware.getLifecycleState() accordingly.

Specified by:
stop in interface LifecycleAware

getLifecycleState

public LifecycleState getLifecycleState()
Description copied from interface: LifecycleAware

Return the current state of the service or component.

Specified by:
getLifecycleState in interface LifecycleAware


Copyright © 2009-2015 Apache Software Foundation. All Rights Reserved.