当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
PortletContainerManagementInterceptorImpl - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.portlet.management
Class PortletContainerManagementInterceptorImpl
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.portal.jems.as.system.AbstractJBossService
org.jboss.portal.server.impl.invocation.JBossInterceptor
org.jboss.portal.portlet.invocation.PortletInterceptor
org.jboss.portal.portlet.management.PortletContainerManagementInterceptorImpl
- All Implemented Interfaces:
- Interceptor, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, PortletContainerManagementInterceptor, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class PortletContainerManagementInterceptorImpl
- extends PortletInterceptor
- implements PortletContainerManagementInterceptor
- Version:
- $Revision$
- Author:
- Thomas Heute
Field Summary |
private java.util.Map |
map
|
private int |
sampleSize
Last values to consider |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
|
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
createService, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, startService, stopService |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sampleSize
private int sampleSize
- Last values to consider
map
private java.util.Map map
PortletContainerManagementInterceptorImpl
public PortletContainerManagementInterceptorImpl()
invoke
protected java.lang.Object invoke(PortletInvocation invocation)
throws java.lang.Exception,
InvocationException
- Specified by:
invoke
in class PortletInterceptor
- Throws:
java.lang.Exception
InvocationException
getValue
private PortletContainerManagementInterceptorImpl.Value getValue(java.lang.String key)
getAverageRenderTime
public java.lang.Float getAverageRenderTime(java.lang.String portletId)
- Specified by:
getAverageRenderTime
in interface PortletContainerManagementInterceptor
getAverageActionTime
public java.lang.Float getAverageActionTime(java.lang.String portletId)
- Specified by:
getAverageActionTime
in interface PortletContainerManagementInterceptor
getMaxRenderTime
public java.lang.Long getMaxRenderTime(java.lang.String portletId)
- Specified by:
getMaxRenderTime
in interface PortletContainerManagementInterceptor
getMaxActionTime
public java.lang.Long getMaxActionTime(java.lang.String portletId)
- Specified by:
getMaxActionTime
in interface PortletContainerManagementInterceptor
getMinRenderTime
public java.lang.Long getMinRenderTime(java.lang.String portletId)
- Specified by:
getMinRenderTime
in interface PortletContainerManagementInterceptor
getMinActionTime
public java.lang.Long getMinActionTime(java.lang.String portletId)
- Specified by:
getMinActionTime
in interface PortletContainerManagementInterceptor
getNbRenderCalls
public long getNbRenderCalls(java.lang.String portletId)
- Specified by:
getNbRenderCalls
in interface PortletContainerManagementInterceptor
getNbActionCalls
public long getNbActionCalls(java.lang.String portletId)
- Specified by:
getNbActionCalls
in interface PortletContainerManagementInterceptor
getSampleSize
public int getSampleSize()
- Description copied from interface:
PortletContainerManagementInterceptor
- Defines how many values are used to get the max, min and average.
- Specified by:
getSampleSize
in interface PortletContainerManagementInterceptor
setSampleSize
public void setSampleSize(int sampleSize)
- Specified by:
setSampleSize
in interface PortletContainerManagementInterceptor
getAverage
private java.lang.Float getAverage(LoopCollection loop)
getMax
public java.lang.Long getMax(LoopCollection loop)
getMin
public java.lang.Long getMin(LoopCollection loop)