|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.flume.node.nodemanager.AbstractLogicalNodeManager org.apache.flume.node.nodemanager.DefaultLogicalNodeManager
public class DefaultLogicalNodeManager
Field Summary | |
---|---|
static String |
CONF_MONITOR_CLASS
|
static String |
CONF_MONITOR_PREFIX
|
Constructor Summary | |
---|---|
DefaultLogicalNodeManager()
|
Method Summary | |
---|---|
boolean |
add(LifecycleAware node)
|
LifecycleState |
getLifecycleState()
Return the current state of the service or component. |
boolean |
remove(LifecycleAware node)
|
void |
start()
Starts a service or component. |
void |
startAllComponents(NodeConfiguration nodeConfiguration)
Start components with the configuration provided. |
void |
stop()
Stops a service or component. |
void |
stopAllComponents()
Stop all components currently running. |
Methods inherited from class org.apache.flume.node.nodemanager.AbstractLogicalNodeManager |
---|
getNodes, setNodes, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String CONF_MONITOR_CLASS
public static final String CONF_MONITOR_PREFIX
Constructor Detail |
---|
public DefaultLogicalNodeManager()
Method Detail |
---|
public void stopAllComponents()
NodeConfigurationAware
stopAllComponents
in interface NodeConfigurationAware
public void startAllComponents(NodeConfiguration nodeConfiguration)
NodeConfigurationAware
startAllComponents
in interface NodeConfigurationAware
public boolean add(LifecycleAware node)
add
in interface NodeManager
add
in class AbstractLogicalNodeManager
public boolean remove(LifecycleAware node)
remove
in interface NodeManager
remove
in class AbstractLogicalNodeManager
public void start()
LifecycleAware
Starts a service or component.
Implementations should determine the result of any start logic and effect
the return value of LifecycleAware.getLifecycleState()
accordingly.
start
in interface LifecycleAware
public void stop()
LifecycleAware
Stops a service or component.
Implementations should determine the result of any stop logic and effect
the return value of LifecycleAware.getLifecycleState()
accordingly.
stop
in interface LifecycleAware
public LifecycleState getLifecycleState()
LifecycleAware
Return the current state of the service or component.
getLifecycleState
in interface LifecycleAware
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |