public interface Rebuilder
It is expected that clients of this interface will first call init, then start, then addObject (possibly a series of times), then finish.
| Modifier and Type | Method and Description |
|---|---|
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.
|
String getAction()
void setServerConfiguration(ServerConfiguration serverConfig)
void setServerDir(File serverBaseDir)
void init()
boolean shouldStopServer()
void start(Map<String,String> options) throws Exception
Exceptionvoid addObject(DigitalObject object) throws Exception
ExceptionCopyright © 2013 DuraSpace. All Rights Reserved.