|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulg.montefiore.run.totem.repository.facade.RepositoryManagerObserver
public class RepositoryManagerObserver
This class is used to notify all listeners of changes in the RepositoryManager (i.e. algo started, algo stopped)
Creation date: 9 janv. 2006
RepositoryManagerListener,
RepositoryManager| Constructor Summary | |
|---|---|
RepositoryManagerObserver()
|
|
| Method Summary | |
|---|---|
void |
addListener(RepositoryManagerListener l)
Add a listener to the list of listeners. |
int |
getNbListeners()
return the number of registered listeners |
protected void |
notifyStartAlgo(TotemAlgorithm algo)
New algorithm started |
protected void |
notifyStopAlgo(TotemAlgorithm algo)
Algo stopped |
void |
removeListener(RepositoryManagerListener l)
Remove a listener from the list of registered listeners. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RepositoryManagerObserver()
| Method Detail |
|---|
public void addListener(RepositoryManagerListener l)
l - the listener to addpublic void removeListener(RepositoryManagerListener l)
l - public int getNbListeners()
protected void notifyStartAlgo(TotemAlgorithm algo)
algo - the started algorithmprotected void notifyStopAlgo(TotemAlgorithm algo)
algo - A reference to the stopped algo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||