|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectcacheRunner.LoggingCacheCallback
public abstract class LoggingCacheCallback
The abstract superclass of various GemFire
CacheCallbacks that log information about the events
that they receieve. Because this class implements the
Declarable interface, it may be used in a
cache.xml file.
| Constructor Summary | |
|---|---|
protected |
LoggingCacheCallback()
Creates a new LoggingCacheCallback that logs to
standard out. |
| Method Summary | |
|---|---|
void |
close()
No logging is performed when a callback is closed |
protected String |
format(EntryEvent event)
Formats an EntryEvent into a string |
protected String |
format(Object obj)
Formats an arbitrary object into a string |
void |
init(Properties props)
Initializes this cache callback using data configured in a cache.xml file. |
protected void |
log(String message,
Cache cache)
Logs a message to either standard out or to the GemFire logger obtained from the given Cache. |
protected void |
log(String kind,
EntryEvent event)
Logs information about an EntryEvent |
protected void |
log(String kind,
RegionEvent event)
Logs information about a RegionEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected LoggingCacheCallback()
LoggingCacheCallback that logs to
standard out.
| Method Detail |
|---|
public void init(Properties props)
cache.xml file. This callback recognizes the
useGemFireLogger property.
init in interface Declarablepublic void close()
close in interface CacheCallback
protected void log(String message,
Cache cache)
Cache.
Cache.getLogger()protected String format(Object obj)
protected String format(EntryEvent event)
EntryEvent into a string
protected void log(String kind,
EntryEvent event)
EntryEvent
kind - The kind (update, destroy, etc.) of event to be logged
protected void log(String kind,
RegionEvent event)
RegionEvent
kind - The kind (destroy, etc.) of event to be logged
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||