Kieker 1.3

kieker.monitoring.core.configuration
Class Configuration

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by kieker.monitoring.core.configuration.Configuration
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public final class Configuration
extends Properties

Author:
Andre van Hoorn, Jan Waller
See Also:
Serialized Form

Field Summary
static String ACTIVATE_MBEAN
           
static String ACTIVATE_MBEAN_DOMAIN
           
static String ACTIVATE_MBEAN_TYPE
           
static String AUTO_SET_LOGGINGTSTAMP
           
static String CONTROLLER_NAME
           
static String CUSTOM_PROPERTIES_LOCATION_CLASSPATH
          Location of the custom properties file (in classpath)
static String CUSTOM_PROPERTIES_LOCATION_JVM
          JVM-parameter to specify a custom properties file
static String DEFAULT_PROPERTIES_LOCATION_CLASSPATH
          Location of the default properties file (in classpath)
static String EXPERIMENT_ID
           
static String HOST_NAME
           
static String MONITORING_ENABLED
           
static String PERIODIC_SENSORS_EXECUTOR_POOL_SIZE
           
static String PREFIX
          prefix used for all kieker.monitoring components
static String TIMER_CLASSNAME
           
static String WRITER_CLASSNAME
           
 
Method Summary
static Configuration createConfigurationFromFile(String configurationFile)
          Creates a new configuration based on the given properties file with fallback on the default values.
static Configuration createDefaultConfiguration()
          Returns an empty properties map with a fallback on the default configuration.
static Configuration createSingletonConfiguration()
          Creates the configuration for the singleton controller instance.
 boolean getBooleanProperty(String key)
           
 int getIntProperty(String key)
           
 long getLongProperty(String key)
           
 Configuration getPropertiesStartingWith(String prefix)
           
 String getStringProperty(String key)
           
 void setDefaultProperties(Properties defaultProperties)
          You should know what you do if you use this method!
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PREFIX

public static final String PREFIX
prefix used for all kieker.monitoring components

See Also:
Constant Field Values

CUSTOM_PROPERTIES_LOCATION_CLASSPATH

public static final String CUSTOM_PROPERTIES_LOCATION_CLASSPATH
Location of the custom properties file (in classpath)

See Also:
Constant Field Values

DEFAULT_PROPERTIES_LOCATION_CLASSPATH

public static final String DEFAULT_PROPERTIES_LOCATION_CLASSPATH
Location of the default properties file (in classpath)

See Also:
Constant Field Values

CUSTOM_PROPERTIES_LOCATION_JVM

public static final String CUSTOM_PROPERTIES_LOCATION_JVM
JVM-parameter to specify a custom properties file

See Also:
Constant Field Values

MONITORING_ENABLED

public static final String MONITORING_ENABLED
See Also:
Constant Field Values

CONTROLLER_NAME

public static final String CONTROLLER_NAME
See Also:
Constant Field Values

HOST_NAME

public static final String HOST_NAME
See Also:
Constant Field Values

EXPERIMENT_ID

public static final String EXPERIMENT_ID
See Also:
Constant Field Values

ACTIVATE_MBEAN

public static final String ACTIVATE_MBEAN
See Also:
Constant Field Values

ACTIVATE_MBEAN_DOMAIN

public static final String ACTIVATE_MBEAN_DOMAIN
See Also:
Constant Field Values

ACTIVATE_MBEAN_TYPE

public static final String ACTIVATE_MBEAN_TYPE
See Also:
Constant Field Values

AUTO_SET_LOGGINGTSTAMP

public static final String AUTO_SET_LOGGINGTSTAMP
See Also:
Constant Field Values

WRITER_CLASSNAME

public static final String WRITER_CLASSNAME
See Also:
Constant Field Values

TIMER_CLASSNAME

public static final String TIMER_CLASSNAME
See Also:
Constant Field Values

PERIODIC_SENSORS_EXECUTOR_POOL_SIZE

public static final String PERIODIC_SENSORS_EXECUTOR_POOL_SIZE
See Also:
Constant Field Values
Method Detail

createSingletonConfiguration

public static final Configuration createSingletonConfiguration()
Creates the configuration for the singleton controller instance. Note that the Properties returned by this method are not a singleton instance, i.e., each call returns an equal but not same set of Properties.

Returns:

createDefaultConfiguration

public static final Configuration createDefaultConfiguration()
Returns an empty properties map with a fallback on the default configuration.

Returns:
default configuration

createConfigurationFromFile

public static final Configuration createConfigurationFromFile(String configurationFile)
Creates a new configuration based on the given properties file with fallback on the default values.

Parameters:
configurationFile -
Returns:

setDefaultProperties

public final void setDefaultProperties(Properties defaultProperties)
                                throws IllegalAccessException
You should know what you do if you use this method! Currently it is used for a (dirty) hack to implement writers.

Parameters:
defaultProperties -
Throws:
IllegalAccessException

getPropertiesStartingWith

public final Configuration getPropertiesStartingWith(String prefix)

getStringProperty

public final String getStringProperty(String key)

getBooleanProperty

public final boolean getBooleanProperty(String key)

getIntProperty

public final int getIntProperty(String key)

getLongProperty

public final long getLongProperty(String key)

Kieker 1.3

Copyright 2011 the Kieker Project, http://kieker.sourceforge.net