All Packages Class Hierarchy This Package Previous Next Index
Class magician.Four11.AssocList
java.lang.Object
|
+----magician.Four11.AssocList
- public class AssocList
- extends Object
This class reads the configuration file and maintains the topology
of the network. The topology is maintained in a lisp-like list format.
When a request arrives the MessageHandler
thread forwards the request to this class using the get()
interface. The request itself is in a list format with the requested quantity
indicated by a wildcard (*) symbol. The request is then matched
against the internal list and the list/value matching the wildcard is
returned as the reply.
- See Also:
- MessageHandler
-
AssocList(String)
- initializes the object with the name of the network to configure
The name of the configuration file to read is derived by concatenating
".conf" to the network name.
-
get(String)
- returns reply to the query sent by the active node
The reply can be a list or a value
AssocList
public AssocList(String netName)
- initializes the object with the name of the network to configure
The name of the configuration file to read is derived by concatenating
".conf" to the network name.
- Parameters:
- netName - the network name
get
public synchronized String get(String s)
- returns reply to the query sent by the active node
The reply can be a list or a value
- Parameters:
- s - the request message
- Returns:
- the reply string
All Packages Class Hierarchy This Package Previous Next Index