org.rhq.core.domain.common.composite
Class SystemSettings

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<SystemSetting,String>
          extended by org.rhq.core.domain.common.composite.SystemSettings
All Implemented Interfaces:
Serializable, Cloneable, Map<SystemSetting,String>

public class SystemSettings
extends HashMap<SystemSetting,String>
implements Serializable

This class represents the system settings of the RHQ server. Whenever a new property is added, it must be reflected by a property in this map (and therefore defined in the SystemSetting enum).

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
SystemSettings()
           
SystemSettings(SystemSettings original)
          A copy-constructor, because GWT doesn't support Cloneable.
 
Method Summary
 void applyConfiguration(Configuration configuration)
           
static SystemSettings fromMap(Map<String,String> properties)
           
 Map<String,String> getDriftPlugins()
           
 String put(SystemSetting key, String value)
           
 void putAll(Map<? extends SystemSetting,? extends String> m)
           
 void setDriftPlugins(Map<String,String> driftPlugins)
           
 Configuration toConfiguration()
           
 Map<String,String> toMap()
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

SystemSettings

public SystemSettings()

SystemSettings

public SystemSettings(SystemSettings original)
A copy-constructor, because GWT doesn't support Cloneable. (Seriously, Google?)

Parameters:
original -
See Also:
http://code.google.com/p/google-web-toolkit/issues/detail?id=1843
Method Detail

fromMap

public static SystemSettings fromMap(Map<String,String> properties)

put

public String put(SystemSetting key,
                  String value)
Specified by:
put in interface Map<SystemSetting,String>
Overrides:
put in class HashMap<SystemSetting,String>

putAll

public void putAll(Map<? extends SystemSetting,? extends String> m)
Specified by:
putAll in interface Map<SystemSetting,String>
Overrides:
putAll in class HashMap<SystemSetting,String>

getDriftPlugins

public Map<String,String> getDriftPlugins()

setDriftPlugins

public void setDriftPlugins(Map<String,String> driftPlugins)

toConfiguration

public Configuration toConfiguration()

applyConfiguration

public void applyConfiguration(Configuration configuration)

toMap

public Map<String,String> toMap()


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.