org.jafer.zserver.operations
Class Search

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.jafer.zserver.ZServerThread
              |
              +--org.jafer.zserver.operations.Operation
                    |
                    +--org.jafer.zserver.operations.Search
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable

public class Search
extends Operation

Runs a Z39.50 search on database(s) - resultSets stored in associated Session. Uses locking on resultSets (databeans) if client has requested concurrent operations.

Version:
1.0
Author:
Antony Corfield; Matthew Dovey; Colin Tatham
See Also:
Serialized Form

Field Summary
private  z3950.v3.PDU pduRequest
           
private  z3950.v3.PDU pduResponse
           
 
Fields inherited from class org.jafer.zserver.operations.Operation
BIB1_DIAGNOSTIC_OID
 
Fields inherited from class org.jafer.zserver.ZServerThread
logger, STATE_RUNNING, STATE_STOPPED, STATE_STOPPING
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Search(Session session, z3950.v3.PDU pduRequest)
           
 
Method Summary
private  Search getDatabean(java.lang.String resultSetName)
           
 z3950.v3.PDU getDiagnostic(int condition, java.lang.String addInfo)
           
 z3950.v3.PDU runOp()
           
private  int search(z3950.v3.RPNQuery rpnQuery, java.lang.String[] databases, java.lang.String resultSetName)
           
 
Methods inherited from class org.jafer.zserver.operations.Operation
close, getDiagnostic, getDiagnostic, getDiagnostic, getSession, run, start
 
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
 

Field Detail

pduRequest

private z3950.v3.PDU pduRequest

pduResponse

private z3950.v3.PDU pduResponse
Constructor Detail

Search

public Search(Session session,
              z3950.v3.PDU pduRequest)
Method Detail

runOp

public z3950.v3.PDU runOp()
                   throws java.lang.Exception
Specified by:
runOp in class Operation
java.lang.Exception

search

private int search(z3950.v3.RPNQuery rpnQuery,
                   java.lang.String[] databases,
                   java.lang.String resultSetName)
            throws OperationException
OperationException

getDatabean

private Search getDatabean(java.lang.String resultSetName)
                    throws java.lang.Exception
java.lang.Exception

getDiagnostic

public z3950.v3.PDU getDiagnostic(int condition,
                                  java.lang.String addInfo)