|
||||||||||
| 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.FastBdefReader
public class FastBdefReader
Title: FastBdefReader.java
Description: BDEF Object Reader that accesses objects located in the "Fast" storage area. It mirrors the functionality of SimpleBDefReader for the "Definitive" storage area. To enhance performance of disseminations, there are two distinct storage areas for digital objects:
This reader is designed to read bdef 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 SimpleBDefReader should always be used to
read the authoritative version of a bdef object.
Note that versioning is not implemented in Phase 1. Methods in
FastBdefReader 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 | |
|---|---|
FastBdefReader(Context context,
java.lang.String objectPID)
Constructs an instance of FastBdefReader. |
|
| Method Summary | |
|---|---|
MethodParmDef[] |
getAbstractMethodParms(java.lang.String methodName,
java.util.Date versDateTime)
Gets user method parameters associated with the specified method name. |
MethodDef[] |
getAbstractMethods(java.util.Date versDateTime)
This method retrieves the list of available methods based on Behavior Definition object. |
java.io.InputStream |
getAbstractMethodsXML(java.util.Date versDateTime)
Gets XML containing method definitions. |
java.lang.String |
locateBdefPID(java.lang.String bDefPID)
Locates the specified bdef 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 FastBdefReader(Context context,
java.lang.String objectPID)
throws ServerException
Constructs an instance of FastBdefReader.
Constructs a new FastBdefReader for the specified bdef
object. If the object is found, this constructor initializes the class
variables for bDefPID and bDefLabel.
context - The context of this request.objectPID - The persistent identifier of the bdef object.
ServerException - If any type of error occurred fulfilling the
request.| Method Detail |
|---|
public MethodDef[] getAbstractMethods(java.util.Date versDateTime)
throws ServerException
This method retrieves the list of available methods based on Behavior Definition object.
getAbstractMethods in interface BDefReaderversDateTime - The versioning datetime stamp.
ServerException - If any type of error occurred fulfilling the
request.
public java.io.InputStream getAbstractMethodsXML(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 BDefReader to query the Definitive
storage area.
getAbstractMethodsXML in interface BDefReaderversDateTime - The versioning datetime stamp.
ServerException - If any type of error occurred fulfilling the
request.
public MethodParmDef[] getAbstractMethodParms(java.lang.String methodName,
java.util.Date versDateTime)
throws GeneralException
Gets user method parameters associated with the specified method name.
methodName - 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 java.lang.String locateBdefPID(java.lang.String bDefPID)
throws GeneralException,
ServerException
Locates the specified bdef 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.
bDefPID - 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 | |||||||||