|
2.10.1: 2009-03-24 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.clients.migrate.Manager
net.sf.basedb.clients.migrate.Migrater
public class Migrater
Migrates data from BASE 1 to BASE 2.
Field Summary | |
---|---|
(package private) Connection |
BASE2
BASE 2 connection, initiated by connect() |
(package private) Connection |
FROM
BASE 1 connection, initiated by connect() |
private static Logger |
log
The logger |
protected Properties |
migrateProperties
Holds properties defined in migrate.properties |
(package private) SessionControl |
sessionControl
BASE 2 connection, used for impersonating users |
static Set<String> |
supportedBase1Versions
|
(package private) SessionControl |
TO
BASE 2 connection, initiated by connect() |
Constructor Summary | |
---|---|
Migrater()
|
Method Summary | |
---|---|
protected void |
configure()
Loads migration properties from migration.properties file. |
protected void |
connect()
Creates connections to BASE 1 and BASE 2 Connection properties are found in the migrate.properties file which are loaded with configure(). |
private void |
createResumePoint(Transfer... transfers)
|
protected String |
getProperty(String key)
|
static void |
main(String[] args)
|
private void |
prepareStatementsFromFile()
|
private void |
removeResumePoint()
|
void |
resume()
|
void |
run()
|
private void |
startTransfer(Transfer transfer,
String property)
|
private void |
verifySchemaVersion()
|
static void |
waitForEnter()
|
Methods inherited from class net.sf.basedb.clients.migrate.Manager |
---|
getPreparedStatements, prepareStatementFromFile, print, printDate, setPreparedStatements, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Set<String> supportedBase1Versions
protected Properties migrateProperties
Connection FROM
SessionControl TO
SessionControl sessionControl
Connection BASE2
private static final Logger log
Constructor Detail |
---|
public Migrater()
Method Detail |
---|
public void run()
public void resume()
private void createResumePoint(Transfer... transfers) throws IOException
IOException
private void removeResumePoint()
private void startTransfer(Transfer transfer, String property)
protected void connect()
protected void configure()
private void prepareStatementsFromFile()
protected String getProperty(String key)
private void verifySchemaVersion()
public static void main(String[] args)
public static void waitForEnter()
|
2.10.1: 2009-03-24 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |