|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.service.ServiceOperations.ServiceListeners
public static class ServiceOperations.ServiceListeners
Class to manage a list of ServiceStateChangeListener instances,
including a notification loop that is robust against changes to the list
during the notification process.
| Constructor Summary | |
|---|---|
ServiceOperations.ServiceListeners()
|
|
| Method Summary | |
|---|---|
void |
add(ServiceStateChangeListener l)
Thread-safe addition of a new listener to the end of a list. |
void |
notifyListeners(Service service)
Change to a new state and notify all listeners. |
boolean |
remove(ServiceStateChangeListener l)
Remove any registration of a listener from the listener list. |
void |
reset()
Reset the listener list |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceOperations.ServiceListeners()
| Method Detail |
|---|
public void add(ServiceStateChangeListener l)
l - listenerpublic boolean remove(ServiceStateChangeListener l)
l - listener
public void reset()
public void notifyListeners(Service service)
service - the service that has changed state
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||