org.jafer.zserver.operations
Class Present

java.lang.Object
  extended by java.lang.Thread
      extended by org.jafer.zserver.ZServerThread
          extended by org.jafer.zserver.operations.Operation
              extended by org.jafer.zserver.operations.Present
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable

public class Present
extends Operation

Runs a Z39.50 Present on requested resultSet 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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  z3950.v3.PDU pduRequest
           
private  z3950.v3.PDU pduResponse
           
private static RecordFactory recordFactory
           
 
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
Present(Session session, z3950.v3.PDU pduRequest)
           
 
Method Summary
private  Present getDatabean(java.lang.String resultSetName)
           
 z3950.v3.PDU getDiagnostic(int condition, java.lang.String addInfo)
           
 z3950.v3.PDU Present(int start, int total, int[] syntax)
           
 z3950.v3.PDU runOp()
           
 
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, getNumberOfActiveThreads, getServerThreadId, getServerThreadState, getStartTime, 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, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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

recordFactory

private static RecordFactory recordFactory

pduRequest

private z3950.v3.PDU pduRequest

pduResponse

private z3950.v3.PDU pduResponse
Constructor Detail

Present

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

runOp

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

Present

public z3950.v3.PDU Present(int start,
                            int total,
                            int[] syntax)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getDatabean

private Present getDatabean(java.lang.String resultSetName)
                     throws OperationException
Throws:
OperationException

getDiagnostic

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