Open SiteSearch 4.1.1
Final

ORG.oclc.zbase.server
Class ZBaseThread

java.lang.Object
  |
  +--ORG.oclc.zbase.server.ZBaseThread
Direct Known Subclasses:
ZBaseMultiThread, ZBaseSingleThread

public abstract class ZBaseThread
extends Object
implements Runnable

ZBaseThread is the thread created by ZBase Server. It is a dummy which simply writes out a number of bytes specified on the input line


Constructor Summary
ZBaseThread()
           
 
Method Summary
abstract  void init(IniFile ini, String name, boolean verbose)
          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
 

Constructor Detail

ZBaseThread

public ZBaseThread()
Method Detail

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,
                          boolean verbose)
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 ZBaseThread and not directly. All ZBaseThreads must implement an init class.
Parameters:
ini - configuration file
name - section name for this thread
verbose - flag indicating whether config info should be dumped to the log.

Open SiteSearch 4.1.1
Final