Class RemoteResultCollector
java.lang.Object
com.ibm.websphere.logging.hpel.reader.RemoteResultCollector
Utility class to collect query results into Serializable form convenient for passing
over the wire.
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteResultCollector(RepositoryReader logReader) constructs collector retrieving results from the provided RepositoryReader implementation. -
Method Summary
Modifier and TypeMethodDescriptiongetLogListForServerInstance(RemoteInstanceDetails indicator, RepositoryPointer after, int offset, int maxRecords, Locale locale) retrieves records and header for one server instance.getLogLists(LogQueryBean logQueryBean, RepositoryPointer after) retrieves results for all server instances in the repository.
-
Constructor Details
-
RemoteResultCollector
constructs collector retrieving results from the provided RepositoryReader implementation.- Parameters:
logReader- log record source to query for the requested data.
-
-
Method Details
-
getLogLists
public RemoteAllResults getLogLists(LogQueryBean logQueryBean, RepositoryPointer after) throws LogRepositoryException retrieves results for all server instances in the repository.- Parameters:
logQueryBean- query indicatorafter- starting location of instances to be return.- Returns:
- Set of all server instances satisfying the query request.
- Throws:
LogRepositoryException- indicating that an error occurred while reading list of instances from the server.
-
getLogListForServerInstance
public RemoteInstanceResult getLogListForServerInstance(RemoteInstanceDetails indicator, RepositoryPointer after, int offset, int maxRecords, Locale locale) throws LogRepositoryException retrieves records and header for one server instance.- Parameters:
indicator- server instance identifier.after- starting location after which records are return.offset- number of records to skip.maxRecords- maximum number of records to return.locale- language into which record messages are translated.- Returns:
- Set of instance log records satisfying the original query request.
- Throws:
LogRepositoryException- indicating that an error occurred while reading records from the server.
-