FileDocCategorySizeDatePackage
SystemInfo.javaAPI DocGlassfish v2 API4564Fri May 04 22:30:30 BST 2007com.sun.appserv.management.base

SystemInfo

public interface SystemInfo implements AMX
Provides information about the capabilities of the running server. Callers should check only for specific capabilities, never whether the server is PE/SE/EE, since the feature assortment could vary with release.

Fields Summary
public static final String
J2EE_TYPE
The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}.
public final String
CLUSTERS_FEATURE
Call supportsFeature() with this value to determine if the server supports clusters.
public final String
MULTIPLE_SERVERS_FEATURE
Call supportsFeature() with this value to determine if the server supports more than one server.
public final String
RUNNING_IN_DAS_FEATURE
Call supportsFeature() with this value to determine if this MBean is running in the Domain Admin Server.
public final String
HADB_CONFIG_FEATURE
Call supportsFeature() with this value to determine if the high availability feature (HADB) is available.
public static final String
STARTUP_SEQUENCE_MILLIS_KEY
Key for time for server to complete its startup sequence. The presence of this item in the Map returned by {@link #getPerformanceMillis} indicates that the server has completed its startup sequence. However, some server features might still be initializing asynchronously, or might be lazily loaded.
Constructors Summary
Methods Summary
public java.lang.String[]getFeatureNames()
Return all features names.

return
Set

public java.util.MapgetPerformanceMillis()
Return a Map keyed by an arbitrary String denoting some feature. The value is the time in milliseconds. Code should not rely on the keys as they are subject to changes, additions, or removal at any time, except as otherwise documented. Even documented items should be used only for informational purposes, such as assessing performance.

return
Map

public booleansupportsFeature(java.lang.String key)
Query whether a feature is supported. Features require the use of a key, which may be any of:
  • CLUSTERS_FEATURE
  • MULTIPLE_SERVERS_FEATURE
  • RUNNING_IN_DAS_FEATURE

param
key the feature to query