Open SiteSearch 4.1.1
Final

ORG.oclc.HoldingServer
Class TransactionHandler

java.lang.Object
  |
  +--ORG.oclc.HoldingServer.TransactionHandler

public class TransactionHandler
extends Object
implements Runnable


Field Summary
protected  DataOutputStream dataOut
          Output stream for response.
protected  BerString message
          HoldingServer request.
protected  BerString response
          Holding Server response.
 
Method Summary
 void handle(BerString message)
          Handle the request.
static void initStats(IniFile ini, String host, int port)
          init should only be called once.
 void run()
          Handle the message and respond to dataOut.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

message

protected BerString message
HoldingServer request.

response

protected BerString response
Holding Server response.

dataOut

protected DataOutputStream dataOut
Output stream for response.
Method Detail

initStats

public static void initStats(IniFile ini,
                             String host,
                             int port)
init should only be called once. It sets some static variables
Parameters:
ini - configuration file
name - section name for this thread

run

public void run()
Handle the message and respond to dataOut.
Specified by:
run in interface Runnable

handle

public void handle(BerString message)
Handle the request. Invoke an action method based on the fldid of the request. Write a stats record if the stats object has been initialized.
Parameters:
message - the request
Returns:
the response

Open SiteSearch 4.1.1
Final