|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.journal.JournalConsumer
public class JournalConsumer
The JournalWorker class to use in recovery mode or in* following mode.
Create a JournalConsumerThread to process the journal. If any
calls to Management methods come in from outside, reject them.
| Constructor Summary | |
|---|---|
JournalConsumer(Map<String,String> parameters,
String role,
ServerInterface server)
Get the appropriate JournalReader and JournalRecoveryLog, based on the server parameters, and create a JournalConsumerThread that will process the journal entries, using that reader and that logger. |
|
| Method Summary | |
|---|---|
String |
addDatastream(Context context,
String pid,
String dsID,
String[] altIDs,
String dsLabel,
boolean versionable,
String MIMEType,
String formatURI,
String location,
String controlGroup,
String dsState,
String checksumType,
String checksum,
String logMessage)
Reject API calls from outside while we are in recovery mode. |
boolean |
addRelationship(Context context,
String pid,
String relationship,
String objURI,
boolean isLiteral,
String datatype)
Reject API calls from outside while we are in recovery mode. |
String |
compareDatastreamChecksum(Context context,
String pid,
String dsID,
Date versionDate)
Read-only method: pass the call to the ManagementDelegate. |
InputStream |
export(Context context,
String pid,
String format,
String exportContext,
String encoding)
Read-only method: pass the call to the ManagementDelegate. |
Datastream |
getDatastream(Context context,
String pid,
String datastreamID,
Date asOfDateTime)
Read-only method: pass the call to the ManagementDelegate. |
Datastream[] |
getDatastreamHistory(Context context,
String pid,
String datastreamID)
Read-only method: pass the call to the ManagementDelegate. |
Datastream[] |
getDatastreams(Context context,
String pid,
Date asOfDateTime,
String dsState)
Read-only method: pass the call to the ManagementDelegate. |
String[] |
getNextPID(Context context,
int numPIDs,
String namespace)
Reject API calls from outside while we are in recovery mode. |
InputStream |
getObjectXML(Context context,
String pid,
String encoding)
Read-only method: pass the call to the ManagementDelegate. |
RelationshipTuple[] |
getRelationships(Context context,
String pid,
String relationship)
Read-only method: pass the call to the ManagementDelegate. |
InputStream |
getTempStream(String id)
Delegate to the ManagementDelegate. |
String |
ingest(Context context,
InputStream serialization,
String logMessage,
String format,
String encoding,
String pid)
Reject API calls from outside while we are in recovery mode. |
Date |
modifyDatastreamByReference(Context context,
String pid,
String datastreamID,
String[] altIDs,
String dsLabel,
String mimeType,
String formatURI,
String dsLocation,
String checksumType,
String checksum,
String logMessage,
Date lastModifiedDate)
Reject API calls from outside while we are in recovery mode. |
Date |
modifyDatastreamByValue(Context context,
String pid,
String datastreamID,
String[] altIDs,
String dsLabel,
String mimeType,
String formatURI,
InputStream dsContent,
String checksumType,
String checksum,
String logMessage,
Date lastModifiedDate)
Reject API calls from outside while we are in recovery mode. |
Date |
modifyObject(Context context,
String pid,
String state,
String label,
String ownerId,
String logMessage,
Date lastModifiedDate)
Reject API calls from outside while we are in recovery mode. |
Date[] |
purgeDatastream(Context context,
String pid,
String datastreamID,
Date startDT,
Date endDT,
String logMessage)
Reject API calls from outside while we are in recovery mode. |
Date |
purgeObject(Context context,
String pid,
String logMessage)
Reject API calls from outside while we are in recovery mode. |
boolean |
purgeRelationship(Context context,
String pid,
String relationship,
String objURI,
boolean isLiteral,
String datatype)
Reject API calls from outside while we are in recovery mode. |
String |
putTempStream(Context context,
InputStream in)
Reject API calls from outside while we are in recovery mode. |
Date |
setDatastreamState(Context context,
String pid,
String dsID,
String dsState,
String logMessage)
Reject API calls from outside while we are in recovery mode. |
Date |
setDatastreamVersionable(Context context,
String pid,
String dsID,
boolean versionable,
String logMessage)
Reject API calls from outside while we are in recovery mode. |
Date |
setDisseminatorState(Context context,
String pid,
String dsID,
String dsState,
String logMessage)
Reject API calls from outside while we are in recovery mode. |
void |
setManagementDelegate(ManagementDelegate delegate)
Get the ManagementDelegate module and pass it to the JournalConsumerThread, so it can start working. |
void |
shutdown()
Tell the thread, the reader and the log to shut down. |
Validation |
validate(Context context,
String pid,
Date asOfDateTime)
Reject API calls from outside while we are in recovery mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JournalConsumer(Map<String,String> parameters,
String role,
ServerInterface server)
throws ModuleInitializationException
ModuleInitializationException| Method Detail |
|---|
public void setManagementDelegate(ManagementDelegate delegate)
setManagementDelegate in interface JournalWorker
public void shutdown()
throws ModuleShutdownException
shutdown in interface JournalWorkerModuleShutdownException
public String ingest(Context context,
InputStream serialization,
String logMessage,
String format,
String encoding,
String pid)
throws ServerException
ingest in interface ManagementServerException
public Date modifyObject(Context context,
String pid,
String state,
String label,
String ownerId,
String logMessage,
Date lastModifiedDate)
throws ServerException
modifyObject in interface ManagementServerException
public Date purgeObject(Context context,
String pid,
String logMessage)
throws ServerException
purgeObject in interface ManagementServerException
public String addDatastream(Context context,
String pid,
String dsID,
String[] altIDs,
String dsLabel,
boolean versionable,
String MIMEType,
String formatURI,
String location,
String controlGroup,
String dsState,
String checksumType,
String checksum,
String logMessage)
throws ServerException
addDatastream in interface ManagementServerException
public Date modifyDatastreamByReference(Context context,
String pid,
String datastreamID,
String[] altIDs,
String dsLabel,
String mimeType,
String formatURI,
String dsLocation,
String checksumType,
String checksum,
String logMessage,
Date lastModifiedDate)
throws ServerException
modifyDatastreamByReference in interface ManagementServerException
public Date modifyDatastreamByValue(Context context,
String pid,
String datastreamID,
String[] altIDs,
String dsLabel,
String mimeType,
String formatURI,
InputStream dsContent,
String checksumType,
String checksum,
String logMessage,
Date lastModifiedDate)
throws ServerException
modifyDatastreamByValue in interface ManagementServerException
public Date[] purgeDatastream(Context context,
String pid,
String datastreamID,
Date startDT,
Date endDT,
String logMessage)
throws ServerException
purgeDatastream in interface ManagementServerException
public String putTempStream(Context context,
InputStream in)
throws ServerException
putTempStream in interface ManagementServerException
public Date setDatastreamState(Context context,
String pid,
String dsID,
String dsState,
String logMessage)
throws ServerException
setDatastreamState in interface ManagementServerException
public Date setDatastreamVersionable(Context context,
String pid,
String dsID,
boolean versionable,
String logMessage)
throws ServerException
setDatastreamVersionable in interface ManagementServerException
public Date setDisseminatorState(Context context,
String pid,
String dsID,
String dsState,
String logMessage)
throws ServerException
ServerException
public String[] getNextPID(Context context,
int numPIDs,
String namespace)
throws ServerException
getNextPID in interface ManagementServerException
public boolean addRelationship(Context context,
String pid,
String relationship,
String objURI,
boolean isLiteral,
String datatype)
throws ServerException
addRelationship in interface ManagementServerException
public boolean purgeRelationship(Context context,
String pid,
String relationship,
String objURI,
boolean isLiteral,
String datatype)
throws ServerException
purgeRelationship in interface ManagementServerException
public Validation validate(Context context,
String pid,
Date asOfDateTime)
throws ServerException
validate in interface ManagementServerException
public String compareDatastreamChecksum(Context context,
String pid,
String dsID,
Date versionDate)
throws ServerException
ManagementDelegate.
compareDatastreamChecksum in interface ManagementServerException
public InputStream export(Context context,
String pid,
String format,
String exportContext,
String encoding)
throws ServerException
ManagementDelegate.
export in interface ManagementServerException
public InputStream getObjectXML(Context context,
String pid,
String encoding)
throws ServerException
ManagementDelegate.
getObjectXML in interface ManagementServerException
public Datastream getDatastream(Context context,
String pid,
String datastreamID,
Date asOfDateTime)
throws ServerException
ManagementDelegate.
getDatastream in interface ManagementServerException
public Datastream[] getDatastreams(Context context,
String pid,
Date asOfDateTime,
String dsState)
throws ServerException
ManagementDelegate.
getDatastreams in interface ManagementServerException
public Datastream[] getDatastreamHistory(Context context,
String pid,
String datastreamID)
throws ServerException
ManagementDelegate.
getDatastreamHistory in interface ManagementServerException
public RelationshipTuple[] getRelationships(Context context,
String pid,
String relationship)
throws ServerException
ManagementDelegate.
getRelationships in interface ManagementServerException
public InputStream getTempStream(String id)
throws ServerException
getTempStream in interface ManagementServerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||