|
Ver. 20060815 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectServer.ConnectionContainer
Server.ModuleContainer
public class ModuleContainer
Contains all of the state information for a SIMSA module as well as handles inbound messages according to module specifications with a module parser. 2006/08/10 Kyle Reed
Field Summary | |
---|---|
private simsa.xml.XMLParser |
ixp
|
private java.lang.String |
myType
|
private simsa.xml.XMLParser |
oxp
|
private java.util.HashMap<java.lang.Integer,ClientContainer> |
registeredClients
|
private java.util.ArrayList<java.lang.String> |
vi_c
|
private java.util.ArrayList<java.lang.String> |
vi_n
|
private java.util.ArrayList<java.lang.String> |
vo_c
|
private java.util.ArrayList<java.lang.String> |
vo_n
|
Fields inherited from class Server.ConnectionContainer |
---|
ba, bb, challengeNum, connected, idName, idNum, io, myKey, server, startTime |
Constructor Summary | |
---|---|
ModuleContainer(java.nio.channels.SelectionKey key)
Creates a module container for an incoming connection. |
Method Summary | |
---|---|
int |
getNumberOfClients()
Returns the number of clients registered with the module. |
java.lang.String |
getType()
Returns the mtype of the module as was passed to in by the connect. |
void |
handleInput()
Implements the message handling section of a module. |
void |
registerClient(ClientContainer cc)
Adds a clientContainer reference to registration list. |
void |
removeClient(java.lang.Integer key)
Removes a client from the module's registeredClients list. |
void |
selfDestruct()
This function attempts to cleanly bring down a module and its clients, set the calling opject to null after this function has been called to ensure that the GC picks it up. |
Methods inherited from class Server.ConnectionContainer |
---|
getChallengeNum, getIdNum, getName, getUptime, sendTerminator, setName, setServer, writeToSelf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.HashMap<java.lang.Integer,ClientContainer> registeredClients
private simsa.xml.XMLParser oxp
private simsa.xml.XMLParser ixp
private java.lang.String myType
private java.util.ArrayList<java.lang.String> vo_c
private java.util.ArrayList<java.lang.String> vo_n
private java.util.ArrayList<java.lang.String> vi_c
private java.util.ArrayList<java.lang.String> vi_n
Constructor Detail |
---|
public ModuleContainer(java.nio.channels.SelectionKey key)
Method Detail |
---|
public void registerClient(ClientContainer cc)
public void removeClient(java.lang.Integer key)
public void handleInput()
handleInput
in class ConnectionContainer
public void selfDestruct()
selfDestruct
in class ConnectionContainer
public java.lang.String getType()
public int getNumberOfClients()
|
Ver. 20060815 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |