com.continuent.tungsten.replicator.conf
Class ReplicatorRuntimeConf

java.lang.Object
  extended by com.continuent.tungsten.replicator.conf.ReplicatorRuntimeConf

public class ReplicatorRuntimeConf
extends java.lang.Object

This class defines configuration values that are set at runtime through system properties and provides convenient access to the same.

Version:
1.0
Author:
Robert Hodges

Field Summary
static java.lang.String CLEAR_DYNAMIC_PROPERTIES
          Option to clear dynamic properties
static java.lang.String CONF_DIR
          Path to replicator conf directory
static java.lang.String HOME_DIR
          Path to replicator release
static java.lang.String LOG_DIR
          Path to replicator log directory
 
Method Summary
 boolean getClearDynamicProperties()
           
static ReplicatorRuntimeConf getConfiguration(java.lang.String serviceName)
          Returns a configured replication runtime or throws an exception if configuration fails.
 java.io.File getReplicatorConfDir()
           
 java.io.File getReplicatorDynamicProperties()
           
 java.io.File getReplicatorDynamicRole()
           
 java.io.File getReplicatorHomeDir()
           
 java.io.File getReplicatorLogDir()
           
 java.io.File getReplicatorProperties()
           
static java.io.File locateReplicatorConfDir()
          Locate and return the replicator conf director.
static java.io.File locateReplicatorHomeDir()
          Find and return the replicator home directory.
static java.io.File locateReplicatorLogDir()
          Find and return the replicator log directory.
static java.io.File locateReplicatorRoleFile(java.lang.String serviceName)
          Locate and return the replicator role file, returning null if the file configuration file does not exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HOME_DIR

public static final java.lang.String HOME_DIR
Path to replicator release

See Also:
Constant Field Values

LOG_DIR

public static final java.lang.String LOG_DIR
Path to replicator log directory

See Also:
Constant Field Values

CONF_DIR

public static final java.lang.String CONF_DIR
Path to replicator conf directory

See Also:
Constant Field Values

CLEAR_DYNAMIC_PROPERTIES

public static final java.lang.String CLEAR_DYNAMIC_PROPERTIES
Option to clear dynamic properties

See Also:
Constant Field Values
Method Detail

getConfiguration

public static ReplicatorRuntimeConf getConfiguration(java.lang.String serviceName)
Returns a configured replication runtime or throws an exception if configuration fails.


getReplicatorHomeDir

public java.io.File getReplicatorHomeDir()

getReplicatorConfDir

public java.io.File getReplicatorConfDir()

getReplicatorLogDir

public java.io.File getReplicatorLogDir()

getReplicatorProperties

public java.io.File getReplicatorProperties()

getReplicatorDynamicProperties

public java.io.File getReplicatorDynamicProperties()

getReplicatorDynamicRole

public java.io.File getReplicatorDynamicRole()

getClearDynamicProperties

public boolean getClearDynamicProperties()

locateReplicatorHomeDir

public static java.io.File locateReplicatorHomeDir()
Find and return the replicator home directory.


locateReplicatorLogDir

public static java.io.File locateReplicatorLogDir()
Find and return the replicator log directory.


locateReplicatorConfDir

public static java.io.File locateReplicatorConfDir()
Locate and return the replicator conf director.


locateReplicatorRoleFile

public static java.io.File locateReplicatorRoleFile(java.lang.String serviceName)
Locate and return the replicator role file, returning null if the file configuration file does not exist. This call avoids exceptions if the configuration directory location cannot be found.