public class GrizzlyConfig extends Object implements MonitoringLevelListener
Constructor and Description |
---|
GrizzlyConfig(WebContainer webContainer,
String domain,
int port)
Creates the monitoring helper.
|
Modifier and Type | Method and Description |
---|---|
void |
changeLevel(MonitoringLevel from,
MonitoringLevel to,
MonitoredObjectType type)
Method to convey the change in monitoring level.
|
void |
changeLevel(MonitoringLevel from,
MonitoringLevel to,
javax.management.j2ee.statistics.Stats handback)
Method to convey the change in monitoring level.
|
void |
destroy() |
static 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(String methodToInvoke) |
protected void |
invokeGrizzly(String methodToInvoke,
Object[] objects,
String[] signature) |
void |
registerMonitoringLevelEvents() |
void |
setEnableCallFlow(boolean enableCallFlow)
Enable CallFlow gathering mechanism.
|
void |
setLevel(MonitoringLevel level)
Sets the monitoring level to a new level.
|
public GrizzlyConfig(WebContainer webContainer, String domain, int port)
public void destroy()
public void initConfig()
public void registerMonitoringLevelEvents()
public void setLevel(MonitoringLevel level)
MonitoringLevelListener
setLevel
in interface MonitoringLevelListener
level
- corresponding to MonitoringLevel OFF, LOW or HIGHpublic void changeLevel(MonitoringLevel from, MonitoringLevel to, MonitoredObjectType type)
MonitoringLevelListener
changeLevel
in interface MonitoringLevelListener
from
- the MonitoringLevel before the changeto
- the MonitoringLevel after the changetype
- the MonitoredObjectType that had the level changedpublic void changeLevel(MonitoringLevel from, MonitoringLevel to, javax.management.j2ee.statistics.Stats handback)
MonitoringLevelListener
changeLevel
in interface MonitoringLevelListener
from
- the MonitoringLevel before the changeto
- the MonitoringLevel after the changehandback
- the Stats object that was passed to the registry during registration. It
is guaranteed that it will be unchanged by monitoring framework.protected final void invokeGrizzly(String methodToInvoke)
protected final void invokeGrizzly(String methodToInvoke, Object[] objects, String[] signature)
public final void setEnableCallFlow(boolean enableCallFlow)
public static ArrayList<GrizzlyConfig> getGrizzlyConfigInstances()
public int getPort()
Copyright © 2021. All rights reserved.