verinec.netsim.firewall.util.tables
Class StatefulTablesSingleton

java.lang.Object
  extended by java.util.Dictionary
      extended by java.util.Hashtable
          extended by verinec.netsim.firewall.util.tables.StatefulTablesSingleton
All Implemented Interfaces:
Serializable, Cloneable, Map

public class StatefulTablesSingleton
extends Hashtable

This class is used to ensure that each node has one and only one Stateful Inspection Hash Table.

Version:
$Revision: 825 $
Author:
jason.hug@unifr.ch
See Also:
Serialized Form

Field Summary
private static StatefulTablesSingleton instance
          Keeps each node's Stateful Inspection Hash Table in a Hash Table itself.
 
Constructor Summary
private StatefulTablesSingleton()
          private constructor, prevents direct instantiation of this class.
 
Method Summary
static StatefulTablesSingleton getInstance()
          get handle to the singleton
static StatefulInspection getTable(String hostname)
          Gets a stateful table belonging to the node's hostname
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

instance

private static StatefulTablesSingleton instance
Keeps each node's Stateful Inspection Hash Table in a Hash Table itself.

Constructor Detail

StatefulTablesSingleton

private StatefulTablesSingleton()
private constructor, prevents direct instantiation of this class.

Method Detail

getInstance

public static StatefulTablesSingleton getInstance()
get handle to the singleton

Returns:
the singleton instance of this class.

getTable

public static StatefulInspection getTable(String hostname)
Gets a stateful table belonging to the node's hostname

Parameters:
hostname - Hostname of the node from which the stateful table should be retrieved.
Returns:
StatefulTable of the node. null if no entry exists.

Copyright © 2005 Verinec, DIUF