org.jafer.zserver
Class ZServer
java.lang.Object
|
+--java.lang.Thread
|
+--org.jafer.zserver.ZServerThread
|
+--org.jafer.zserver.ZServer
- All Implemented Interfaces:
- java.lang.Runnable, java.io.Serializable
- public class ZServer
- extends ZServerThread
- implements java.io.Serializable
Creates serverSocket and waits for connections.
Each new connection is handled by a socket associated with a session in a new thread
- Version:
- 1.0
- Author:
- Antony Corfield; Matthew Dovey; Colin Tatham
- See Also:
- Serialized Form
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Methods inherited from class org.jafer.zserver.ZServerThread |
getActiveThreads, getId, getNumberOfActiveThreads, getStartTime, getState, getThreads, getUpTime, halt, hasThreads, isStopped, isStopping, purgeThreads, setStartTime, setStopped, setStopping, setThreadName, setThreads, startThread |
| 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, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
sessionTimeout
private int sessionTimeout
bindingPort
private int bindingPort
serverSocket
private java.net.ServerSocket serverSocket
databeanFactory
private DatabeanFactory databeanFactory
authenticate
private Authenticate authenticate
bindingAddress
private java.lang.String bindingAddress
thread
private java.lang.Thread thread
ZServer
public ZServer()
start
public void start()
- Overrides:
start in class java.lang.Thread
run
public void run()
- Specified by:
run in interface java.lang.Runnable- Overrides:
run in class java.lang.Thread
close
public void close()
- Overrides:
close in class ZServerThread
writeObject
private void writeObject(java.io.ObjectOutputStream oos)
throws java.io.IOException
java.io.IOException
readObject
private void readObject(java.io.ObjectInputStream ois)
throws java.lang.ClassNotFoundException,
java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
setDatabeanFactory
public void setDatabeanFactory(DatabeanFactory databeanFactory)
getDatabeanFactory
public DatabeanFactory getDatabeanFactory()
setAuthenticate
public void setAuthenticate(Authenticate authenticate)
getAuthenticate
public Authenticate getAuthenticate()
setBindingAddress
public void setBindingAddress(java.lang.String bindingAddress)
getBindingAddress
public java.lang.String getBindingAddress()
setBindingPort
public void setBindingPort(int bindingPort)
getBindingPort
public int getBindingPort()
setSessionTimeout
public void setSessionTimeout(int sessionTimeout)
getSessionTimeout
public int getSessionTimeout()