public interface ICacheEventLogger
In general all ICache interface methods should call the logger if one is configured. This will be done on an ad hoc basis for now. Various auxiliaries may have additional events.
Modifier and Type | Field and Description |
---|---|
static String |
DISPOSE_EVENT
ICache dispose
|
static String |
GET_EVENT
ICache get
|
static String |
GETMATCHING_EVENT
ICache getMatching
|
static String |
GETMULTIPLE_EVENT
ICache getMultiple
|
static String |
REMOVE_EVENT
ICache remove
|
static String |
REMOVEALL_EVENT
ICache removeAll
|
static String |
UPDATE_EVENT
ICache update
|
Modifier and Type | Method and Description |
---|---|
<T> ICacheEvent<T> |
createICacheEvent(String source,
String region,
String eventName,
String optionalDetails,
T key)
Creates an event.
|
void |
logApplicationEvent(String source,
String eventName,
String optionalDetails)
Logs an event.
|
void |
logError(String source,
String eventName,
String errorMessage)
Logs an error.
|
<T> void |
logICacheEvent(ICacheEvent<T> event)
Logs an event.
|
static final String UPDATE_EVENT
static final String GET_EVENT
static final String GETMULTIPLE_EVENT
static final String GETMATCHING_EVENT
static final String REMOVE_EVENT
static final String REMOVEALL_EVENT
static final String DISPOSE_EVENT
<T> ICacheEvent<T> createICacheEvent(String source, String region, String eventName, String optionalDetails, T key)
source
- - e.g. RemoteCacheServerregion
- - the name of the regioneventName
- - e.g. update, get, put, removeoptionalDetails
- - any extra messagekey
- - the cache key<T> void logICacheEvent(ICacheEvent<T> event)
event
- - the event created in createICacheEventvoid logApplicationEvent(String source, String eventName, String optionalDetails)
source
- - e.g. RemoteCacheServereventName
- - e.g. update, get, put, removeoptionalDetails
- - any extra messageCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.