org.xmlBlaster.engine.admin.extern.snmp
Class ConnectionTableObserver
java.lang.Object
org.xmlBlaster.engine.admin.extern.snmp.ConnectionTableObserver
- All Implemented Interfaces:
- Observer
public class ConnectionTableObserver
- extends java.lang.Object
- implements Observer
ConnectionTableObserver represents the observer side of an observer pattern.
When ConnectionTableObserver receives an update notification from ConnectionTableSubject,
it adds or removes an entry to/from connectionTable.
- Version:
- @VERSION@
- Author:
- Udo Thalmann
Method Summary |
void |
update(Subject o)
Adds or removes a connection entry to/from the connection table. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connectionTableSubject
private ConnectionTableSubject connectionTableSubject
session
private jax.AgentXSession session
connectionEntryImpl
private ConnectionEntryImpl connectionEntryImpl
connectionTable
private ConnectionTable connectionTable
connectionHashtable
private java.util.Hashtable connectionHashtable
indexSet
private java.util.BitSet indexSet
MAXINDX
private static final int MAXINDX
- See Also:
- Constant Field Values
ConnectionTableObserver
public ConnectionTableObserver(ConnectionTableSubject connectionTableSubject,
jax.AgentXSession session)
- Adds itself to the connectionTableSubject as observer.
Creates a new connectionTable and adds it to the agentX session.
Creates a Hashtable for connection (host/port, index) entries.
Creates a BitSet for available indices.
- Parameters:
ConnectionTableSubject
- the subject, which calls the uptdate method.AgentXSession
- the actual agentX session between master agent and subagent.
update
public void update(Subject o)
- Adds or removes a connection entry to/from the connection table.
Updates connection indexSet.
Updates connectionHashtable.
- Specified by:
update
in interface Observer
- Parameters:
Subject
- connectionTableSubject which calls update.
Copyright © 1999-2014 The xmlBlaster.org contributers.