edu.isi.pegasus.planner.common
Class PegasusConfiguration

java.lang.Object
  extended by edu.isi.pegasus.planner.common.PegasusConfiguration

public class PegasusConfiguration
extends Object

A utility class that returns JAVA Properties that need to be set based on a configuration value

Version:
$Revision: 4935 $
Author:
Karan Vahi

Field Summary
static String CONDOR_CONFIGURATION_VALUE
          The value for the condor configuration.
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 Summary
PegasusConfiguration(LogManager logger)
          Overloaded Constructor
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PEGASUS_CONFIGURATION_PROPERTY_KEY

public static final String PEGASUS_CONFIGURATION_PROPERTY_KEY
The property key for pegasus configuration.

See Also:
Constant Field Values

DEPRECATED_S3_CONFIGURATION_VALUE

public static final String DEPRECATED_S3_CONFIGURATION_VALUE
The value for the S3 configuration.

See Also:
Constant Field Values

SHARED_FS_CONFIGURATION_VALUE

public static final String SHARED_FS_CONFIGURATION_VALUE
The value for the non shared filesystem configuration.

See Also:
Constant Field Values

NON_SHARED_FS_CONFIGURATION_VALUE

public static final String NON_SHARED_FS_CONFIGURATION_VALUE
The value for the non shared filesystem configuration.

See Also:
Constant Field Values

CONDOR_CONFIGURATION_VALUE

public static final String CONDOR_CONFIGURATION_VALUE
The value for the condor configuration.

See Also:
Constant Field Values

DEPRECATED_CONDOR_CONFIGURATION_VALUE

public static final String DEPRECATED_CONDOR_CONFIGURATION_VALUE
The value for the condor configuration.

See Also:
Constant Field Values

mLogger

private LogManager mLogger
The logger to use.

Constructor Detail

PegasusConfiguration

public PegasusConfiguration(LogManager logger)
Overloaded Constructor

Parameters:
logger - the logger to use.
Method Detail

loadConfigurationPropertiesAndOptions

public void loadConfigurationPropertiesAndOptions(PegasusProperties properties,
                                                  PlannerOptions options)
Loads configuration specific properties into PegasusProperties, and adjusts planner options accordingly.

Parameters:
properties - the Pegasus Properties
options - the PlannerOptions .

loadConfigurationProperties

private void loadConfigurationProperties(PegasusProperties properties)
Loads configuration specific properties into PegasusProperties

Parameters:
properties - the Pegasus Properties.

getConfigurationProperties

public Properties getConfigurationProperties(String configuration)
Returns Properties corresponding to a particular configuration.

Parameters:
configuration - the configuration value.
Returns:
Properties

checkAndSetProperty

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

Parameters:
key - the property key
value - the value to set to

deprecatedValueMessage

protected String deprecatedValueMessage(String property,
                                        String deprecatedValue,
                                        String updatedValue)
Returns the deperecated value message

Parameters:
property - the property
deprecatedValue - the deprecated value
updatedValue - the updated value
Returns:
message


Copyright © 2011 The University of Southern California. All Rights Reserved.