|
Ver. 20060815 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectServer.ConnectionContainer
Server.ClientContainer
public class ClientContainer
Contains all of the state information for a SIMSA client as well as handles inbound messages according to client specifications with a client parser. 2006/08/10 Kyle Reed
Field Summary | |
---|---|
private simsa.xml.XMLParser |
ixp
|
private ModuleContainer |
moduleCtnr
|
private simsa.xml.XMLParser |
oxp
|
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 | |
---|---|
ClientContainer(java.nio.channels.SelectionKey key)
Creates a client container for an incoming connection. |
Method Summary | |
---|---|
ModuleContainer |
connectedModule()
Returns a reference to the module that this client is associated with; null if this client isn't connected to a module. |
void |
connectToModule(ModuleContainer mc)
Associates a module with this client for routing messages. |
void |
disconnectFromModule()
Removes this client from the registry of its associated modules. |
void |
handleInput()
Implements the message handling section of a client. |
void |
selfDestruct()
This function attempts to cleanly bring down a client, 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 ModuleContainer moduleCtnr
private simsa.xml.XMLParser oxp
private simsa.xml.XMLParser ixp
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 ClientContainer(java.nio.channels.SelectionKey key)
Method Detail |
---|
public void connectToModule(ModuleContainer mc)
public void disconnectFromModule()
public void handleInput()
handleInput
in class ConnectionContainer
public void selfDestruct()
selfDestruct
in class ConnectionContainer
public ModuleContainer connectedModule()
|
Ver. 20060815 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |