org.fcrepo.server.utilities.rebuild
Interface Rebuilder

All Known Implementing Classes:
ResourceIndexRebuilder, SQLRebuilder

public interface Rebuilder

Interface for a class that rebuilds some aspect of the repository.

It is expected that clients of this interface will first call init, then start, then addObject (possibly a series of times), then finish.

Author:
Chris Wilper

Method Summary
 void addObject(DigitalObject object)
          Add the data of interest for the given object.
 void finish()
          Free up any system resources associated with rebuilding.
 String getAction()
          Get a short phrase describing what the user can do with this rebuilder.
 Map<String,String> getOptions()
           
 void init()
           
 void setServerConfiguration(ServerConfiguration serverConfig)
          Initialize the rebuilder, given the server configuration.
 void setServerDir(File serverBaseDir)
           
 boolean shouldStopServer()
          Returns true is the server _must_ be shut down for this rebuilder to safely operate.
 void start(Map<String,String> options)
          Validate the provided options and perform any necessary startup tasks.
 

Method Detail

getAction

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


setServerConfiguration

void setServerConfiguration(ServerConfiguration serverConfig)
Initialize the rebuilder, given the server configuration.


setServerDir

void setServerDir(File serverBaseDir)

init

void init()

getOptions

Map<String,String> getOptions()
                              throws Exception
Throws:
Exception

shouldStopServer

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


start

void start(Map<String,String> options)
           throws Exception
Validate the provided options and perform any necessary startup tasks.

Throws:
Exception

addObject

void addObject(DigitalObject object)
               throws Exception
Add the data of interest for the given object.

Throws:
Exception

finish

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

Throws:
Exception


Copyright © 2012 DuraSpace. All Rights Reserved.