org.hyperic.hq.agent.server
Class ConfigStorage
java.lang.Object
org.hyperic.hq.agent.server.ConfigStorage
public class ConfigStorage
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_TYPE
public static final java.lang.String PROP_TYPE
- See Also:
- Constant Field Values
PROP_ID
public static final java.lang.String PROP_ID
- See Also:
- Constant Field Values
PROP_TYPE_NAME
public static final java.lang.String PROP_TYPE_NAME
- See Also:
- Constant Field Values
CONFIG_PREFIX
public static final java.lang.String CONFIG_PREFIX
- See Also:
- Constant Field Values
NO_PREFIX
public static final java.lang.String NO_PREFIX
- See Also:
- Constant Field Values
ConfigStorage
public ConfigStorage(AgentStorageProvider storage,
java.lang.String keylistName,
java.lang.String storagePrefix)
getKey
public ConfigStorage.Key getKey(AgentRemoteValue args)
load
public java.util.Map load()
put
public ConfigResponse put(ConfigStorage.Key key,
AgentRemoteValue args)
throws AgentStorageException
- Throws:
AgentStorageException
put
public void put(ConfigStorage.Key key,
ConfigResponse cr)
throws AgentStorageException
- Throws:
AgentStorageException
remove
public void remove(ConfigStorage.Key key)
throws AgentStorageException
- Throws:
AgentStorageException
copy
public static GenericValueMap copy(java.lang.String srcPrefix,
GenericValueMap src,
java.lang.String destPrefix,
GenericValueMap dest)
- For all keys in the keySet that begin with prefix,
copy the corresponding key/value pairs from the srcMap to the
destination map.
- Parameters:
srcPrefix
- Properties in the source map that begin with this
prefix will be copied.src
- The source map to search for matching keys.destPrefix
- This prefix will be prepended to the key names
that are copied. This is prepended after the srcPrefix has
been stripped.dest
- The destination map to copy key/value pairs to.
- Returns:
- The destination map.
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.