|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.engine.admin.extern.snmp.ConnectionTableSubject
public class ConnectionTableSubject
ConnectionTableSubject holds onto connection entries. The ConnectionTableSubject also allows Observers to add and remove themselves. In order to add or remove a connection entry notifyObservers() is called.
Field Summary | |
---|---|
ConnectionEntryImplPeer |
connectionEntryImplPeer
|
static int |
INSERT
|
java.lang.Integer |
nodeIndex
|
NodeTableObserver |
nodeTableObserver
|
java.util.ArrayList |
observers
|
int |
opCode
|
static int |
REMOVE
|
Constructor Summary | |
---|---|
ConnectionTableSubject(NodeTableObserver nodeTableObserver)
Holds a reference to nodeTableObserver. |
Method Summary | |
---|---|
void |
addEntry(java.lang.String nodeName,
ConnectionEntryImplPeer connectionEntryImplPeer)
Calls notifyObservers in order to add a new connection entry to connection 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(java.lang.String nodeName,
ConnectionEntryImplPeer connectionEntryImplPeer)
Calls notifyObservers in order to remove a connection entry from connection 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 ConnectionEntryImplPeer connectionEntryImplPeer
public NodeTableObserver nodeTableObserver
public java.util.ArrayList observers
public java.lang.Integer nodeIndex
public int opCode
public static final int INSERT
public static final int REMOVE
Constructor Detail |
---|
public ConnectionTableSubject(NodeTableObserver nodeTableObserver)
NodeTableObserver
- provides access to nodeIndex.Method Detail |
---|
public void addEntry(java.lang.String nodeName, ConnectionEntryImplPeer connectionEntryImplPeer)
NodeName
- node to wich connection entry belongs.ConnectionEntryImplPeer
- connection entry to be added.public void removeEntry(java.lang.String nodeName, ConnectionEntryImplPeer connectionEntryImplPeer)
NodeName
- node to wich connection entry belongs.ConnectionEntryImplPeer
- connection entry to be removed.public void addObserver(Observer o)
addObserver
in interface Subject
Observer
- implements observer update method.public void removeObserver(Observer o)
removeObserver
in interface Subject
Observer
- implements observer update method.private void notifyObservers()
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |