|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xmlBlaster.engine.admin.extern.snmp.NodeTableSubject
NodeTableSubject holds onto node entries. The NodeTableSubject also allows Observers to add and remove themselves. In order to add or remove a node entry notifyObservers() is called.
| Field Summary | |
static int |
INSERT
|
NodeEntryImplPeer |
nodeEntryImplPeer
|
java.util.ArrayList |
observers
|
int |
opCode
|
static int |
REMOVE
|
| Constructor Summary | |
NodeTableSubject()
|
|
| Method Summary | |
void |
addEntry(NodeEntryImplPeer nodeEntryImplPeer)
Calls notifyObservers() in order to add a new node entry to node table. |
void |
addObserver(Observer o)
Adds an observer to observer list. |
private void |
notifyObservers()
Calls update method for all observers in observer list. |
void |
removeEntry(NodeEntryImplPeer nodeEntryImplPeer)
Calls notifyObservers() in order to remove a node entry from node table. |
void |
removeObserver(Observer o)
Removes an observer from observer list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public NodeEntryImplPeer nodeEntryImplPeer
public java.util.ArrayList observers
public int opCode
public static final int INSERT
public static final int REMOVE
| Constructor Detail |
public NodeTableSubject()
| Method Detail |
public void addEntry(NodeEntryImplPeer nodeEntryImplPeer)
public void removeEntry(NodeEntryImplPeer nodeEntryImplPeer)
public void addObserver(Observer o)
addObserver in interface Subjectpublic void removeObserver(Observer o)
removeObserver in interface Subjectprivate void notifyObservers()
|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||