public class PegasusConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONDOR_CONFIGURATION_VALUE
The value for the condor configuration.
|
static String |
DEFAULT_DATA_CONFIGURATION_VALUE
The default data configuration value
|
static String |
DEPRECATED_CONDOR_CONFIGURATION_VALUE
The value for the condor configuration.
|
static String |
DEPRECATED_S3_CONFIGURATION_VALUE
The value for the S3 configuration.
|
private LogManager |
mLogger
The logger to use.
|
static String |
NON_SHARED_FS_CONFIGURATION_VALUE
The value for the non shared filesystem configuration.
|
static String |
PEGASUS_CONFIGURATION_PROPERTY_KEY
The property key for pegasus configuration.
|
static 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,
String key,
String value)
Checks for a property, if it does not exist then sets the property to
the value passed
|
protected String |
deprecatedValueMessage(String property,
String deprecatedValue,
String updatedValue)
Returns the deperecated value message
|
Properties |
getConfigurationProperties(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 String PEGASUS_CONFIGURATION_PROPERTY_KEY
public static final String DEPRECATED_S3_CONFIGURATION_VALUE
public static final String SHARED_FS_CONFIGURATION_VALUE
public static String DEFAULT_DATA_CONFIGURATION_VALUE
public static final String NON_SHARED_FS_CONFIGURATION_VALUE
public static final String CONDOR_CONFIGURATION_VALUE
public static final 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 Properties getConfigurationProperties(String configuration)
configuration
- the configuration value.public boolean setupForCondorIO(PegasusProperties properties)
properties
- protected void checkAndSetProperty(PegasusProperties properties, String key, String value)
key
- the property keyvalue
- the value to set to