verinec.netsim.firewall.util.tables
Class StatefulTablesSingleton
java.lang.Object
java.util.Dictionary
java.util.Hashtable
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
|
Constructor Summary |
private |
StatefulTablesSingleton()
private constructor, prevents direct instantiation of this class. |
| 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 |
instance
private static StatefulTablesSingleton instance
- Keeps each node's Stateful Inspection Hash Table in a Hash Table itself.
StatefulTablesSingleton
private StatefulTablesSingleton()
- private constructor, prevents direct instantiation of this class.
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.