org.objectweb.jonas.server
Class JmxServer

java.lang.Object
  |
  +--org.objectweb.jonas.server.JmxServer
All Implemented Interfaces:
JmxServerMBean, TimerEventListener

public class JmxServer
extends java.lang.Object
implements JmxServerMBean, TimerEventListener

MBean Class for Server Management MBean type: Standard MBean model: Delegate (Server.java)


Constructor Summary
JmxServer(Server server, java.lang.String serverName, java.lang.String version, java.lang.String orb)
          constructor
 
Method Summary
 java.lang.Boolean getActivated()
          get monitoring activation
 int getActiveGroupCount()
          get the estimated number of active groups in the JOnAS server's initial thread group
 int getActiveThreadsCount()
          get the number of active threads in the JOnAS server's initial thread group
 java.lang.Long getCurrentTotalMemory()
          get jvm total memory
 java.lang.Long getCurrentUsedMemory()
          get jvm used memory
 java.lang.String getJonasName()
          Server name
 java.lang.String getJonasORB()
          Server ORB
 java.lang.String getJonasVersion()
          Server version
 java.lang.Long[] getMeasuresTable()
          get the table of value
 java.lang.Integer getNumberOfMeasures()
           
 java.lang.Integer getRange()
           
 void runGC()
          run the garbage collector
 void setActivated(java.lang.Boolean act)
          set monitoring activation
 void setNumberOfMeasures(java.lang.Integer nb)
          get/set number of measures
 void setRange(java.lang.Integer range)
          get/set for free memory measurement
 void stop()
          Stop server (with stopping the JVM)
 void timeoutExpired(java.lang.Object arg)
          The measures timeout has expired Do not synchronize this method to avoid deadlocks!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxServer

public JmxServer(Server server,
                 java.lang.String serverName,
                 java.lang.String version,
                 java.lang.String orb)
constructor
Method Detail

getJonasName

public java.lang.String getJonasName()
Server name
Specified by:
getJonasName in interface JmxServerMBean
Returns:
String JOnAS server name

getJonasVersion

public java.lang.String getJonasVersion()
Server version
Specified by:
getJonasVersion in interface JmxServerMBean
Returns:
String JOnAS server version

getJonasORB

public java.lang.String getJonasORB()
Server ORB
Specified by:
getJonasORB in interface JmxServerMBean
Returns:
String JOnAS server ORB (Jeremie or Rmi)

stop

public void stop()
          throws java.rmi.RemoteException
Stop server (with stopping the JVM)
Specified by:
stop in interface JmxServerMBean

runGC

public void runGC()
           throws java.rmi.RemoteException
run the garbage collector
Specified by:
runGC in interface JmxServerMBean

getCurrentUsedMemory

public java.lang.Long getCurrentUsedMemory()
                                    throws java.rmi.RemoteException
get jvm used memory
Specified by:
getCurrentUsedMemory in interface JmxServerMBean

getCurrentTotalMemory

public java.lang.Long getCurrentTotalMemory()
                                     throws java.rmi.RemoteException
get jvm total memory
Specified by:
getCurrentTotalMemory in interface JmxServerMBean

setRange

public void setRange(java.lang.Integer range)
              throws java.rmi.RemoteException
get/set for free memory measurement
Specified by:
setRange in interface JmxServerMBean

getRange

public java.lang.Integer getRange()
                           throws java.rmi.RemoteException
Specified by:
getRange in interface JmxServerMBean

setNumberOfMeasures

public void setNumberOfMeasures(java.lang.Integer nb)
                         throws java.rmi.RemoteException
get/set number of measures
Specified by:
setNumberOfMeasures in interface JmxServerMBean

getNumberOfMeasures

public java.lang.Integer getNumberOfMeasures()
                                      throws java.rmi.RemoteException
Specified by:
getNumberOfMeasures in interface JmxServerMBean

getMeasuresTable

public java.lang.Long[] getMeasuresTable()
                                  throws java.rmi.RemoteException
get the table of value
Specified by:
getMeasuresTable in interface JmxServerMBean

timeoutExpired

public void timeoutExpired(java.lang.Object arg)
The measures timeout has expired Do not synchronize this method to avoid deadlocks!
Specified by:
timeoutExpired in interface TimerEventListener

setActivated

public void setActivated(java.lang.Boolean act)
set monitoring activation
Specified by:
setActivated in interface JmxServerMBean

getActivated

public java.lang.Boolean getActivated()
get monitoring activation
Specified by:
getActivated in interface JmxServerMBean

getActiveThreadsCount

public int getActiveThreadsCount()
get the number of active threads in the JOnAS server's initial thread group
Specified by:
getActiveThreadsCount in interface JmxServerMBean

getActiveGroupCount

public int getActiveGroupCount()
get the estimated number of active groups in the JOnAS server's initial thread group
Specified by:
getActiveGroupCount in interface JmxServerMBean