| Modifier and Type | Field and Description |
|---|---|
static String |
CREATE_REBUILD_STATUS |
static String |
DBSPEC_LOCATION |
static String |
UPDATE_REBUILD_STATUS |
| Constructor and Description |
|---|
SQLRebuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addObject(DigitalObject obj)
Add the data of interest for the given object.
|
void |
blankExistingTables()
Delete all rows from all Fedora-related tables (except the resource index
ones) that exist in the database.
|
void |
ensureFedoraTables() |
void |
finish()
Update the status table to indicate that we finished normally.
|
String |
getAction()
Get a short phrase describing what the user can do with this rebuilder.
|
static List<String> |
getExistingTables(Connection conn) |
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.
|
public static final String CREATE_REBUILD_STATUS
public static final String UPDATE_REBUILD_STATUS
public static final String DBSPEC_LOCATION
public String getAction()
public boolean shouldStopServer()
shouldStopServer in interface Rebuilderpublic void setServerConfiguration(ServerConfiguration serverConfig)
setServerConfiguration in interface Rebuilderpublic void setServerDir(File serverBaseDir)
setServerDir in interface Rebuilderpublic Map<String,String> getOptions()
getOptions in interface Rebuilderpublic void start(Map<String,String> options) throws Exception
public static List<String> getExistingTables(Connection conn) throws SQLException
SQLExceptionpublic void blankExistingTables()
public void ensureFedoraTables()
public void addObject(DigitalObject obj)
Copyright © 2013 DuraSpace. All Rights Reserved.