com.continuent.tungsten.common.config.cluster
Class DataServicesConfiguration

java.lang.Object
  extended by com.continuent.tungsten.common.config.cluster.ClusterConfiguration
      extended by com.continuent.tungsten.common.config.cluster.DataServicesConfiguration

public class DataServicesConfiguration
extends ClusterConfiguration

Provides the location as an IP addresses or host names of managers in charge of each data services available in the cluster

Version:
1.0
Author:
Gilles Rayrat

Field Summary
 
Fields inherited from class com.continuent.tungsten.common.config.cluster.ClusterConfiguration
clusterHomeName, props
 
Method Summary
 void addDataService(java.lang.String dataServiceName, java.util.List<java.lang.String> managerList)
           
 java.lang.String getConfigFileNameInUse()
          Returns the full path of the data services configuration file.
static DataServicesConfiguration getInstance()
           
static java.util.Map<java.lang.String,java.util.List<java.lang.String>> getPhyicalDataServiceManagersList()
           
static boolean isPhysicalDataService(java.lang.String ds)
          If the given data source name appears in our list of composite data sources, it means that it is a composite data source
 void store()
           
 
Methods inherited from class com.continuent.tungsten.common.config.cluster.ClusterConfiguration
applyProperties, createClusterConfigRootDirs, createConfigDirs, createDataServicesConfiguration, createDefaultConfiguration, createPolicyManagerConfiguration, createRouterConfiguration, delete, deleteResourceConfig, delFile, getClusterConfigDirName, getClusterConfigRootDirName, getClusterHome, getClusterName, getDir, getGlobalConfigDirName, getModulePropertiesFileName, getProps, getResourceConfigDirName, load, loadClusterConfiguration, loadConfiguration, setClusterHome, setClusterName, store, store, storeResourceConfig, storeResourcesConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DataServicesConfiguration getInstance()
                                             throws ConfigurationException
Throws:
ConfigurationException

addDataService

public void addDataService(java.lang.String dataServiceName,
                           java.util.List<java.lang.String> managerList)
                    throws ConfigurationException
Throws:
ConfigurationException

store

public void store()
           throws ConfigurationException
Throws:
ConfigurationException

getPhyicalDataServiceManagersList

public static java.util.Map<java.lang.String,java.util.List<java.lang.String>> getPhyicalDataServiceManagersList()

isPhysicalDataService

public static boolean isPhysicalDataService(java.lang.String ds)
If the given data source name appears in our list of composite data sources, it means that it is a composite data source

Parameters:
ds - name of the data source for which to determine origin
Returns:
true if the given name is a composite data source

getConfigFileNameInUse

public java.lang.String getConfigFileNameInUse()
Returns the full path of the data services configuration file.

Overrides:
getConfigFileNameInUse in class ClusterConfiguration