|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.griphyn.vdl.util.ChimeraProperties
public class ChimeraProperties
A Central Properties class that keeps track of all the properties used by Chimera. All other classes access the methods in this class to get the value of the property. It access the VDSProperties class to read the property file.
VDSProperties| Field Summary | |
|---|---|
static String |
DAX_SCHEMA_LOCATION
|
static String |
DB_ALL_PREFIX
|
static String |
DBDRIVER_ALL_PREFIX
|
static String |
IVR_SCHEMA_LOCATION
|
private String |
m_home
The value of the PEGASUS_HOME environment variable. |
private static ChimeraProperties |
m_instance
Implements the Singleton access. |
private VDSProperties |
m_props
The object holding all the properties pertaining to the VDS system. |
static String |
VDL_SCHEMA_LOCATION
Default values for schema locations. |
| Constructor Summary | |
|---|---|
private |
ChimeraProperties()
Constructor that is called only once, when creating the Singleton instance. |
| Method Summary | |
|---|---|
String |
getDatabaseDriverName(String dbDriverPrefix)
Gets then name of the database driver from the properties. |
Properties |
getDatabaseDriverProperties(String dbDriverPrefix)
Obtains database driver specific properties. |
String |
getDatabaseSchemaName(String dbSchemaPrefix)
Gets the name of the database schema name from the properties. |
Properties |
getDatabaseSchemaProperties(String dbSchemaPrefix)
Obtains the database schema specific properties. |
String |
getDatabaseURL(String dbDriverPrefix)
Gets the Database URL from Properties file, the URL is a contact string to the database. |
File |
getDataDir()
Accessor to $PEGASUS_HOME/share. |
String |
getDAXSchemaLocation()
Gets the location of the DAX XML schema from properties, if available. |
File |
getLocalStateDir()
Accessor to $PEGASUS_HOME/var. |
String |
getPTCSchemaLocation()
Helps the load database to locate the invocation record XML schema, if available. |
String |
getPTCSchemaName()
Obtains the fully qualified class name of the PTC-implementing database schema. |
String |
getRCLocation()
Get the rc.data file location, which is used by shell planner |
String |
getReplicaCatalogName(String dbReplicaPrefix)
Gets the name of the replica catalog implementating class from the properties. |
Properties |
getReplicaCatalogProperties(String dbReplicaPrefix)
Obtains all properties to handle the experimental replica catalog interface. |
File |
getSysConfDir()
Accessor to $PEGASUS_HOME/etc. |
String |
getTCLocation()
Get the tc.data file location, which is used by shell planner |
String |
getVDCSchemaName()
Get the fully qualified class name of the VDC-implementing database schema. |
String |
getVDLSchemaLocation()
Gets the location the VDLx XML schema from properties, if available. |
String |
getVDSHome()
Accessor: Obtains the root directory of the VDS/Chimera runtime system. |
private VDSProperties |
getVDSPropertiesInstance()
Gets the handle to the property file. |
String |
getWFSchemaName()
Obtains the fully qualified class name of the WF-implementing database schema. |
static ChimeraProperties |
instance()
To get a reference to the the object. |
Properties |
matchingSubset(String prefix)
Extracts a specific property key subset from the known properties. |
void |
setupLogging(Logging logger)
Set up logging |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String VDL_SCHEMA_LOCATION
public static final String DAX_SCHEMA_LOCATION
public static final String IVR_SCHEMA_LOCATION
public static final String DB_ALL_PREFIX
public static final String DBDRIVER_ALL_PREFIX
private static ChimeraProperties m_instance
private String m_home
private VDSProperties m_props
| Constructor Detail |
|---|
private ChimeraProperties()
throws IOException,
MissingResourceException
IOException
MissingResourceException| Method Detail |
|---|
public static ChimeraProperties instance()
throws IOException,
MissingResourceException
IOException
MissingResourceException
private VDSProperties getVDSPropertiesInstance()
throws IOException,
MissingResourceException
IOException
MissingResourceExceptionpublic void setupLogging(Logging logger)
public File getSysConfDir()
public String getVDSHome()
public File getLocalStateDir()
public File getDataDir()
public String getVDCSchemaName()
SingleFileSchemapublic String getPTCSchemaName()
null, if no
such class exists.public String getWFSchemaName()
null, if no such class
exists.public String getVDLSchemaLocation()
VDLxParser.VDLxParser( String )public String getDAXSchemaLocation()
DAXParser.DAXParser( String )public String getPTCSchemaLocation()
InvocationParser.InvocationParser( String )public String getRCLocation()
public String getTCLocation()
public String getDatabaseSchemaName(String dbSchemaPrefix)
dbSchemaPrefix - is the database schema key name in the
properties file, which happens to be the pointer to the class
to load.
public String getDatabaseDriverName(String dbDriverPrefix)
dbDriverPrefix - is the database schema key name in the
properties file, which happens to be the pointer to the class
to load.
public String getDatabaseURL(String dbDriverPrefix)
dbDriverPrefix - is the database schema key name.
null, if the
driver URL is not specified.getDatabaseDriverProperties( String )public Properties matchingSubset(String prefix)
prefix - is the key prefix to filter the properties by.
public Properties getDatabaseDriverProperties(String dbDriverPrefix)
dbDriverPrefix - is the database driver property key prefix
for which to obtain properties.
public Properties getDatabaseSchemaProperties(String dbSchemaPrefix)
dbSchemaPrefix - is the database schema key name in the
properties file
public String getReplicaCatalogName(String dbReplicaPrefix)
dbReplicaPrefix - is the replica catalog class name in the
properties file.
public Properties getReplicaCatalogProperties(String dbReplicaPrefix)
dbReplicaPrefix - is the prefix for the replica catalog's
implementation configuration.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||