|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulg.montefiore.run.totem.domain.model.impl.DomainChangeObserverImpl
public class DomainChangeObserverImpl
The DomainChangeObserverImpl is associated to a Domain and notify to all listeners the Domain changes.
Creation date: 12-Jan-2005 18:12:00
| Field Summary |
|---|
| Fields inherited from interface be.ac.ulg.montefiore.run.totem.domain.model.DomainChangeObserver |
|---|
HIGHEST_PRIORITY, LOWEST_PRIORITY |
| Constructor Summary | |
|---|---|
DomainChangeObserverImpl(Domain domain)
|
|
| Method Summary | |
|---|---|
void |
addListener(DomainChangeListener l)
Adds a listener with the lowest priority. |
void |
addListener(DomainChangeListener l,
int priority)
Adds a listener with the specified priority. |
int |
getNbListeners()
return the total number of listeners |
int |
getNbListeners(int priority)
return the number of listeners for all priorites inferior or equal to priority |
void |
notifyAddLink(Link link)
Notify link add |
void |
notifyAddLsp(Lsp lsp)
Notify LSP add |
void |
notifyAddNode(Node node)
Notify node add |
void |
notifyLinkBandwidthChange(Link link)
Notify link bandwidth change |
void |
notifyLinkDelayChange(Link link)
Notify link delay change |
void |
notifyLinkMetricChange(Link link)
Notify link metric change |
void |
notifyLinkReservedBandwidthChange(Link link)
Notify link reserved bandwidth change |
void |
notifyLinkStatusChange(Link link)
Notify link status change |
void |
notifyLinkTeMetricChange(Link link)
Notify link TE metric change |
void |
notifyLspReservationChange(Lsp lsp)
Notify LSP reservation change |
void |
notifyLspStatusChange(Lsp lsp)
Notify a change in the status of the lsp. |
void |
notifyLspWorkingPathChange(Lsp lsp)
Notify a change in the working path |
void |
notifyNodeLocationChange(Node node)
Notify a node location change |
void |
notifyNodeStatusChange(Node node)
Notify node status change |
void |
notifyRemoveLink(Link link)
Notify link remove |
void |
notifyRemoveLsp(Lsp lsp)
Notify LSP remove |
void |
notifyRemoveNode(Node node)
Notify node remove |
void |
removeAllListeners()
Removes all listeners. |
void |
removeListener(DomainChangeListener l)
Removes the listener l. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DomainChangeObserverImpl(Domain domain)
| Method Detail |
|---|
public void addListener(DomainChangeListener l)
DomainChangeObserverl is already registered.
addListener in interface DomainChangeObserverl - The listener to add.
public void addListener(DomainChangeListener l,
int priority)
throws DomainChangeObserverException
DomainChangeObserverl is already registered.
addListener in interface DomainChangeObserverl - The listener to add.priority - The priority of the listener. This must be greater or
equal than LOWEST_PRIORITY and lower or equal than
HIGHEST_PRIORITY.
DomainChangeObserverException - If priority is
invalid.public void removeListener(DomainChangeListener l)
DomainChangeObserverl. This method does nothing if
l is not registered.
removeListener in interface DomainChangeObserverl - The listener to remove.public void removeAllListeners()
DomainChangeObserver
removeAllListeners in interface DomainChangeObserverpublic int getNbListeners(int priority)
DomainChangeObserverpriority
getNbListeners in interface DomainChangeObserverpublic int getNbListeners()
DomainChangeObserver
getNbListeners in interface DomainChangeObserverpublic void notifyAddNode(Node node)
notifyAddNode in interface DomainChangeObservernode - public void notifyRemoveNode(Node node)
notifyRemoveNode in interface DomainChangeObservernode - public void notifyNodeStatusChange(Node node)
notifyNodeStatusChange in interface DomainChangeObservernode - public void notifyNodeLocationChange(Node node)
DomainChangeObserver
notifyNodeLocationChange in interface DomainChangeObserverpublic void notifyAddLink(Link link)
notifyAddLink in interface DomainChangeObserverlink - public void notifyRemoveLink(Link link)
notifyRemoveLink in interface DomainChangeObserverlink - public void notifyLinkStatusChange(Link link)
notifyLinkStatusChange in interface DomainChangeObserverlink - public void notifyLinkMetricChange(Link link)
notifyLinkMetricChange in interface DomainChangeObserverlink - public void notifyLinkTeMetricChange(Link link)
notifyLinkTeMetricChange in interface DomainChangeObserverlink - public void notifyLinkBandwidthChange(Link link)
notifyLinkBandwidthChange in interface DomainChangeObserverlink - public void notifyLinkReservedBandwidthChange(Link link)
notifyLinkReservedBandwidthChange in interface DomainChangeObserverlink - public void notifyLinkDelayChange(Link link)
notifyLinkDelayChange in interface DomainChangeObserverlink - public void notifyAddLsp(Lsp lsp)
notifyAddLsp in interface DomainChangeObserverlsp - public void notifyRemoveLsp(Lsp lsp)
notifyRemoveLsp in interface DomainChangeObserverlsp - public void notifyLspReservationChange(Lsp lsp)
notifyLspReservationChange in interface DomainChangeObserverlsp - public void notifyLspStatusChange(Lsp lsp)
DomainChangeObserver
notifyLspStatusChange in interface DomainChangeObserverpublic void notifyLspWorkingPathChange(Lsp lsp)
notifyLspWorkingPathChange in interface DomainChangeObserverlsp -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||