org.apache.flume.conf.file
Class AbstractFileConfigurationProvider

java.lang.Object
  extended by org.apache.flume.conf.file.AbstractFileConfigurationProvider
All Implemented Interfaces:
LifecycleAware, ConfigurationProvider
Direct Known Subclasses:
PropertiesFileConfigurationProvider

public abstract class AbstractFileConfigurationProvider
extends Object
implements ConfigurationProvider


Nested Class Summary
 class AbstractFileConfigurationProvider.FileWatcherRunnable
           
 
Constructor Summary
AbstractFileConfigurationProvider()
           
 
Method Summary
 ChannelFactory getChannelFactory()
           
 NodeConfigurationAware getConfigurationAware()
           
 File getFile()
           
 LifecycleState getLifecycleState()
           Return the current state of the service or component.
 String getNodeName()
           
 SinkFactory getSinkFactory()
           
 SourceFactory getSourceFactory()
           
protected abstract  void load()
           
 void setChannelFactory(ChannelFactory channelFactory)
           
 void setConfigurationAware(NodeConfigurationAware configurationAware)
           
 void setFile(File file)
           
 void setNodeName(String nodeName)
           
 void setSinkFactory(SinkFactory sinkFactory)
           
 void setSourceFactory(SourceFactory sourceFactory)
           
 void start()
           Starts a service or component.
 void stop()
           Stops a service or component.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractFileConfigurationProvider

public AbstractFileConfigurationProvider()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

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

load

protected abstract void load()

getFile

public File getFile()

setFile

public void setFile(File file)

getLifecycleState

public LifecycleState getLifecycleState()
Description copied from interface: LifecycleAware

Return the current state of the service or component.

Specified by:
getLifecycleState in interface LifecycleAware

getChannelFactory

public ChannelFactory getChannelFactory()

setChannelFactory

public void setChannelFactory(ChannelFactory channelFactory)

getSourceFactory

public SourceFactory getSourceFactory()

setSourceFactory

public void setSourceFactory(SourceFactory sourceFactory)

getSinkFactory

public SinkFactory getSinkFactory()

setSinkFactory

public void setSinkFactory(SinkFactory sinkFactory)

getConfigurationAware

public NodeConfigurationAware getConfigurationAware()

setConfigurationAware

public void setConfigurationAware(NodeConfigurationAware configurationAware)

getNodeName

public String getNodeName()

setNodeName

public void setNodeName(String nodeName)


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