|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.logging.hpel.reader.AbstractRemoteRepositoryReader
public abstract class AbstractRemoteRepositoryReader
Abstract implementation of the RepositoryReader for remote reading of log records.
Extensions of this class need need to provide transportation of parameters and results over the wire.
On the server side of the call 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)
.
Constructor Summary | |
---|---|
protected |
AbstractRemoteRepositoryReader(int maxRecords,
java.util.Locale locale)
constructs instance returning log records translated into specified Locale and with a limit on number of records requested in each call to server. |
protected |
AbstractRemoteRepositoryReader(java.util.Locale locale)
constructs instance returning log records translated into specified Locale. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractRemoteRepositoryReader(java.util.Locale locale)
locale
- language all records should be translated to. null
means not translation required.protected AbstractRemoteRepositoryReader(int maxRecords, java.util.Locale locale)
maxRecords
- limit on number of records in each requestlocale
- language all records should be translated to. null
means not translation required.Method Detail |
---|
public int getMaxRecords()
public ServerInstanceLogRecordList getLogListForCurrentServerInstance() throws LogRepositoryException
RepositoryReader
getLogListForCurrentServerInstance
in interface RepositoryReader
LogRepositoryException
- indicating that an error occurred while reading records from the server.public ServerInstanceLogRecordList getLogListForServerInstance(java.util.Date time) throws LogRepositoryException
RepositoryReader
getLogListForServerInstance
in interface RepositoryReader
time
- 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 value
LogRepositoryException
- indicating that an error occurred while reading records from the server.public ServerInstanceLogRecordList getLogListForServerInstance(RepositoryPointer after) throws LogRepositoryException
RepositoryReader
RepositoryLogRecordHeader.getRepositoryPointer()
to obtain the
RepositoryPointer for a particular log record. The returned logs will
be from one server instance.
getLogListForServerInstance
in interface RepositoryReader
after
- pointer to a record the list will start after
LogRepositoryException
- 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
RepositoryReader
getLogListForServerInstance
in interface RepositoryReader
time
- 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 list
LogRepositoryException
- 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
RepositoryReader
RepositoryLogRecordHeader.getRepositoryPointer()
to obtain the
RepositoryPointer for a particular log record. The returned logs will
be from one server instance.
getLogListForServerInstance
in interface RepositoryReader
after
- 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 list
LogRepositoryException
- indicating that an error occurred while reading records from the server.public ServerInstanceLogRecordList getLogListForServerInstance(java.util.Date time, int threadID) throws LogRepositoryException
RepositoryReader
getLogListForServerInstance
in interface RepositoryReader
time
- 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 match
LogRepositoryException
- indicating that an error occurred while reading records from the server.public ServerInstanceLogRecordList getLogListForServerInstance(RepositoryPointer after, int threadID) throws LogRepositoryException
RepositoryReader
RepositoryLogRecordHeader.getRepositoryPointer()
to obtain the
RepositoryPointer for a particular log record. The returned logs will
be from one server instance.
getLogListForServerInstance
in interface RepositoryReader
after
- pointer to a record the list will start afterthreadID
- ID of the thread that the returned records will match
LogRepositoryException
- 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 RepositoryReader
time
- 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.LogQueryBean
public ServerInstanceLogRecordList getLogListForServerInstance(RepositoryPointer after, LogQueryBean query) throws LogRepositoryException
getLogListForServerInstance
in interface RepositoryReader
after
- 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.LogQueryBean
public java.lang.Iterable<ServerInstanceLogRecordList> getLogLists(LogQueryBean query) throws LogRepositoryException
getLogLists
in interface RepositoryReader
query
- 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 RepositoryReader
after
- 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
RepositoryReader
getLogLists
in interface RepositoryReader
LogRepositoryException
- indicating that an error occurred while reading list of instances from the server.public java.lang.Iterable<ServerInstanceLogRecordList> getLogLists(RepositoryPointer after) throws LogRepositoryException
RepositoryReader
RepositoryLogRecordHeader.getRepositoryPointer()
to obtain the
RepositoryPointer for a particular log record.
getLogLists
in interface RepositoryReader
after
- pointer to a record the list will start after
LogRepositoryException
- 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
RepositoryReader
getLogLists
in interface RepositoryReader
minLevel
- minimum Level
that will be included in the
returned listmaxLevel
- maximum Level
that will be included in the
returned list
LogRepositoryException
- 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
RepositoryReader
RepositoryLogRecordHeader.getRepositoryPointer()
to obtain the
RepositoryPointer for a particular log record.
getLogLists
in interface RepositoryReader
after
- 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 list
LogRepositoryException
- 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
RepositoryReader
null
as the maxTime to indicate that the returned log records do not have
to meet a maxTime criteria.
getLogLists
in interface RepositoryReader
minTime
- minimum Date
value that will be included in
the returned listmaxTime
- maximum Date
value that will be included in
the returned list
LogRepositoryException
- 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
RepositoryReader
RepositoryLogRecordHeader.getRepositoryPointer()
to obtain the
RepositoryPointer for a particular log record.
getLogLists
in interface RepositoryReader
after
- pointer to a record the list will start aftermaxTime
- maximum Date
value that will be included in
the returned list
LogRepositoryException
- 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.
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |