org.objectweb.jonas.server.J2EEServer Class Reference

Collaboration diagram for org.objectweb.jonas.server.J2EEServer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 J2EEServer (String objectName, Server server, String serverName, String serverVersion, String serverVendor, String protocols)
String getServerName ()
String getServerVersion ()
String getServerVendor ()
List getDeployedObjects ()
void addDeployedObject (String objectName)
void removeDeployedObject (String objectName)
List getResources ()
List getJavaVMs ()
void addJavaVM (String objectName)
String getProtocols ()
void stop () throws Exception
void runGC ()
long getCurrentUsedMemory ()
long getCurrentTotalMemory ()
void setRange (int range)
int getRange ()
void setSizeTableMeasures (int sizeMeasuresTable)
int getSizeTableMeasures ()
Long[] getTableMeasures ()
void timeoutExpired (Object arg)
void setActivated (boolean pActivated)
boolean isActivated ()
String deployJar (String fileName) throws Exception
Boolean isJarDeployed (String fileName) throws Exception
void unDeployJar (String fileName) throws Exception
Boolean isWarDeployed (String fileName) throws Exception
void deployWar (String fileName) throws Exception
void unDeployWar (String fileName) throws Exception
String deployEar (String fileName) throws Exception
Boolean isEarDeployed (String fileName) throws Exception
void unDeployEar (String fileName) throws Exception
String deployRar (String fileName) throws Exception
Boolean isRarDeployed (String fileName) throws Exception
void unDeployRar (String fileName) throws Exception
void addResource (String pObjectName)
String removeResource (String pObjectName)
void sendNotification (Notification notification)
void addNotificationListener (NotificationListener listner, NotificationFilter filter, java.lang.Object handback) throws java.lang.IllegalArgumentException
void handleNotification (Notification notification, java.lang.Object handback)

Detailed Description

MBean class for Server management. Two classes are used to provide all management services : J2EEServer and J2EEServerMBean. This class provide the notification's process when add or remove resources.
Author:
Guillaume Riviere

Michel Bruno
contributors Adriana Danes, Michel-Ange Anton

Definition at line 65 of file J2EEServer.java.


Constructor & Destructor Documentation

org.objectweb.jonas.server.J2EEServer.J2EEServer String  objectName,
Server  server,
String  serverName,
String  serverVersion,
String  serverVendor,
String  protocols
 

MBean constructor

Parameters:
objectName object name of the managed object
server Server object
serverName server name
serverVersion JOnAS version
serverVendor is JOnAS
protocols protocols supported

Definition at line 137 of file J2EEServer.java.

References org.objectweb.jonas.server.Server.getInstance(), org.objectweb.jonas.jmx.JmxService.getJmxServer(), and org.objectweb.jonas.server.Server.serverName.

Here is the call graph for this function:


Member Function Documentation

void org.objectweb.jonas.server.J2EEServer.addDeployedObject String  objectName  ) 
 

Add an object name to the deployedObjects list.

Parameters:
objectName Object name corresponding to a J2EEDeployedObject MBean

Definition at line 224 of file J2EEServer.java.

void org.objectweb.jonas.server.J2EEServer.addJavaVM String  objectName  ) 
 

Add an object name to the javaVMs list.

Parameters:
objectName Object name correspondig to a JVM MBean

Definition at line 256 of file J2EEServer.java.

Referenced by org.objectweb.jonas.server.Server.start().

void org.objectweb.jonas.server.J2EEServer.addNotificationListener NotificationListener  listner,
NotificationFilter  filter,
java.lang.Object  handback
throws java.lang.IllegalArgumentException
 

Add a new listener.

Parameters:
listner Listener to notify
filter Notification filter
handback ??
Exceptions:
java.lang.IllegalArgumentException 

Definition at line 711 of file J2EEServer.java.

void org.objectweb.jonas.server.J2EEServer.addResource String  pObjectName  ) 
 

Add an object name to the resources list.

Parameters:
pObjectName Object name correspondig to a J2EEResource MBean

Definition at line 637 of file J2EEServer.java.

References org.objectweb.jonas.server.J2EEServer.sendNotification().

Here is the call graph for this function:

String org.objectweb.jonas.server.J2EEServer.deployEar String  fileName  )  throws Exception
 

Deploy a J2EE application packaged in a EAR file

Parameters:
fileName the file name of the EAR to be be deployed.
Returns:
The ObjectName of the MBean associated to the deployed J2EE Application
Exceptions:
Exception Management operation could not be executed or failed

Definition at line 556 of file J2EEServer.java.

References org.objectweb.jonas.ear.EarService.deployEar().

Here is the call graph for this function:

String org.objectweb.jonas.server.J2EEServer.deployJar String  fileName  )  throws Exception
 

Deploy a stand-alone J2EE module packaged in a JAR file

Parameters:
fileName the file name of the JAR to be be deployed.
Returns:
The ObjectName of the MBean associated to the deployed module
Exceptions:
Exception Management operation could not be executed or failed

Definition at line 474 of file J2EEServer.java.

References org.objectweb.jonas.container.EJBService.createContainer().

Here is the call graph for this function:

String org.objectweb.jonas.server.J2EEServer.deployRar String  fileName  )  throws Exception
 

Deploy a J2EE application packaged in a RAR file

Parameters:
fileName the file name of the RAR to be be deployed.
Returns:
The ObjectName of the MBean associated to the deployed J2EE Application
Exceptions:
Exception Management operation could not be executed or failed

Definition at line 598 of file J2EEServer.java.

References org.objectweb.jonas.resource.ResourceService.deployRar().

Here is the call graph for this function:

void org.objectweb.jonas.server.J2EEServer.deployWar String  fileName  )  throws Exception
 

Deploy a stand-alone J2EE module packaged in a WAR file

Parameters:
fileName the file name of the WAR to be be deployed.
Returns:
The ObjectName of the MBean associated to the deployed module
Exceptions:
Exception Management operation could not be executed or failed

Definition at line 529 of file J2EEServer.java.

References org.objectweb.jonas.web.JWebContainerService.registerWarMBean().

Here is the call graph for this function:

long org.objectweb.jonas.server.J2EEServer.getCurrentTotalMemory  ) 
 

get jvm total memory

Returns:
Long - current total memory

Definition at line 295 of file J2EEServer.java.

long org.objectweb.jonas.server.J2EEServer.getCurrentUsedMemory  ) 
 

get jvm used memory

Returns:
Long - current used memory

Definition at line 287 of file J2EEServer.java.

List org.objectweb.jonas.server.J2EEServer.getDeployedObjects  ) 
 

Return the list of MBean names corresponding to the deployed J2EEModules and J2EEApplications

Returns:
java.util.ArrayList list of the deployed objects' MBean names

Definition at line 216 of file J2EEServer.java.

List org.objectweb.jonas.server.J2EEServer.getJavaVMs  ) 
 

Return the list of MBean names corresponding to the JVMs on which this server has running threads

Returns:
java.util.ArrayList list of the JVMs' MBean names

Definition at line 248 of file J2EEServer.java.

String org.objectweb.jonas.server.J2EEServer.getProtocols  ) 
 

Protocols supported by this Server

Returns:
String protocols supported

Definition at line 264 of file J2EEServer.java.

int org.objectweb.jonas.server.J2EEServer.getRange  ) 
 

get range

Returns:
Integer - range

Definition at line 322 of file J2EEServer.java.

List org.objectweb.jonas.server.J2EEServer.getResources  ) 
 

Return the list of MBean names corresponding to the resources available on this server

Returns:
java.util.ArrayList list of the resources' MBean names

Definition at line 240 of file J2EEServer.java.

String org.objectweb.jonas.server.J2EEServer.getServerName  ) 
 

Server name

Returns:
String JOnAS server name

Definition at line 192 of file J2EEServer.java.

Referenced by org.objectweb.jonas.server.J2EEServer.handleNotification().

String org.objectweb.jonas.server.J2EEServer.getServerVendor  ) 
 

Server vendor

Returns:
String JOnAS server version

Definition at line 208 of file J2EEServer.java.

String org.objectweb.jonas.server.J2EEServer.getServerVersion  ) 
 

Server version

Returns:
String JOnAS server version

Definition at line 200 of file J2EEServer.java.

int org.objectweb.jonas.server.J2EEServer.getSizeTableMeasures  ) 
 

Get the size of the table of measures

Returns:
Number of measures

Definition at line 346 of file J2EEServer.java.

Long [] org.objectweb.jonas.server.J2EEServer.getTableMeasures  ) 
 

get the table of value

Returns:
Long[] measures table

Definition at line 354 of file J2EEServer.java.

void org.objectweb.jonas.server.J2EEServer.handleNotification Notification  notification,
java.lang.Object  handback
 

Treat the notifications emitted by the JMX server. This method determines the type of the notification and calls the specific treatement.

Parameters:
notification received notification
handback received handback object

Definition at line 731 of file J2EEServer.java.

References org.objectweb.jonas.server.J2EEServer.getServerName().

Here is the call graph for this function:

boolean org.objectweb.jonas.server.J2EEServer.isActivated  ) 
 

get monitoring activation

Returns:
Boolean is activated

Definition at line 426 of file J2EEServer.java.

Boolean org.objectweb.jonas.server.J2EEServer.isEarDeployed String  fileName  )  throws Exception
 

Test if the specified filename is already deployed or not. This method is defined in the EarService interface.

Parameters:
fileName the name of the ear file.
Returns:
true if the ear is deployed, else false.
Exceptions:
Exception Management operation could not be executed or failed

Definition at line 571 of file J2EEServer.java.

References org.objectweb.jonas.ear.EarService.isEarDeployed().

Here is the call graph for this function:

Boolean org.objectweb.jonas.server.J2EEServer.isJarDeployed String  fileName  )  throws Exception
 

Test if the specified filename is already deployed or not.

Parameters:
fileName the name of the jar file.
Returns:
true if the jar is deployed, otherwise false.
Exceptions:
Exception Management operation could not be executed

Definition at line 488 of file J2EEServer.java.

References org.objectweb.jonas.container.EJBService.isJarDeployed().

Here is the call graph for this function:

Boolean org.objectweb.jonas.server.J2EEServer.isRarDeployed String  fileName  )  throws Exception
 

Test if the specified filename is already deployed or not.

Parameters:
fileName the name of the rar file.
Returns:
true if the rar is deployed, else false.
Exceptions:
Exception Management operation could not be executed or failed

Definition at line 612 of file J2EEServer.java.

References org.objectweb.jonas.resource.ResourceService.isRarDeployed().

Here is the call graph for this function:

Boolean org.objectweb.jonas.server.J2EEServer.isWarDeployed String  fileName  )  throws Exception
 

Test if the specified filename is already deployed or not.

Parameters:
fileName the name of the war file.
Returns:
true if the war is deployed, otherwise false.
Exceptions:
Exception Management operation could not be executed

Definition at line 515 of file J2EEServer.java.

References org.objectweb.jonas.web.JWebContainerService.isWarLoaded().

Here is the call graph for this function:

void org.objectweb.jonas.server.J2EEServer.removeDeployedObject String  objectName  ) 
 

Remove an object name to the deployedObjects list.

Parameters:
objectName Object name corresponding to a J2EEDeployedObject MBean

Definition at line 232 of file J2EEServer.java.

String org.objectweb.jonas.server.J2EEServer.removeResource String  pObjectName  ) 
 

Remove an object name from the resources list.

Parameters:
pObjectName Object name correspondig to a J2EEResource MBean
Returns:
Object name to the removed J2EEResource MBean

Definition at line 666 of file J2EEServer.java.

References org.objectweb.jonas.server.J2EEServer.sendNotification().

Here is the call graph for this function:

void org.objectweb.jonas.server.J2EEServer.runGC  ) 
 

run the garbage collector

Definition at line 279 of file J2EEServer.java.

void org.objectweb.jonas.server.J2EEServer.sendNotification Notification  notification  ) 
 

Send a notification to the listener.

Parameters:
notification The notification to send

Definition at line 692 of file J2EEServer.java.

References org.objectweb.jonas.management.ListenerJavaBean.getHandback(), and org.objectweb.jonas.management.ListenerJavaBean.getListener().

Referenced by org.objectweb.jonas.server.J2EEServer.addResource(), and org.objectweb.jonas.server.J2EEServer.removeResource().

Here is the call graph for this function:

void org.objectweb.jonas.server.J2EEServer.setActivated boolean  pActivated  ) 
 

set monitoring activation

Parameters:
pActivated true is activated

Definition at line 398 of file J2EEServer.java.

References org.objectweb.jonas.server.Server.getInstance(), and org.objectweb.jonas.server.Server.stop().

Here is the call graph for this function:

void org.objectweb.jonas.server.J2EEServer.setRange int  range  ) 
 

set range

Parameters:
range range for free memory measurement

change range

Definition at line 303 of file J2EEServer.java.

void org.objectweb.jonas.server.J2EEServer.setSizeTableMeasures int  sizeMeasuresTable  ) 
 

Set the size of the table of measures

Parameters:
sizeMeasuresTable Number of measures

Definition at line 330 of file J2EEServer.java.

void org.objectweb.jonas.server.J2EEServer.stop  )  throws Exception
 

Stop server (with stopping the JVM)

Definition at line 271 of file J2EEServer.java.

References org.objectweb.jonas.server.Server.stop().

Here is the call graph for this function:

void org.objectweb.jonas.server.J2EEServer.timeoutExpired Object  arg  ) 
 

The measures timeout has expired Do not synchronize this method to avoid deadlocks!

Parameters:
arg Object

Definition at line 366 of file J2EEServer.java.

void org.objectweb.jonas.server.J2EEServer.unDeployEar String  fileName  )  throws Exception
 

undeploy a J2EE application packaged in a EAR file

Parameters:
fileName the file name of the EAR to be be undeployed.
Exceptions:
Exception Management operation could not be executed or failed

Definition at line 584 of file J2EEServer.java.

References org.objectweb.jonas.ear.EarService.unDeployEar().

Here is the call graph for this function:

void org.objectweb.jonas.server.J2EEServer.unDeployJar String  fileName  )  throws Exception
 

Uneploy a stand-alone J2EE module packaged in a JAR file

Parameters:
fileName the file name of the JAR to be be undeployed.
Exceptions:
Exception Management operation could not be executed or failed

Definition at line 501 of file J2EEServer.java.

References org.objectweb.jonas.container.EJBService.removeContainer().

Here is the call graph for this function:

void org.objectweb.jonas.server.J2EEServer.unDeployRar String  fileName  )  throws Exception
 

undeploy a J2EE application packaged in a RAR file

Parameters:
fileName the file name of the RAR to be be undeployed.
Exceptions:
Exception Management operation could not be executed or failed

Definition at line 625 of file J2EEServer.java.

References org.objectweb.jonas.resource.ResourceService.unDeployRar().

Here is the call graph for this function:

void org.objectweb.jonas.server.J2EEServer.unDeployWar String  fileName  )  throws Exception
 

Uneploy a stand-alone J2EE module packaged in a WAR file

Parameters:
fileName the file name of the WAR to be be undeployed.
Exceptions:
Exception Management operation could not be executed or failed

Definition at line 543 of file J2EEServer.java.

References org.objectweb.jonas.web.JWebContainerService.unRegisterWarMBean().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:08:02 2005 for JOnAS by  doxygen 1.3.9.1