public class PerformanceMonitorFactory extends java.lang.Object implements org.apache.hivemind.ServiceInterceptorFactory
MBean
that
is created and registered in the MBeanServer. Which methods are intercepted can be defined like
in the logging interceptorConstructor and Description |
---|
PerformanceMonitorFactory(MBeanRegistry mbeanRegistry,
ObjectNameBuilder objectNameBuilder) |
Modifier and Type | Method and Description |
---|---|
void |
createInterceptor(org.apache.hivemind.InterceptorStack stack,
org.apache.hivemind.internal.Module invokingModule,
java.util.List parameters) |
PerformanceCollector |
createMBean(org.apache.hivemind.internal.ServicePoint servicePoint,
java.util.Set methods)
Creates and registers the MBean that holds the performance data.
|
protected java.util.Set |
getInterceptedMethods(org.apache.hivemind.InterceptorStack stack,
java.util.List parameters)
Returns the methods that must be intercepted.
|
void |
setServiceId(java.lang.String string) |
public PerformanceMonitorFactory(MBeanRegistry mbeanRegistry, ObjectNameBuilder objectNameBuilder)
public void setServiceId(java.lang.String string)
public void createInterceptor(org.apache.hivemind.InterceptorStack stack, org.apache.hivemind.internal.Module invokingModule, java.util.List parameters)
createInterceptor
in interface org.apache.hivemind.ServiceInterceptorFactory
public PerformanceCollector createMBean(org.apache.hivemind.internal.ServicePoint servicePoint, java.util.Set methods) throws javax.management.JMException
javax.management.JMException
protected java.util.Set getInterceptedMethods(org.apache.hivemind.InterceptorStack stack, java.util.List parameters)