com.sun.enterprise.web.connector.extension
Class GrizzlyConfig

java.lang.Object
  extended by com.sun.enterprise.web.connector.extension.GrizzlyConfig
All Implemented Interfaces:
MonitoringLevelListener

public class GrizzlyConfig
extends java.lang.Object
implements MonitoringLevelListener

This class track monitoring or Grizzly, using JMX to invoke Grizzly main classes.

Author:
Jeanfrancois Arcand

Constructor Summary
GrizzlyConfig(WebContainer webContainer, java.lang.String domain, int port)
          Creates the monitoring helper.
 
Method Summary
 void changeLevel(MonitoringLevel from, MonitoringLevel to, MonitoredObjectType type)
           
 void changeLevel(MonitoringLevel from, MonitoringLevel to, Stats handback)
           
 void destroy()
           
static java.util.ArrayList<GrizzlyConfig> getGrizzlyConfigInstances()
          Return the list of all instance of this class.
 int getPort()
          Return the port this configuration belongs.
 void initConfig()
           
protected  void invokeGrizzly(java.lang.String methodToInvoke)
           
protected  void invokeGrizzly(java.lang.String methodToInvoke, java.lang.Object[] objects, java.lang.String[] signature)
           
 void registerMonitoringLevelEvents()
           
 void setEnableCallFlow(boolean enableCallFlow)
          Enable CallFlow gathering mechanism.
 void setLevel(MonitoringLevel level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrizzlyConfig

public GrizzlyConfig(WebContainer webContainer,
                     java.lang.String domain,
                     int port)
Creates the monitoring helper.

Method Detail

destroy

public void destroy()

initConfig

public void initConfig()

registerMonitoringLevelEvents

public void registerMonitoringLevelEvents()

setLevel

public void setLevel(MonitoringLevel level)
Specified by:
setLevel in interface MonitoringLevelListener

changeLevel

public void changeLevel(MonitoringLevel from,
                        MonitoringLevel to,
                        MonitoredObjectType type)
Specified by:
changeLevel in interface MonitoringLevelListener

changeLevel

public void changeLevel(MonitoringLevel from,
                        MonitoringLevel to,
                        Stats handback)
Specified by:
changeLevel in interface MonitoringLevelListener

invokeGrizzly

protected final void invokeGrizzly(java.lang.String methodToInvoke)

invokeGrizzly

protected final void invokeGrizzly(java.lang.String methodToInvoke,
                                   java.lang.Object[] objects,
                                   java.lang.String[] signature)

setEnableCallFlow

public final void setEnableCallFlow(boolean enableCallFlow)
Enable CallFlow gathering mechanism.


getGrizzlyConfigInstances

public static java.util.ArrayList<GrizzlyConfig> getGrizzlyConfigInstances()
Return the list of all instance of this class.


getPort

public int getPort()
Return the port this configuration belongs.



Copyright © 2012 GlassFish Community. All Rights Reserved.