org.fcrepo.server.storage.lowlevel
Class PathRegistry

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

public abstract class PathRegistry
extends Object

Author:
Bill Niebel

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  String registryName
           
protected static int REPORT_FILES
           
protected  String[] storeBases
           
 
Constructor Summary
PathRegistry(Map<String,?> configuration)
           
 
Method Summary
abstract  void auditFiles()
           
 void auditRegistry()
           
abstract  String get(String pid)
           
protected  String getRegistryName()
           
protected abstract  Enumeration<String> keys()
           
abstract  void put(String pid, String path)
           
abstract  void rebuild()
           
abstract  void remove(String pid)
           
static boolean stringNull(String string)
           
 void traverseFiles(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 String registryName

storeBases

protected final String[] storeBases
Constructor Detail

PathRegistry

public PathRegistry(Map<String,?> configuration)
Method Detail

get

public abstract String get(String pid)
                    throws LowlevelStorageException
Throws:
LowlevelStorageException

put

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

remove

public abstract void remove(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 String getRegistryName()

stringNull

public static final boolean stringNull(String string)

traverseFiles

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

keys

protected abstract Enumeration<String> keys()
                                     throws LowlevelStorageException,
                                            LowlevelStorageInconsistencyException
Throws:
LowlevelStorageException
LowlevelStorageInconsistencyException


Copyright © 2012 DuraSpace. All Rights Reserved.