|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.flume.lifecycle.LifecycleSupervisor
public class LifecycleSupervisor
Nested Class Summary | |
---|---|
static class |
LifecycleSupervisor.MonitorRunnable
|
static class |
LifecycleSupervisor.Status
|
static class |
LifecycleSupervisor.SupervisorPolicy
|
Constructor Summary | |
---|---|
LifecycleSupervisor()
|
Method Summary | |
---|---|
void |
fail()
|
LifecycleState |
getLifecycleState()
Return the current state of the service or component. |
boolean |
isComponentInErrorState(LifecycleAware component)
|
void |
setDesiredState(LifecycleAware lifecycleAware,
LifecycleState desiredState)
|
void |
start()
Starts a service or component. |
void |
stop()
Stops a service or component. |
void |
supervise(LifecycleAware lifecycleAware,
LifecycleSupervisor.SupervisorPolicy policy,
LifecycleState desiredState)
|
void |
unsupervise(LifecycleAware lifecycleAware)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LifecycleSupervisor()
Method Detail |
---|
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 void fail()
public void supervise(LifecycleAware lifecycleAware, LifecycleSupervisor.SupervisorPolicy policy, LifecycleState desiredState)
public void unsupervise(LifecycleAware lifecycleAware)
public void setDesiredState(LifecycleAware lifecycleAware, LifecycleState desiredState)
public LifecycleState getLifecycleState()
LifecycleAware
Return the current state of the service or component.
getLifecycleState
in interface LifecycleAware
public boolean isComponentInErrorState(LifecycleAware component)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |