public abstract class AbstractRemoteRepositoryReader extends java.lang.Object implements RepositoryReader
readLogLists(LogQueryBean, RepositoryPointer) should result in
RemoteResultCollector.getLogLists(LogQueryBean, RepositoryPointer) to be called and
readLogRecords(RemoteInstanceDetails, RepositoryPointer, int, int, Locale) - in RemoteResultCollector.getLogListForServerInstance(RemoteInstanceDetails, RepositoryPointer, int, int, Locale).| Modifier and Type | Method and Description |
|---|---|
ServerInstanceLogRecordList |
getLogListForCurrentServerInstance()
returns log records from the repository that were created since the last
server startup.
|
ServerInstanceLogRecordList |
getLogListForServerInstance(java.util.Date time)
returns log records from the repository of a server instance running
at the time specified.
|
ServerInstanceLogRecordList |
getLogListForServerInstance(java.util.Date time,
int threadID)
returns log records from the repository of a server instance running
at a specified time created by the given thread.
|
ServerInstanceLogRecordList |
getLogListForServerInstance(java.util.Date time,
java.util.logging.Level minLevel,
java.util.logging.Level maxLevel)
returns log records from the repository of a server instance running
at a specified time, within the level range as specified.
|
ServerInstanceLogRecordList |
getLogListForServerInstance(java.util.Date time,
LogQueryBean query)
returns log records from the repository of a server instance running
at a specified time, according to the criteria specified by the log query
bean.
|
ServerInstanceLogRecordList |
getLogListForServerInstance(RepositoryPointer after)
returns log records from the repository that are beyond a given
repository location as specified.
|
ServerInstanceLogRecordList |
getLogListForServerInstance(RepositoryPointer after,
int threadID)
returns log records from the repository that are beyond a given
repository location and created by a given thread as specified.
|
ServerInstanceLogRecordList |
getLogListForServerInstance(RepositoryPointer after,
java.util.logging.Level minLevel,
java.util.logging.Level maxLevel)
returns log records from the repository that are beyond a given
repository location and within the level range as specified.
|
ServerInstanceLogRecordList |
getLogListForServerInstance(RepositoryPointer after,
LogQueryBean query)
returns log records from the repository for one server instance that are
beyond a given repository location, according to the criteria specified by the log query
bean.
|
java.lang.Iterable<ServerInstanceLogRecordList> |
getLogLists()
returns all log records from the repository.
|
java.lang.Iterable<ServerInstanceLogRecordList> |
getLogLists(java.util.Date minTime,
java.util.Date maxTime)
returns log records from the repository that are within the date range
as specified.
|
java.lang.Iterable<ServerInstanceLogRecordList> |
getLogLists(java.util.logging.Level minLevel,
java.util.logging.Level maxLevel)
returns log records from the repository that are within the level range as
specified.
|
java.lang.Iterable<ServerInstanceLogRecordList> |
getLogLists(LogQueryBean query)
returns log records from the repository according to the criteria specified
by the log query bean.
|
java.lang.Iterable<ServerInstanceLogRecordList> |
getLogLists(RepositoryPointer after)
returns all log records from the repository beyond a given repository
location as specified.
|
java.lang.Iterable<ServerInstanceLogRecordList> |
getLogLists(RepositoryPointer after,
java.util.Date maxTime)
returns log records from the repository that are beyond a given
repository location and occurred before a given time as specified.
|
java.lang.Iterable<ServerInstanceLogRecordList> |
getLogLists(RepositoryPointer after,
java.util.logging.Level minLevel,
java.util.logging.Level maxLevel)
returns log records from the repository that are beyond a given
repository location and within the level range as specified.
|
java.lang.Iterable<ServerInstanceLogRecordList> |
getLogLists(RepositoryPointer after,
LogQueryBean query)
returns log records from the repository that are beyond a given
repository location, according to the criteria specified by the log query
bean.
|
int |
getMaxRecords()
Returns limit on records set for this instance.
|
abstract RemoteAllResults |
readLogLists(LogQueryBean query,
RepositoryPointer after)
retrieves results for all server instances in the repository.
|
abstract RemoteInstanceResult |
readLogRecords(RemoteInstanceDetails indicator,
RepositoryPointer after,
int offset,
int size,
java.util.Locale locale)
retrieves records and header for one server instance.
|
public int getMaxRecords()
public ServerInstanceLogRecordList getLogListForCurrentServerInstance() throws LogRepositoryException
RepositoryReadergetLogListForCurrentServerInstance in interface RepositoryReaderLogRepositoryException - indicating that an error occurred while reading records from the server.public ServerInstanceLogRecordList getLogListForServerInstance(java.util.Date time) throws LogRepositoryException
RepositoryReadergetLogListForServerInstance in interface RepositoryReadertime - Date value used to determine the
server instance where the server start time occurs
before this value and the server stop time occurs
after this valueLogRepositoryException - indicating that an error occurred while reading records from the server.public ServerInstanceLogRecordList getLogListForServerInstance(RepositoryPointer after) throws LogRepositoryException
RepositoryReaderRepositoryLogRecordHeader.getRepositoryPointer() to obtain the
RepositoryPointer for a particular log record. The returned logs will
be from one server instance.getLogListForServerInstance in interface RepositoryReaderafter - pointer to a record the list will start afterLogRepositoryException - indicating that an error occurred while reading records from the server.public ServerInstanceLogRecordList getLogListForServerInstance(java.util.Date time, java.util.logging.Level minLevel, java.util.logging.Level maxLevel) throws LogRepositoryException
RepositoryReadergetLogListForServerInstance in interface RepositoryReadertime - Date value used to determine the
server instance where the server start time occurs
before this value and the server stop time occurs
after this valueminLevel - minimum Level that will be included in the
returned listmaxLevel - maximum Level that will be included in the
returned listLogRepositoryException - indicating that an error occurred while reading records from the server.public ServerInstanceLogRecordList getLogListForServerInstance(RepositoryPointer after, java.util.logging.Level minLevel, java.util.logging.Level maxLevel) throws LogRepositoryException
RepositoryReaderRepositoryLogRecordHeader.getRepositoryPointer() to obtain the
RepositoryPointer for a particular log record. The returned logs will
be from one server instance.getLogListForServerInstance in interface RepositoryReaderafter - pointer to a record the list will start afterminLevel - minimum Level that will be included in the
returned listmaxLevel - maximum Level that will be included in the
returned listLogRepositoryException - indicating that an error occurred while reading records from the server.public ServerInstanceLogRecordList getLogListForServerInstance(java.util.Date time, int threadID) throws LogRepositoryException
RepositoryReadergetLogListForServerInstance in interface RepositoryReadertime - Date value used to determine the
server instance where the server start time occurs
before this value and the server stop time occurs
after this valuethreadID - ID of the thread that the returned records will matchLogRepositoryException - indicating that an error occurred while reading records from the server.public ServerInstanceLogRecordList getLogListForServerInstance(RepositoryPointer after, int threadID) throws LogRepositoryException
RepositoryReaderRepositoryLogRecordHeader.getRepositoryPointer() to obtain the
RepositoryPointer for a particular log record. The returned logs will
be from one server instance.getLogListForServerInstance in interface RepositoryReaderafter - pointer to a record the list will start afterthreadID - ID of the thread that the returned records will matchLogRepositoryException - indicating that an error occurred while reading records from the server.public ServerInstanceLogRecordList getLogListForServerInstance(java.util.Date time, LogQueryBean query) throws LogRepositoryException
getLogListForServerInstance in interface RepositoryReadertime - Date value used to determine the
server instance where the server start time occurs
before this value and the server stop time occurs
after this valuequery - LogQueryBean instance representing set of criteria
each of which need to be met by the return records.LogRepositoryException - indicating that an error occurred while reading records from the server.LogQueryBeanpublic ServerInstanceLogRecordList getLogListForServerInstance(RepositoryPointer after, LogQueryBean query) throws LogRepositoryException
getLogListForServerInstance in interface RepositoryReaderafter - pointer to a record the list will start afterquery - LogQueryBean instance representing set of criteria
each of which need to be met by the return records.LogRepositoryException - indicating that an error occurred while reading records from the server.LogQueryBeanpublic java.lang.Iterable<ServerInstanceLogRecordList> getLogLists(LogQueryBean query) throws LogRepositoryException
getLogLists in interface RepositoryReaderquery - LogQueryBean instance representing set of criteria
each of which need to be met by the return records.LogRepositoryException - indicating that an error occurred while reading list of instances from the server.public java.lang.Iterable<ServerInstanceLogRecordList> getLogLists(RepositoryPointer after, LogQueryBean query) throws LogRepositoryException
getLogLists in interface RepositoryReaderafter - pointer to a record the list will start afterquery - LogQueryBean instance representing set of criteria
each of which need to be met by the return records.LogRepositoryException - indicating that an error occurred while reading list of instances from the server.public java.lang.Iterable<ServerInstanceLogRecordList> getLogLists() throws LogRepositoryException
RepositoryReadergetLogLists in interface RepositoryReaderLogRepositoryException - indicating that an error occurred while reading list of instances from the server.public java.lang.Iterable<ServerInstanceLogRecordList> getLogLists(RepositoryPointer after) throws LogRepositoryException
RepositoryReaderRepositoryLogRecordHeader.getRepositoryPointer() to obtain the
RepositoryPointer for a particular log record.getLogLists in interface RepositoryReaderafter - pointer to a record the list will start afterLogRepositoryException - indicating that an error occurred while reading list of instances from the server.public java.lang.Iterable<ServerInstanceLogRecordList> getLogLists(java.util.logging.Level minLevel, java.util.logging.Level maxLevel) throws LogRepositoryException
RepositoryReadergetLogLists in interface RepositoryReaderminLevel - minimum Level that will be included in the
returned listmaxLevel - maximum Level that will be included in the
returned listLogRepositoryException - indicating that an error occurred while reading list of instances from the server.public java.lang.Iterable<ServerInstanceLogRecordList> getLogLists(RepositoryPointer after, java.util.logging.Level minLevel, java.util.logging.Level maxLevel) throws LogRepositoryException
RepositoryReaderRepositoryLogRecordHeader.getRepositoryPointer() to obtain the
RepositoryPointer for a particular log record.getLogLists in interface RepositoryReaderafter - pointer to a record the list will start afterminLevel - minimum Level that will be included in the
returned listmaxLevel - maximum Level that will be included in the
returned listLogRepositoryException - indicating that an error occurred while reading list of instances from the server.public java.lang.Iterable<ServerInstanceLogRecordList> getLogLists(java.util.Date minTime, java.util.Date maxTime) throws LogRepositoryException
RepositoryReadernull
as the maxTime to indicate that the returned log records do not have
to meet a maxTime criteria.getLogLists in interface RepositoryReaderminTime - minimum Date value that will be included in
the returned listmaxTime - maximum Date value that will be included in
the returned listLogRepositoryException - indicating that an error occurred while reading list of instances from the server.public java.lang.Iterable<ServerInstanceLogRecordList> getLogLists(RepositoryPointer after, java.util.Date maxTime) throws LogRepositoryException
RepositoryReaderRepositoryLogRecordHeader.getRepositoryPointer() to obtain the
RepositoryPointer for a particular log record.getLogLists in interface RepositoryReaderafter - pointer to a record the list will start aftermaxTime - maximum Date value that will be included in
the returned listLogRepositoryException - indicating that an error occurred while reading list of instances from the server.public abstract RemoteAllResults readLogLists(LogQueryBean query, RepositoryPointer after) throws LogRepositoryException
RemoteResultCollector.getLogLists(LogQueryBean, RepositoryPointer)
to be invoked with the same parameters on the server side.query - log query bean indicatorafter - reference point after which we need log records.LogRepositoryException - indicating that an error occurred while reading list of instances from the server.public abstract RemoteInstanceResult readLogRecords(RemoteInstanceDetails indicator, RepositoryPointer after, int offset, int size, java.util.Locale locale) throws LogRepositoryException
RemoteResultCollector.getLogListForServerInstance(RemoteInstanceDetails, RepositoryPointer, int, int, Locale)
to be invoked with the same parameters on the server side.indicator - server instance identifier.after - reference point after which we need log records.offset - number of records to skip after the reference point.size - maximum number of records to return.locale - language records should be translated to in the result. null means no translation required.LogRepositoryException - indicating that an error occurred while reading records from the server.