|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.utilities.rebuild.SQLRebuilder
public class SQLRebuilder
A Rebuilder for the SQL database.
| Constructor Summary | |
|---|---|
SQLRebuilder()
|
|
| Method Summary | |
|---|---|
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 |
finish()
Free up any system resources associated with rebuilding. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLRebuilder()
| Method Detail |
|---|
public String getAction()
getAction in interface Rebuilderpublic boolean shouldStopServer()
shouldStopServer in interface Rebuilderpublic void setServerConfiguration(ServerConfiguration serverConfig)
setServerConfiguration in interface Rebuilderpublic void setServerDir(File serverBaseDir)
setServerDir in interface Rebuilderpublic void init()
init in interface Rebuilderpublic Map<String,String> getOptions()
getOptions in interface Rebuilder
public void start(Map<String,String> options)
throws Exception
start in interface RebuilderException
public static List<String> getExistingTables(Connection conn)
throws SQLException
SQLExceptionpublic void blankExistingTables()
public void addObject(DigitalObject obj)
addObject in interface Rebuilderpublic void finish()
finish in interface Rebuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||