|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--webtester.packages.distributed.distServer
The server component for the distributed GUI.
Field Summary | |
private java.net.ServerSocket |
acceptor
The server socket instance that accepts new connections. |
private boolean |
bConfigLoaded
Indicates whether a configuration file is loaded. |
private boolean |
bMaster
Indicates if this is a master server or not. |
private java.lang.String |
sConfigFile
Configuration file that was loaded. |
private javax.swing.JTextArea |
text
TextArea used to show info to user. |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
distServer(int iPort)
The constructor, which requires the port number as an argument. |
Method Summary | |
private void |
processClientRequest(java.net.Socket client)
Passes the client socket to the proper handler |
void |
run()
The main entry point into this class, executed by the calling thread. |
void |
setConfigFile(java.lang.String sStr)
Set the name of the config file that was loaded. |
void |
setConfigLoaded(boolean bVal)
|
void |
setMaster(boolean bVal)
Set the value which indicates if this is a master server. |
void |
setTextArea(javax.swing.JTextArea jtext)
Set the textarea used to display info to user. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.net.ServerSocket acceptor
private boolean bMaster
private boolean bConfigLoaded
private java.lang.String sConfigFile
private javax.swing.JTextArea text
Constructor Detail |
public distServer(int iPort)
iPort
- the port number on which the server should listenMethod Detail |
public void setMaster(boolean bVal)
bVal
- indicates whether this is a master serverpublic void setTextArea(javax.swing.JTextArea jtext)
jtext
- the textareapublic void setConfigLoaded(boolean bVal)
public void setConfigFile(java.lang.String sStr)
sStr
- the config file that was loadedprivate void processClientRequest(java.net.Socket client)
client
- the incoming client socketpublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |