fedora.server.resourceIndex
Class ResourceIndexRebuilder

java.lang.Object
  extended by fedora.server.resourceIndex.ResourceIndexRebuilder
All Implemented Interfaces:
Rebuilder

public class ResourceIndexRebuilder
extends java.lang.Object
implements Rebuilder

A Rebuilder for the resource index.

Version:
$Id: ResourceIndexRebuilder.java 5220 2006-11-20 13:52:20Z cwilper $

Constructor Summary
ResourceIndexRebuilder()
           
 
Method Summary
 void addObject(DigitalObject obj)
          Add the data of interest for the given object.
 void finish()
          Free up any system resources associated with rebuilding.
 java.lang.String getAction()
          Get a short phrase describing what the user can do with this rebuilder.
 java.util.Map init(java.io.File serverDir, ServerConfiguration serverConfig)
          Initialize the rebuilder, given the server configuration.
 boolean shouldStopServer()
          Returns true is the server _must_ be shut down for this rebuilder to safely operate.
 void start(java.util.Map options)
          Validate the provided options and perform any necessary startup tasks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceIndexRebuilder

public ResourceIndexRebuilder()
Method Detail

getAction

public java.lang.String getAction()
Get a short phrase describing what the user can do with this rebuilder.

Specified by:
getAction in interface Rebuilder

shouldStopServer

public boolean shouldStopServer()
Returns true is the server _must_ be shut down for this rebuilder to safely operate.

Specified by:
shouldStopServer in interface Rebuilder

init

public java.util.Map init(java.io.File serverDir,
                          ServerConfiguration serverConfig)
Initialize the rebuilder, given the server configuration.

Specified by:
init in interface Rebuilder

start

public void start(java.util.Map options)
           throws ResourceIndexException
Validate the provided options and perform any necessary startup tasks.

Specified by:
start in interface Rebuilder
Throws:
ResourceIndexException

addObject

public void addObject(DigitalObject obj)
               throws ResourceIndexException
Add the data of interest for the given object.

Specified by:
addObject in interface Rebuilder
Throws:
ResourceIndexException

finish

public void finish()
            throws java.lang.Exception
Free up any system resources associated with rebuilding.

Specified by:
finish in interface Rebuilder
Throws:
java.lang.Exception