|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.loader.LoaderCtrl
public class LoaderCtrl
| Field Summary | |
|---|---|
protected static ArgvIterator |
argvIterator
|
protected java.lang.String |
configFile
|
protected static java.lang.String |
defaultConfigPath
Default path to replicator.properties if user not specified other. |
protected TungstenProperties |
loaderProperties
|
| Constructor Summary | |
|---|---|
LoaderCtrl(java.lang.String configFile,
TungstenProperties loaderProperties)
Creates a new THLManagerCtrl object. |
|
| Method Summary | |
|---|---|
protected TungstenProperties |
buildLoaderConfig()
|
protected static void |
fail()
Exit with a process failure code. |
protected static void |
fatal(java.lang.String msg,
java.lang.Throwable t)
Abort following a fatal error. |
void |
loadEvents()
|
static void |
main(java.lang.String[] argv)
Read command line arguments in run the Loader process |
void |
prepare()
Connect to the underlying database containing THL. |
protected static void |
print(java.lang.String msg)
Print a message to stdout without trailing new line character. |
protected static void |
println(java.lang.String msg)
Print a message to stdout with trailing new line character. |
protected TungstenProperties |
readConfig()
Reads the replicator.properties. |
void |
release()
Disconnect from the THL database. |
protected static void |
succeed()
Exit with a process success code. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String defaultConfigPath
protected static ArgvIterator argvIterator
protected java.lang.String configFile
protected TungstenProperties loaderProperties
| Constructor Detail |
|---|
public LoaderCtrl(java.lang.String configFile,
TungstenProperties loaderProperties)
throws java.lang.Exception
THLManagerCtrl object.
configFile - Path to the Tungsten properties file.
java.lang.Exception| Method Detail |
|---|
protected TungstenProperties readConfig()
throws java.lang.Exception
java.lang.Exceptionpublic static void main(java.lang.String[] argv)
argv -
public void prepare()
throws ReplicatorException,
java.lang.InterruptedException
ReplicatorException
java.lang.InterruptedExceptionpublic void release()
protected TungstenProperties buildLoaderConfig()
throws java.lang.Exception
java.lang.Exception
public void loadEvents()
throws java.lang.Exception
java.lang.Exceptionprotected static void println(java.lang.String msg)
msg - protected static void print(java.lang.String msg)
msg -
protected static void fatal(java.lang.String msg,
java.lang.Throwable t)
msg - t - protected static void fail()
protected static void succeed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||