org.xmlBlaster.engine.admin.extern.snmp
Class SessionTableObserver
java.lang.Object
org.xmlBlaster.engine.admin.extern.snmp.SessionTableObserver
- All Implemented Interfaces:
- Observer
public class SessionTableObserver
- extends java.lang.Object
- implements Observer
SessionTableObserver represents the observer side of an observer pattern.
When SessionTableObserver receives an update notification from SessionTableSubject,
it adds or removes an entry to/from clientTable.
- Version:
- @VERSION@
- Author:
- Udo Thalmann
Method Summary |
void |
sendTrap(jax.AgentXSession session)
For each session table entry sendTrap checks trap condition
cbQueueMaxEntries * cbQueueThreshold < cbQueueNumEntries. |
void |
update(Subject o)
Adds or removes a session entry to/from the session table. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sessionTableSubject
private SessionTableSubject sessionTableSubject
session
private jax.AgentXSession session
sessionEntryImpl
private SessionEntryImpl sessionEntryImpl
sessionTable
private SessionTable sessionTable
sessionHashtable
private java.util.Hashtable sessionHashtable
indexSet
private java.util.BitSet indexSet
MAXINDX
private static final int MAXINDX
- See Also:
- Constant Field Values
SessionTableObserver
public SessionTableObserver(SessionTableSubject sessionTableSubject,
jax.AgentXSession session)
- Adds itself to the sessionTableSubject as observer.
Creates a new sessionTable and adds it to the agentX session.
Creates a Hashtable for (session, index) entries.
Creates a BitSet for available indices.
- Parameters:
ClientTableSubject
- the subject, which calls the update method.AgentXSession
- the actual agentX session between master agent and subagent.
sendTrap
public void sendTrap(jax.AgentXSession session)
- For each session table entry sendTrap checks trap condition
cbQueueMaxEntries * cbQueueThreshold < cbQueueNumEntries.
Sends a CbQueueThresholdOverflow trap if the condition is fulfilled.
- Parameters:
AgentXSession
- the actual agentX session between master agent and subagent.
update
public void update(Subject o)
- Adds or removes a session entry to/from the session table.
Updates session indexSet.
Updates sessionHashtable.
Updates reference counter in clientTableObserver.
- Specified by:
update
in interface Observer
- Parameters:
Subject
- sessionTableSubject which calls update.
Copyright © 1999-2014 The xmlBlaster.org contributers.