public class PegasusConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONDOR_CONFIGURATION_VALUE
The value for the condor configuration.
|
static java.lang.String |
DEFAULT_DATA_CONFIGURATION_VALUE
The default data configuration value
|
static java.lang.String |
DEPRECATED_CONDOR_CONFIGURATION_VALUE
The value for the condor configuration.
|
static java.lang.String |
DEPRECATED_S3_CONFIGURATION_VALUE
The value for the S3 configuration.
|
private LogManager |
mLogger
The logger to use.
|
static java.lang.String |
NON_SHARED_FS_CONFIGURATION_VALUE
The value for the non shared filesystem configuration.
|
static java.lang.String |
PEGASUS_CONFIGURATION_PROPERTY_KEY
The property key for pegasus configuration.
|
static java.lang.String |
SHARED_FS_CONFIGURATION_VALUE
The value for the non shared filesystem configuration.
|
Constructor and Description |
---|
PegasusConfiguration(LogManager logger)
Overloaded Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkAndSetProperty(PegasusProperties properties,
java.lang.String key,
java.lang.String value)
Checks for a property, if it does not exist then sets the property to
the value passed
|
protected java.lang.String |
deprecatedValueMessage(java.lang.String property,
java.lang.String deprecatedValue,
java.lang.String updatedValue)
Returns the deperecated value message
|
java.util.Properties |
getConfigurationProperties(java.lang.String configuration)
Returns Properties corresponding to a particular configuration.
|
private void |
loadConfigurationProperties(PegasusProperties properties)
Loads configuration specific properties into PegasusProperties
|
void |
loadConfigurationPropertiesAndOptions(PegasusProperties properties,
PlannerOptions options)
Loads configuration specific properties into PegasusProperties,
and adjusts planner options accordingly.
|
boolean |
setupForCondorIO(PegasusProperties properties)
Returns a boolean indicating if properties are setup for condor io
|
void |
updateSiteStoreAndOptions(SiteStore store,
PlannerOptions options)
Updates Site Store and options based on the planner options set by the user
on the command line
|
public static final java.lang.String PEGASUS_CONFIGURATION_PROPERTY_KEY
public static final java.lang.String DEPRECATED_S3_CONFIGURATION_VALUE
public static final java.lang.String SHARED_FS_CONFIGURATION_VALUE
public static java.lang.String DEFAULT_DATA_CONFIGURATION_VALUE
public static final java.lang.String NON_SHARED_FS_CONFIGURATION_VALUE
public static final java.lang.String CONDOR_CONFIGURATION_VALUE
public static final java.lang.String DEPRECATED_CONDOR_CONFIGURATION_VALUE
private LogManager mLogger
public PegasusConfiguration(LogManager logger)
logger
- the logger to use.public void loadConfigurationPropertiesAndOptions(PegasusProperties properties, PlannerOptions options)
properties
- the Pegasus Propertiesoptions
- the PlannerOptions .public void updateSiteStoreAndOptions(SiteStore store, PlannerOptions options)
store
- the outputSite storeoptions
- the planner options.private void loadConfigurationProperties(PegasusProperties properties)
properties
- the Pegasus Properties.public java.util.Properties getConfigurationProperties(java.lang.String configuration)
configuration
- the configuration value.public boolean setupForCondorIO(PegasusProperties properties)
properties
- protected void checkAndSetProperty(PegasusProperties properties, java.lang.String key, java.lang.String value)
key
- the property keyvalue
- the value to set toprotected java.lang.String deprecatedValueMessage(java.lang.String property, java.lang.String deprecatedValue, java.lang.String updatedValue)
property
- the propertydeprecatedValue
- the deprecated valueupdatedValue
- the updated value