|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.endeca.portal.instrumentation.metrics.GenericMetric
com.endeca.portal.instrumentation.metrics.PortletMetric
public class PortletMetric
Bean representing the aggregate performance of a component, tracking the component ID and name, the total number of times the component executed, and the total time of all executions.
| Constructor Summary | |
|---|---|
PortletMetric(java.lang.String portletId)
Create a new PortletMetric for this ID. |
|
| Method Summary | |
|---|---|
java.lang.String |
getPortletId()
getter for the component ID |
java.lang.String |
getPortletName()
getter for component name |
java.lang.String |
getPortletTitle()
getter for component title |
void |
setPortletName(java.lang.String portletName)
setter for portlet name |
void |
setPortletTitle(java.lang.String portletTitle)
setter for component title |
org.json.JSONObject |
toJSONObject()
Serializes this object into a JSON string |
| Methods inherited from class com.endeca.portal.instrumentation.metrics.GenericMetric |
|---|
addSingleExecution, getAverageExecutionTime, getMaxTime, getTotalCount, getTotalTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.endeca.portal.instrumentation.metrics.Metric |
|---|
addSingleExecution, getAverageExecutionTime, getMaxTime, getTotalCount, getTotalTime |
| Constructor Detail |
|---|
public PortletMetric(java.lang.String portletId)
portletId - the portlet to track| Method Detail |
|---|
public org.json.JSONObject toJSONObject()
throws org.json.JSONException
toJSONObject in interface Metricorg.json.JSONExceptionpublic java.lang.String getPortletId()
public java.lang.String getPortletName()
public void setPortletName(java.lang.String portletName)
portletName - the namepublic java.lang.String getPortletTitle()
public void setPortletTitle(java.lang.String portletTitle)
portletTitle - the title
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||