| Constructor and Description |
|---|
Statistics(Session session) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(Entry entry)
Adds an entry to the statistics workspace.
|
void |
addEntryAsync(Entry entry)
Adds an entry to the statistics workspace but does not guarantee that the
entry is persisted when the method returns.
|
void |
run() |
Iterator |
runReport(Report report)
Runs a report and returns the result of the report.
|
Iterator |
runReport(Session session,
Report report)
Runs a report and returns the result of the report.
|
void |
stop()
Stops the statistics instance and releases resource.
|
public Statistics(Session session)
public void stop()
public Iterator runReport(Report report) throws RepositoryException
runReport(Session, Report)
instead and provide your own session.
This method is thread-safe.report - the report to run.RepositoryException - if an error occurs while reading from the
workspace.public Iterator runReport(Session session, Report report) throws RepositoryException
session - The Session to access the data from the repository to
generate the reportreport - the report to run.RepositoryException - if an error occurs while reading from the
workspace.public void addEntry(Entry entry) throws RepositoryException
entry - the entry to add.RepositoryException - if an error occurs while writing to the
workspace.public void addEntryAsync(Entry entry) throws RepositoryException
entry - the entry to add.RepositoryException - if an error occurs while writing to the
workspace.Copyright © 2010 - 2020 Adobe. All Rights Reserved