|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfedora.server.storage.FastDOReader
fedora.server.storage.FastBmechReader
public class FastBmechReader
Title: FastBmechReader.java
Description: BMECH Object Reader that accesses objects located in the "Fast" storage area. It mirros the functionality of SimpleBMechReader for the "Definitive" storage aread. To enhance performance of disseminations, there are two distinct storage areas for digital objects:
This reader is designed to read bmech objects from the "Fast" storage area
that is implemented as a relational database. If the object cannot be found
in the relational database, this reader will attempt to read the object
from the Definitive storage area using the appropriate definitive reader.
When the object exists in both storage areas, preference is given to the
Fast storage area since this reader is designed to read primarily from the
Fast Storage area. A SimpleBMechReader should always be used to
read the authoritative version of a bmech object.
Note that versioning is not implemented in Phase 1. Methods in
FastBmechReader that contain arguments related to versioning
date such as versDateTime or asOfDate will be
ignored in Phase 1.
| Field Summary |
|---|
| Fields inherited from class fedora.server.storage.FastDOReader |
|---|
connectionPool, definitiveDOReader, doLabel, fedoraServerHost, fedoraServerPort, isFoundInDefinitiveStore, isFoundInFastStore, m_context, m_manager, PID, s_server |
| Constructor Summary | |
|---|---|
FastBmechReader(Context context,
java.lang.String objectPID)
Constructs an instance of FastBmechReader. |
|
| Method Summary | |
|---|---|
BMechDSBindSpec |
getServiceDSInputSpec(java.util.Date versDateTime)
|
MethodDefOperationBind[] |
getServiceMethodBindings(java.util.Date versDateTime)
|
MethodParmDef[] |
getServiceMethodParms(java.lang.String methodName,
java.util.Date versDateTime)
Gets default mechanism method parameters associated with the specified method name. |
MethodDef[] |
getServiceMethods(java.util.Date versDateTime)
Gets all method defintiions associated with the specified Behavior Mechanism. |
java.io.InputStream |
getServiceMethodsXML(java.util.Date versDateTime)
Gets XML containing method definitions. |
java.lang.String |
locateBmechPID(java.lang.String bMechPID)
Locates the specified bmech object using its persistent identifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fedora.server.storage.DOReader |
|---|
ExportObject, getAuditRecords, GetBehaviorDefs, getContentModelId, getCreateDate, GetDatastream, getDatastream, GetDatastreams, getDatastreamVersions, getDisseminationBindingInfo, GetDisseminator, GetDisseminators, getDisseminatorVersions, GetDSBindingMaps, getFedoraObjectType, getLastModDate, getObjectHistory, GetObjectLabel, getObjectMethodParms, GetObjectPID, GetObjectState, GetObjectXML, getOwnerId, ListDatastreamIDs, ListDisseminatorIDs, listMethods, listMethods |
| Constructor Detail |
|---|
public FastBmechReader(Context context,
java.lang.String objectPID)
throws ServerException
Constructs an instance of FastBmechReader.
Constructs a new FastBmechReader for the specified bmech
object. If the object is found, this constructor initializes the class
variables for bMechPID and bMechLabel.
context - The context of this request.objectPID - The persistent identifier of the bmech object.
ServerException - If any type of error occurred fulfilling the
request.| Method Detail |
|---|
public MethodParmDef[] getServiceMethodParms(java.lang.String methodName,
java.util.Date versDateTime)
throws GeneralException
Gets default mechanism method parameters associated with the specified method name. Default method parameters are defined by the Behavior Mechanism object as mechanism default parameters and cannot be altered by the user.
getServiceMethodParms in interface BMechReadermethodName - The name of the method.versDateTime - The versioning datetime stamp.
GeneralException - If there was any misc exception that we want to
catch and re-throw as a Fedora exception. Extends ServerException.
public MethodDef[] getServiceMethods(java.util.Date versDateTime)
throws ServerException
Gets all method defintiions associated with the specified Behavior Mechanism. Note the PID of the associated Behavior Mechanism object is determined via reflection based on the specified PID of the digital object and the PID of its Behavior Definition object. This method retrieves the list of available methods based on the assocaited Behavior Mechanism object and NOT the Behavior Definition object. This is done to insure that only methods that have been implemented in the mechanism are returned. This distinction is only important when versioning is enabled in a later release. When versioning is enabled, it is possible that a versioned Behavior Definition may have methods that have not yet been implemented by all of its associated Behavior Mechanisms. In such a case, only those methods implemented in the mechanism will be returned.
getServiceMethods in interface BMechReaderversDateTime - The versioning datetime stamp.
ServerException - If there was any misc exception that we want to
catch and re-throw as a Fedora exception. Extends ServerException.
public MethodDefOperationBind[] getServiceMethodBindings(java.util.Date versDateTime)
throws ServerException
getServiceMethodBindings in interface BMechReaderServerException
public java.io.InputStream getServiceMethodsXML(java.util.Date versDateTime)
throws ServerException
Gets XML containing method definitions. Since the XML representation
of digital objects is not stored in the Fast storage area, this method
uses a BMechReader to query the Definitive
storage area.
getServiceMethodsXML in interface BMechReaderversDateTime - The versioning datetime stamp.
ServerException - If any type of error occurred fulfilling the
request.
public BMechDSBindSpec getServiceDSInputSpec(java.util.Date versDateTime)
throws ServerException
getServiceDSInputSpec in interface BMechReaderServerException
public java.lang.String locateBmechPID(java.lang.String bMechPID)
throws GeneralException,
ServerException
Locates the specified bmech object using its persistent identifier.
This method will first attempt to locate the object in the Fast storage
area. If the the object cannot be located there, it will then try to find
it in the Definitive storage area. If the object is found, the object's
label is returned. Otherwise, it throws
GeneralException.
bMechPID - persistent identifier of the digital object.
GeneralException - If there was any misc exception that we want to
catch and re-throw as a Fedora exception. Extends ServerException.
ServerException - If any type of error occurred fulfilling the
request.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||