ORG.oclc.zbroker
Class ZBrokerThread
java.lang.Object
|
+--ORG.oclc.zbroker.ZBrokerThread
- Direct Known Subclasses:
- ZBrokerSingleThread
- public abstract class ZBrokerThread
- extends Object
- implements Runnable
ZBrokerThread is the thread created by
ZBroker Server. It is a dummy which simply writes
out a number of bytes specified on the input line
Method Summary |
abstract void |
init(IniFile ini,
String name)
This routine is called at server creation time to get static members
initialized. |
void |
init(Socket clientSock)
|
void |
run()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ZBrokerThread
public ZBrokerThread()
init
public void init(Socket clientSock)
run
public void run()
- Specified by:
- run in interface Runnable
init
public abstract void init(IniFile ini,
String name)
- This routine is called at server creation time to get static members
initialized. init should only be called once. It sets some static variables.
It is not a static method because static methods cannot be subclassed.
init is called through ZBrokerThread and not directly. All ZBrokerThreads must
implement an init class.
- Parameters:
ini
- configuration filename
- section name for this thread