com.mkdoc.store
Class FileLogSubjectManager

java.lang.Object
  extended bycom.mkdoc.store.FileLogSubjectManager
All Implemented Interfaces:
Manager, SubjectManager

public class FileLogSubjectManager
extends java.lang.Object
implements SubjectManager

Generate a log of store management tasks for diagnostic analysis.

Version:
0.1 2005-03-31
Author:
Philip Shaw

Field Summary
private  java.io.PrintWriter out
          The log file output.
private static int suffix
          A number to differentiate multiple instances' file output.
 
Constructor Summary
FileLogSubjectManager()
           
 
Method Summary
 void addDocumentStatements(java.lang.String subjectUri, org.openrdf.model.Graph graph)
          Add statements about a document by subject URI.
 void initialize(net.javacoding.jspider.core.util.config.PropertySet propertySet)
          Specify the output file.
 void purgeDocumentStatements(java.lang.String subjectUri)
          Purge statements about a document by subject URI.
 void purgeSiteStatements(java.lang.String subjectUri)
          Purge statements about a site by subject URI.
 void shutdown()
          Shut down the manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

suffix

private static int suffix
A number to differentiate multiple instances' file output.

Since:
Version 0.1 2005-03-31

out

private java.io.PrintWriter out
The log file output.

Since:
Version 0.1 2005-03-31
Constructor Detail

FileLogSubjectManager

public FileLogSubjectManager()
Method Detail

initialize

public final void initialize(net.javacoding.jspider.core.util.config.PropertySet propertySet)
Specify the output file.

Specified by:
initialize in interface Manager

shutdown

public final void shutdown()
Shut down the manager.

Specified by:
shutdown in interface Manager
Since:
Version 0.1 2005-03-31

purgeDocumentStatements

public final void purgeDocumentStatements(java.lang.String subjectUri)
Purge statements about a document by subject URI.

Specified by:
purgeDocumentStatements in interface SubjectManager
Parameters:
subjectUri - The URI of the subject document to purge.
Since:
Version 0.1 2005-03-31

purgeSiteStatements

public final void purgeSiteStatements(java.lang.String subjectUri)
Purge statements about a site by subject URI.

Specified by:
purgeSiteStatements in interface SubjectManager
Parameters:
subjectUri - The URI of the subject site to purge.
Since:
Version 0.1 2005-03-31

addDocumentStatements

public void addDocumentStatements(java.lang.String subjectUri,
                                  org.openrdf.model.Graph graph)
Add statements about a document by subject URI.

Specified by:
addDocumentStatements in interface SubjectManager
Parameters:
subjectUri - The URI of the subject document to add.
graph - The RDF graph of statements about this document.