Java EE 5 SDK

com.sun.appserv.management.j2ee
Interface J2EEServer

All Superinterfaces:
AMX, AMXMBeanLogging, ConfigProvider, Container, J2EELogicalServer, J2EEManagedObject, NotificationBroadcaster, NotificationEmitter, StateManageable

public interface J2EEServer
extends J2EELogicalServer, Container


Field Summary
static String J2EE_TYPE
           
 
Fields inherited from interface com.sun.appserv.management.base.AMX
FULL_TYPE_DELIM, GROUP_CONFIGURATION, GROUP_JSR77, GROUP_MONITORING, GROUP_OTHER, GROUP_UTILITY, J2EE_TYPE_KEY, JMX_DOMAIN, NAME_KEY, NO_NAME, NOTIFICATION_PREFIX, NULL_NAME
 
Fields inherited from interface com.sun.appserv.management.j2ee.StateManageable
STATE_FAILED, STATE_RUNNING, STATE_STARTING, STATE_STOPPED, STATE_STOPPING
 
Fields inherited from interface com.sun.appserv.management.base.Container
ATTR_CONTAINEE_J2EE_TYPES
 
Method Summary
 String[] getdeployedObjects()
          Note that the Attribute name is case-sensitive "deployedObjects" as defined by JSR 77.
<T extends J2EEDeployedObject>
Set<T>
getDeployedObjectsSet()
          Return Set of all deployed objects.
 String[] getjavaVMs()
          In 8.1, there will only ever be one JVM for a J2EEServer.
 JVM getJVM()
          There is always a single JVM for a J2EEServer.
 String[] getresources()
          Note that the Attribute name is case-sensitive "resources" as defined by JSR 77.
<T extends J2EEResource>
Set<T>
getResourcesSet()
          Return Set of all resources.
 boolean getRestartRequired()
           
 String getserverVendor()
          Note that the Attribute name is case-sensitive "serverVendor" as defined by JSR 77.
 String getserverVersion()
          Note that the Attribute name is case-sensitive "serverVersion" as defined by JSR 77.
 void restart()
          Restart the server.
 
Methods inherited from interface com.sun.appserv.management.j2ee.J2EELogicalServer
startApp, stopApp
 
Methods inherited from interface com.sun.appserv.management.j2ee.J2EEManagedObject
getConfigPeer, getMonitoringPeer, getobjectName, iseventProvider, isstateManageable, isstatisticProvider, isstatisticsProvider
 
Methods inherited from interface com.sun.appserv.management.base.AMX
getContainer, getDomainRoot, getFullType, getGroup, getJ2EEType, getName, isDAS
 
Methods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 
Methods inherited from interface com.sun.appserv.management.base.AMXMBeanLogging
getMBeanLoggerName, getMBeanLogLevel, setMBeanLogLevel
 
Methods inherited from interface com.sun.appserv.management.j2ee.ConfigProvider
isConfigProvider
 
Methods inherited from interface com.sun.appserv.management.j2ee.StateManageable
getstartTime, getstate, start, startRecursive, stop
 
Methods inherited from interface com.sun.appserv.management.base.Container
getByNameContaineeSet, getContainee, getContainee, getContaineeJ2EETypes, getContaineeMap, getContaineeSet, getContaineeSet, getContaineeSet, getMultiContaineeMap
 

Field Detail

J2EE_TYPE

static final String J2EE_TYPE
See Also:
Constant Field Values
Method Detail

restart

void restart()
Restart the server. Enterprise Edition only.


getdeployedObjects

String[] getdeployedObjects()
Note that the Attribute name is case-sensitive "deployedObjects" as defined by JSR 77.

Returns:
the ObjectNames as Strings

getDeployedObjectsSet

<T extends J2EEDeployedObject> Set<T> getDeployedObjectsSet()
Return Set of all deployed objects. Possible types include:

To obtain Resources of a particular type, use Container.getContaineeMap(java.lang.String)(j2eeType).


getjavaVMs

String[] getjavaVMs()
In 8.1, there will only ever be one JVM for a J2EEServer. Note that the Attribute name is case-sensitive "javaVMs" as defined by JSR 77.

Returns:
the ObjectNames as Strings

getJVM

JVM getJVM()
There is always a single JVM for a J2EEServer.

Returns:
JVM

getresources

String[] getresources()
Note that the Attribute name is case-sensitive "resources" as defined by JSR 77.

Returns:
the ObjectNames as Strings

getResourcesSet

<T extends J2EEResource> Set<T> getResourcesSet()
Return Set of all resources. Possible types include:

To obtain Resources of a particular type, use Container.getContaineeMap(java.lang.String)(j2eeType).


getserverVendor

String getserverVendor()
Note that the Attribute name is case-sensitive "serverVendor" as defined by JSR 77.

Returns:
the server vendor, a free-form String

getserverVersion

String getserverVersion()
Note that the Attribute name is case-sensitive "serverVersion" as defined by JSR 77.

Returns:
the server version, a free-form String

getRestartRequired

boolean getRestartRequired()
Returns:
true if server configuration has changed such that a restart must be performed.

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.