L
- The Logger
type to be supported. As the
AbstractCompositeLogger
is being extended to support other
Logger
types, we have to provide this generic parameter (for
example, sub-classes make use of the AbstractCompositeLogger.getLoggers()
method to
access the encapsulated Logger
instances being sub-types of
the Logger
interface).T
- The type of the Record
instances managed by the
Logger
.public abstract class AbstractCompositeQueryLogger<L extends QueryLogger<T>,T> extends AbstractCompositeLogger<L,T> implements QueryLogger<T>
CompositeQueryLoggerImpl
extends the
CompositeLoggerImpl
with the query logger
functionality. In contrast to the #log(Record) method, which is forwarded to
exactly one of the encapsulated query logger instances, the #findLogs()
method calls are forwarded to all of the encapsulated query logger instances.
(in case, partitioning is needed, take a look at the
PartedQueryLoggerImpl
)CompositeQueryLoggerImpl
Constructor and Description |
---|
AbstractCompositeQueryLogger(L... aLoggers)
Constructs an
AbstractCompositeQueryLogger from the provided
Logger instances. |
Modifier and Type | Method and Description |
---|---|
org.refcodes.tabular.Records<T> |
findLogs()
Retrieves all available
Record instances being logged. |
org.refcodes.tabular.Records<T> |
findLogs(org.refcodes.criteria.Criteria aCriteria)
Retrieves all available
Record instances being logged matching
the given criteria and restrictions. |
org.refcodes.tabular.Records<T> |
findLogs(org.refcodes.criteria.Criteria aCriteria,
org.refcodes.tabular.Header<T> aHeader)
Retrieves all available
Record instances being logged matching
the given criteria and restrictions. |
org.refcodes.tabular.Records<T> |
findLogs(org.refcodes.criteria.Criteria aCriteria,
org.refcodes.tabular.Header<T> aHeader,
int aLimit)
Retrieves all available
Record instances being logged matching
the given criteria and restrictions. |
org.refcodes.tabular.Records<T> |
findLogs(org.refcodes.criteria.Criteria aCriteria,
int aLimit)
Retrieves all available
Record instances being logged matching
the given criteria and restrictions. |
org.refcodes.tabular.Records<T> |
findLogs(org.refcodes.tabular.Header<T> aHeader,
int aLimit)
Retrieves all available
Record instances being logged matching
the given criteria and restrictions. |
org.refcodes.tabular.Records<T> |
findLogs(int aLimit)
Retrieves all available
Record instances being logged matching
the given criteria and restrictions. |
destroy, getLoggers, log
@SafeVarargs public AbstractCompositeQueryLogger(L... aLoggers)
AbstractCompositeQueryLogger
from the provided
Logger
instances.aLoggers
- The Logger
instances to be used for the
AbstractCompositeQueryLogger
.public org.refcodes.tabular.Records<T> findLogs()
QueryLogger
Record
instances being logged.findLogs
in interface QueryLogger<T>
Records
instance containing all available
Record
instances being logged.public org.refcodes.tabular.Records<T> findLogs(int aLimit)
QueryLogger
Record
instances being logged matching
the given criteria and restrictions.findLogs
in interface QueryLogger<T>
aLimit
- The maximum Record
instances contained in the
returned Records
instance; there may be more
Record
instances which are not contained in the
Records
instance in case the Records
instance's
size is that of the specified limit.Records
instance containing all available
Record
instances being logged matching the given criteria
and restrictions.public org.refcodes.tabular.Records<T> findLogs(org.refcodes.criteria.Criteria aCriteria)
QueryLogger
Record
instances being logged matching
the given criteria and restrictions.findLogs
in interface QueryLogger<T>
aCriteria
- The Criteria
to be applied to the Record
instancesRecords
instance containing all available
Record
instances being logged matching the given criteria
and restrictions.public org.refcodes.tabular.Records<T> findLogs(org.refcodes.tabular.Header<T> aHeader, int aLimit)
QueryLogger
Record
instances being logged matching
the given criteria and restrictions.findLogs
in interface QueryLogger<T>
aHeader
- The Header
used to restrict the "columns"
(key/value entries) in the retrieved Record
instances
(provided by the Records
instance).aLimit
- The maximum Record
instances contained in the
returned Records
instance; there may be more
Record
instances which are not contained in the
Records
instance in case the Records
instance's
size is that of the specified limit.Records
instance containing all available
Record
instances being logged matching the given criteria
and restrictions.public org.refcodes.tabular.Records<T> findLogs(org.refcodes.criteria.Criteria aCriteria, int aLimit)
QueryLogger
Record
instances being logged matching
the given criteria and restrictions.findLogs
in interface QueryLogger<T>
aCriteria
- The Criteria
to be applied to the Record
instancesaLimit
- The maximum Record
instances contained in the
returned Records
instance; there may be more
Record
instances which are not contained in the
Records
instance in case the Records
instance's
size is that of the specified limit.Records
instance containing all available
Record
instances being logged matching the given criteria
and restrictions.public org.refcodes.tabular.Records<T> findLogs(org.refcodes.criteria.Criteria aCriteria, org.refcodes.tabular.Header<T> aHeader)
QueryLogger
Record
instances being logged matching
the given criteria and restrictions.findLogs
in interface QueryLogger<T>
aCriteria
- The Criteria
to be applied to the Record
instancesaHeader
- The Header
used to restrict the "columns"
(key/value entries) in the retrieved Record
instances
(provided by the Records
instance).Records
instance containing all available
Record
instances being logged matching the given criteria
and restrictions.public org.refcodes.tabular.Records<T> findLogs(org.refcodes.criteria.Criteria aCriteria, org.refcodes.tabular.Header<T> aHeader, int aLimit)
QueryLogger
Record
instances being logged matching
the given criteria and restrictions.findLogs
in interface QueryLogger<T>
aCriteria
- The Criteria
to be applied to the Record
instancesaHeader
- The Header
used to restrict the "columns"
(key/value entries) in the retrieved Record
instances
(provided by the Records
instance).aLimit
- The maximum Record
instances contained in the
returned Records
instance; there may be more
Record
instances which are not contained in the
Records
instance in case the Records
instance's
size is that of the specified limit.Records
instance containing all available
Record
instances being logged matching the given criteria
and restrictions.Copyright © 2016. All rights reserved.