|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DomainChangeObserver
A DomainChangeObserver is associated to a Domain and notify to all listeners the Domain changes. The priorities of the listeners define the order in which they are notified.
Creation date: 12-Jan-2005 18:12:00
Field Summary | |
---|---|
static int |
HIGHEST_PRIORITY
|
static int |
LOWEST_PRIORITY
|
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 of the lsp |
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 . |
Field Detail |
---|
static final int LOWEST_PRIORITY
static final int HIGHEST_PRIORITY
Method Detail |
---|
void addListener(DomainChangeListener l)
l
is already registered.
l
- The listener to add.void addListener(DomainChangeListener l, int priority) throws DomainChangeObserverException
l
is already registered.
l
- 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.void removeListener(DomainChangeListener l)
l
. This method does nothing if
l
is not registered.
l
- The listener to remove.void removeAllListeners()
int getNbListeners(int priority)
priority
priority
-
int getNbListeners()
void notifyAddNode(Node node)
node
- void notifyRemoveNode(Node node)
node
- void notifyNodeStatusChange(Node node)
node
- void notifyNodeLocationChange(Node node)
node
- void notifyAddLink(Link link)
link
- void notifyRemoveLink(Link link)
link
- void notifyLinkStatusChange(Link link)
link
- void notifyLinkMetricChange(Link link)
link
- void notifyLinkTeMetricChange(Link link)
link
- void notifyLinkBandwidthChange(Link link)
link
- void notifyLinkReservedBandwidthChange(Link link)
link
- void notifyLinkDelayChange(Link link)
link
- void notifyAddLsp(Lsp lsp)
lsp
- void notifyRemoveLsp(Lsp lsp)
lsp
- void notifyLspReservationChange(Lsp lsp)
lsp
- void notifyLspStatusChange(Lsp lsp)
lsp
- void notifyLspWorkingPathChange(Lsp lsp)
lsp
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |