jrunx.metrics
Interface MetricsServiceMBean
- All Superinterfaces:
- java.io.Serializable, Service, ServiceMBean
- All Known Subinterfaces:
- Metrics
- public interface MetricsServiceMBean
- extends ServiceMBean
The MBean interface for the metrics container.
- Author:
- Karl Moss
|
Method Summary |
int |
getHistorySize()
Gets the current size of the metrics history buffer |
int |
getInitialSize()
Gets the initial size of the metrics array |
Metrics |
getMetricsService()
Convenience method for returning a reference to the current object
instance. |
void |
setHistorySize(int size)
Sets the size of the metrics history buffer. |
void |
setInitialSize(int size)
Sets the initial size of the metrics array. |
| Methods inherited from interface jrunx.kernel.ServiceMBean |
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind |
getHistorySize
public int getHistorySize()
- Gets the current size of the metrics history buffer
- Returns:
- The size of the buffer
setHistorySize
public void setHistorySize(int size)
- Sets the size of the metrics history buffer. The default
is 10.
- Parameters:
size - The size of the buffer
getInitialSize
public int getInitialSize()
- Gets the initial size of the metrics array
- Returns:
- The size of the metrics array
setInitialSize
public void setInitialSize(int size)
- Sets the initial size of the metrics array. The default is 100.
- Parameters:
size - The size of the metrics array
getMetricsService
public Metrics getMetricsService()
- Convenience method for returning a reference to the current object
instance. There is no way using JMX to directly reference an object
(you must make method calls via invoke). Since this would incur
additional overhead, and metrics gathering should be as non-obtrusive
as possible, this method allows you direct access to the metrics
service.
Copyright � 2002 Macromedia Corporation. All Rights Reserved.