FileDocCategorySizeDatePackage
SystemPropertiesAccess.javaAPI DocGlassfish v2 API4015Fri May 04 22:30:36 BST 2007com.sun.appserv.management.config

SystemPropertiesAccess

public interface SystemPropertiesAccess
All MBeans that have system Properties must extend this interface.

Properties are always Strings. Property names are required to be unique.

see
ClusterConfig
see
ConfigConfig
see
DomainConfig
see
ClusteredServerConfig
see
StandaloneServerConfig

Fields Summary
static final String
SYSTEM_PROPERTY_PREFIX
When a key is required for a system property in a Map, its name must consist of this prefix plus the actual name. When accessing a property directly, this prefix must not be used.
Constructors Summary
Methods Summary
public voidcreateSystemProperty(java.lang.String propertyName, java.lang.String propertyValue)
Create a new system property.

param
propertyName the name of the property
param
propertyValue the value of the property

public booleanexistsSystemProperty(java.lang.String propertyName)
Return true if any system properties exist with the specified name.

param
propertyName the name of the property

public java.util.MapgetSystemProperties()

return
Map containing all properties, keyed by name

public java.lang.String[]getSystemPropertyNames()
Get the names of all system properties.

public java.lang.StringgetSystemPropertyValue(java.lang.String propertyName)
Get the value of a property. The property must exist, or an exception will be thrown.

param
propertyName the name of the property

public voidremoveSystemProperty(java.lang.String propertyName)
Remove a system property with the specified name.

param
propertyName the name of the property

public voidsetSystemPropertyValue(java.lang.String propertyName, java.lang.String propertyValue)
Set the value of a system property. The property must already exist. The existing description is retained.

param
propertyName the name of the property
param
propertyValue the value of the property