fedora.server.storage.lowlevel
Class PathRegistry

java.lang.Object
  extended by fedora.server.storage.lowlevel.PathRegistry
Direct Known Subclasses:
DBPathRegistry

public abstract class PathRegistry
extends java.lang.Object

Version:
$Id: PathRegistry.java 5218 2006-11-20 05:10:11Z cwilper $
Author:
wdn5e@virginia.edu

Field Summary
protected static int AUDIT_FILES
           
protected static int ERROR_REPORT
           
protected static int FULL_REPORT
           
protected static int NO_REPORT
           
protected static int REBUILD
           
protected  java.lang.String registryName
           
protected static int REPORT_FILES
           
protected  java.lang.String[] storeBases
           
 
Constructor Summary
PathRegistry(java.util.Map configuration)
           
 
Method Summary
abstract  void auditFiles()
           
 void auditRegistry()
           
abstract  java.lang.String get(java.lang.String pid)
           
protected  java.lang.String getRegistryName()
           
protected abstract  java.util.Enumeration keys()
           
abstract  void put(java.lang.String pid, java.lang.String path)
           
abstract  void rebuild()
           
abstract  void remove(java.lang.String pid)
           
static boolean stringNull(java.lang.String string)
           
 void traverseFiles(java.lang.String[] storeBases, int operation, boolean stopOnError, int report)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_REPORT

protected static final int NO_REPORT
See Also:
Constant Field Values

ERROR_REPORT

protected static final int ERROR_REPORT
See Also:
Constant Field Values

FULL_REPORT

protected static final int FULL_REPORT
See Also:
Constant Field Values

REPORT_FILES

protected static final int REPORT_FILES
See Also:
Constant Field Values

AUDIT_FILES

protected static final int AUDIT_FILES
See Also:
Constant Field Values

REBUILD

protected static final int REBUILD
See Also:
Constant Field Values

registryName

protected final java.lang.String registryName

storeBases

protected final java.lang.String[] storeBases
Constructor Detail

PathRegistry

public PathRegistry(java.util.Map configuration)
Method Detail

get

public abstract java.lang.String get(java.lang.String pid)
                              throws LowlevelStorageException
Throws:
LowlevelStorageException

put

public abstract void put(java.lang.String pid,
                         java.lang.String path)
                  throws LowlevelStorageException
Throws:
LowlevelStorageException

remove

public abstract void remove(java.lang.String pid)
                     throws LowlevelStorageException
Throws:
LowlevelStorageException

rebuild

public abstract void rebuild()
                      throws LowlevelStorageException
Throws:
LowlevelStorageException

auditFiles

public abstract void auditFiles()
                         throws LowlevelStorageException
Throws:
LowlevelStorageException

auditRegistry

public void auditRegistry()
                   throws LowlevelStorageException
Throws:
LowlevelStorageException

getRegistryName

protected final java.lang.String getRegistryName()

stringNull

public static final boolean stringNull(java.lang.String string)

traverseFiles

public void traverseFiles(java.lang.String[] storeBases,
                          int operation,
                          boolean stopOnError,
                          int report)
                   throws LowlevelStorageException
Throws:
LowlevelStorageException

keys

protected abstract java.util.Enumeration keys()
                                       throws LowlevelStorageException,
                                              LowlevelStorageInconsistencyException
Throws:
LowlevelStorageException
LowlevelStorageInconsistencyException