|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectthinkmap.server.StatisticsWrapper
public class StatisticsWrapper
StatisticsWrapper collects information about a datasource as it runs.
| Constructor Summary | |
|---|---|
StatisticsWrapper(IDataSource ids,
int searchHistory)
Creates a new StatisticsWrapper object. |
|
| Method Summary | |
|---|---|
IEntityHandler |
createRequest(IEntityHandler callback)
Create a request. |
float |
getAveTime(int messageType)
Get the average time taken to service requests of the specified type. |
IDataSource |
getDataSource()
Get the datasource to collect statistics about. |
long |
getHits(int messageType)
Get the number of requests served of the specified type. |
int |
getMaxTime(int messageType)
Get the maximum time taken to service a request of the specified type. |
String[] |
getSearchHistory()
Get the array of items that have been searched for. |
int |
getSearchHistorySize()
Get the maximum number of items stored in the history. |
Element |
getStatusXML(Document doc)
Add XML for these statistics to a node |
long |
getTotalTime(int messageType)
Get the total time taken to service requests of the specified type. |
void |
reset()
Reset all statitics |
void |
setDataSource(IDataSource ids)
Set the datasource to collect statistics about. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatisticsWrapper(IDataSource ids,
int searchHistory)
ids - IDatasource to collect statistics aboutsearchHistory - number of items to keep in history| Method Detail |
|---|
public void setDataSource(IDataSource ids)
ids - underlying datasourcepublic IDataSource getDataSource()
public int getSearchHistorySize()
public String[] getSearchHistory()
public long getHits(int messageType)
messageType - message type
public int getMaxTime(int messageType)
messageType - message type
public long getTotalTime(int messageType)
messageType - message type
public float getAveTime(int messageType)
messageType - message type
public IEntityHandler createRequest(IEntityHandler callback)
IDataSource
createRequest in interface IDataSourcecallback - The IEntityHandler that will recieve the response.
public void reset()
public Element getStatusXML(Document doc)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||