xmlBlaster 2.2.0 API

org.xmlBlaster.engine.admin.extern.snmp
Class ConnectionTableObserver

java.lang.Object
  extended by 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

Field Summary
private  ConnectionEntryImpl connectionEntryImpl
           
private  java.util.Hashtable connectionHashtable
           
private  ConnectionTable connectionTable
           
private  ConnectionTableSubject connectionTableSubject
           
private  java.util.BitSet indexSet
           
private static int MAXINDX
           
private  jax.AgentXSession session
           
 
Constructor Summary
ConnectionTableObserver(ConnectionTableSubject connectionTableSubject, jax.AgentXSession session)
          Adds itself to the connectionTableSubject as observer.
 
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
 

Field Detail

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
Constructor Detail

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.
Method Detail

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.

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.