|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 NodeConfigurationAwarepublic void startAllComponents(NodeConfiguration nodeConfiguration)
NodeConfigurationAware
startAllComponents in interface NodeConfigurationAwarepublic boolean add(LifecycleAware node)
add in interface NodeManageradd in class AbstractLogicalNodeManagerpublic boolean remove(LifecycleAware node)
remove in interface NodeManagerremove in class AbstractLogicalNodeManagerpublic void start()
LifecycleAwareStarts 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 LifecycleAwarepublic void stop()
LifecycleAwareStops 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 LifecycleAwarepublic LifecycleState getLifecycleState()
LifecycleAwareReturn 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 | |||||||||