public class TraceEventData extends Object
| Constructor and Description |
|---|
TraceEventData(org.apache.chemistry.opencmis.client.api.Session session,
boolean queryAll)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNumberOfDocuments(long numberOfDocsToAdd)
Adds the given number of documents to the stored number of documents
|
org.apache.chemistry.opencmis.client.api.Document |
getCMISDocument() |
Date |
getLastQueryDate() |
long |
getNumberOfQueries() |
org.apache.chemistry.opencmis.client.api.Session |
getSession() |
long |
getTimeAverage() |
long |
getTimeFastest() |
long |
getTimeSlowest() |
long |
getTotalNumberOfDocuments() |
void |
setCMISDocument(org.apache.chemistry.opencmis.client.api.Document doc)
Stores a random CMIS document.
|
void |
setValues(long numberOfDocuments,
long millis,
Date queryStartTime)
Stores the latest query time
|
public TraceEventData(org.apache.chemistry.opencmis.client.api.Session session,
boolean queryAll)
session - (Session) CMIS sessionqueryAll - (boolean) True: first query will start from 1/1/1970 - False: first query will start with current Datepublic org.apache.chemistry.opencmis.client.api.Session getSession()
public long getTotalNumberOfDocuments()
public void addNumberOfDocuments(long numberOfDocsToAdd)
numberOfDocsToAdd - (long) number of documents to addpublic Date getLastQueryDate()
public org.apache.chemistry.opencmis.client.api.Document getCMISDocument()
public void setCMISDocument(org.apache.chemistry.opencmis.client.api.Document doc)
doc - (Document) CMIS document to keep for event exchangepublic void setValues(long numberOfDocuments,
long millis,
Date queryStartTime)
public long getTimeAverage()
public long getTimeSlowest()
public long getTimeFastest()
public long getNumberOfQueries()
Copyright © 2015. All rights reserved.