站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

PortletContainerManagementInterceptorImpl - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.portlet.management
Class PortletContainerManagementInterceptorImpl

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.portal.jems.as.system.AbstractJBossService
              extended byorg.jboss.portal.server.impl.invocation.JBossInterceptor
                  extended byorg.jboss.portal.portlet.invocation.PortletInterceptor
                      extended byorg.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

Nested Class Summary
private  class PortletContainerManagementInterceptorImpl.Value
           
 
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
 
Constructor Summary
PortletContainerManagementInterceptorImpl()
           
 
Method Summary
private  java.lang.Float getAverage(LoopCollection loop)
           
 java.lang.Float getAverageActionTime(java.lang.String portletId)
           
 java.lang.Float getAverageRenderTime(java.lang.String portletId)
           
 java.lang.Long getMax(LoopCollection loop)
           
 java.lang.Long getMaxActionTime(java.lang.String portletId)
           
 java.lang.Long getMaxRenderTime(java.lang.String portletId)
           
 java.lang.Long getMin(LoopCollection loop)
           
 java.lang.Long getMinActionTime(java.lang.String portletId)
           
 java.lang.Long getMinRenderTime(java.lang.String portletId)
           
 long getNbActionCalls(java.lang.String portletId)
           
 long getNbRenderCalls(java.lang.String portletId)
           
 int getSampleSize()
          Defines how many values are used to get the max, min and average.
private  PortletContainerManagementInterceptorImpl.Value getValue(java.lang.String key)
           
protected  java.lang.Object invoke(PortletInvocation invocation)
           
 void setSampleSize(int sampleSize)
           
 
Methods inherited from class org.jboss.portal.portlet.invocation.PortletInterceptor
invoke
 
Methods inherited from class org.jboss.portal.server.impl.invocation.JBossInterceptor
getInterceptor
 
Methods inherited from class org.jboss.portal.jems.as.system.AbstractJBossService
create, destroy, getState, getStateString, start, stop
 
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
 

Field Detail

sampleSize

private int sampleSize
Last values to consider


map

private java.util.Map map
Constructor Detail

PortletContainerManagementInterceptorImpl

public PortletContainerManagementInterceptorImpl()
Method Detail

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)