com.liferay.portal.monitoring.statistics.portlet
Class ServerStatistics

java.lang.Object
  extended by com.liferay.portal.monitoring.statistics.portlet.ServerStatistics
All Implemented Interfaces:
DataSampleProcessor<PortletRequestDataSample>

public class ServerStatistics
extends java.lang.Object
implements DataSampleProcessor<PortletRequestDataSample>

View Source

Author:
Michael C. Han, Brian Wing Shun Chan

Constructor Summary
ServerStatistics()
           
 
Method Summary
 void afterPropertiesSet()
           
 java.util.Set<java.lang.Long> getCompanyIds()
           
 CompanyStatistics getCompanyStatistics(long companyId)
           
 CompanyStatistics getCompanyStatistics(java.lang.String webId)
           
 java.util.Set<CompanyStatistics> getCompanyStatisticsSet()
           
 java.util.Set<java.lang.String> getPortletIds()
           
 java.util.Set<java.lang.String> getWebIds()
           
 void processDataSample(PortletRequestDataSample portletRequestDataSample)
           
 CompanyStatistics register(java.lang.String webId)
           
 void reset()
           
 void reset(long companyId)
           
 void reset(java.lang.String webId)
           
 void setCompanyLocalService(com.liferay.portal.service.CompanyLocalService companyLocalService)
           
 void unregister(java.lang.String webId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerStatistics

public ServerStatistics()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()

getCompanyIds

public java.util.Set<java.lang.Long> getCompanyIds()

getCompanyStatistics

public CompanyStatistics getCompanyStatistics(long companyId)
                                       throws MonitoringException
Throws:
MonitoringException

getCompanyStatistics

public CompanyStatistics getCompanyStatistics(java.lang.String webId)
                                       throws MonitoringException
Throws:
MonitoringException

getCompanyStatisticsSet

public java.util.Set<CompanyStatistics> getCompanyStatisticsSet()

getPortletIds

public java.util.Set<java.lang.String> getPortletIds()

getWebIds

public java.util.Set<java.lang.String> getWebIds()

processDataSample

public void processDataSample(PortletRequestDataSample portletRequestDataSample)
                       throws MonitoringException
Specified by:
processDataSample in interface DataSampleProcessor<PortletRequestDataSample>
Throws:
MonitoringException

register

public CompanyStatistics register(java.lang.String webId)

reset

public void reset()

reset

public void reset(long companyId)

reset

public void reset(java.lang.String webId)

setCompanyLocalService

public void setCompanyLocalService(com.liferay.portal.service.CompanyLocalService companyLocalService)

unregister

public void unregister(java.lang.String webId)