FileDocCategorySizeDatePackage
J2EEServer.javaAPI DocGlassfish v2 API4889Fri May 04 22:30:52 BST 2007com.sun.appserv.management.j2ee

J2EEServer

public interface J2EEServer implements com.sun.appserv.management.base.Container, J2EELogicalServer

Fields Summary
public static final String
J2EE_TYPE
Constructors Summary
Methods Summary
public java.util.SetgetDeployedObjectsSet()
Return Set of all deployed objects. Possible types include:
  • {@link com.sun.appserv.management.j2ee.J2EEApplication}
  • {@link com.sun.appserv.management.j2ee.WebModule}
  • {@link com.sun.appserv.management.j2ee.EJBModule}
  • {@link com.sun.appserv.management.j2ee.AppClientModule}
  • {@link com.sun.appserv.management.j2ee.ResourceAdapterModule}

To obtain Resources of a particular type, use {@link Container#getContaineeMap}(j2eeType).

public JVMgetJVM()
There is always a single JVM for a J2EEServer.

return
JVM

public java.util.SetgetResourcesSet()
Return Set of all resources. Possible types include:
  • {@link com.sun.appserv.management.j2ee.JDBCResource}
  • {@link com.sun.appserv.management.j2ee.JavaMailResource}
  • {@link com.sun.appserv.management.j2ee.JCAResource}
  • {@link com.sun.appserv.management.j2ee.JMSResource}
  • {@link com.sun.appserv.management.j2ee.JNDIResource}
  • {@link com.sun.appserv.management.j2ee.JTAResource}
  • {@link com.sun.appserv.management.j2ee.RMIIIOPResource}
  • {@link com.sun.appserv.management.j2ee.URLResource}

To obtain Resources of a particular type, use {@link Container#getContaineeMap}(j2eeType).

public booleangetRestartRequired()

return
true if server configuration has changed such that a restart must be performed.

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

return
the ObjectNames as Strings

public java.lang.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.

return
the ObjectNames as Strings

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

return
the ObjectNames as Strings

public java.lang.StringgetserverVendor()
Note that the Attribute name is case-sensitive "serverVendor" as defined by JSR 77.

return
the server vendor, a free-form String

public java.lang.StringgetserverVersion()
Note that the Attribute name is case-sensitive "serverVersion" as defined by JSR 77.

return
the server version, a free-form String

public voidrestart()
Restart the server. Enterprise Edition only.