Class ServerEventLogger
java.lang.Object
org.infinispan.server.logging.events.ServerEventLogger
- All Implemented Interfaces:
org.infinispan.notifications.Listenable,org.infinispan.util.logging.events.EventLogger
public class ServerEventLogger
extends Object
implements org.infinispan.util.logging.events.EventLogger
ServerEventLogger. This event logger takes care of maintaining the server event log cache and
provides methods for querying its contents across all nodes. For resilience, the event log is
stored in a local, bounded, persistent cache and distributed executors are used to gather logs
from all the nodes in the cluster.
- Since:
- 8.2
- Author:
- Tristan Tarrant
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final org.infinispan.util.logging.Log -
Constructor Summary
ConstructorsConstructorDescriptionServerEventLogger(org.infinispan.manager.EmbeddedCacheManager cacheManager, org.infinispan.commons.time.TimeService timeService, org.infinispan.util.logging.events.EventLoggerNotifier notifier, org.infinispan.util.concurrent.BlockingManager blockingManager) -
Method Summary
Modifier and TypeMethodDescriptionaddListenerAsync(Object listener) org.infinispan.util.logging.events.EventLoggerorg.infinispan.util.logging.events.EventLoggerList<org.infinispan.util.logging.events.EventLog>getEvents(Instant start, int count, Optional<org.infinispan.util.logging.events.EventLogCategory> category, Optional<org.infinispan.util.logging.events.EventLogLevel> level) voidlog(org.infinispan.util.logging.events.EventLogLevel level, org.infinispan.util.logging.events.EventLogCategory category, String message) removeListenerAsync(Object listener) org.infinispan.util.logging.events.EventLoggerorg.infinispan.util.logging.events.EventLoggerscope(org.infinispan.remoting.transport.Address scope) org.infinispan.util.logging.events.EventLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.util.logging.events.EventLogger
context, detail, error, fatal, info, warn, who, whoMethods inherited from interface org.infinispan.notifications.Listenable
addListener, removeListener
-
Field Details
-
EVENT_LOG_CACHE
- See Also:
-
log
public static final org.infinispan.util.logging.Log log
-
-
Constructor Details
-
ServerEventLogger
public ServerEventLogger(org.infinispan.manager.EmbeddedCacheManager cacheManager, org.infinispan.commons.time.TimeService timeService, org.infinispan.util.logging.events.EventLoggerNotifier notifier, org.infinispan.util.concurrent.BlockingManager blockingManager)
-
-
Method Details
-
log
public void log(org.infinispan.util.logging.events.EventLogLevel level, org.infinispan.util.logging.events.EventLogCategory category, String message) - Specified by:
login interfaceorg.infinispan.util.logging.events.EventLogger
-
scope
public org.infinispan.util.logging.events.EventLogger scope(org.infinispan.remoting.transport.Address scope) - Specified by:
scopein interfaceorg.infinispan.util.logging.events.EventLogger
-
scope
- Specified by:
scopein interfaceorg.infinispan.util.logging.events.EventLogger
-
context
- Specified by:
contextin interfaceorg.infinispan.util.logging.events.EventLogger
-
detail
- Specified by:
detailin interfaceorg.infinispan.util.logging.events.EventLogger
-
who
- Specified by:
whoin interfaceorg.infinispan.util.logging.events.EventLogger
-
getEvents
public List<org.infinispan.util.logging.events.EventLog> getEvents(Instant start, int count, Optional<org.infinispan.util.logging.events.EventLogCategory> category, Optional<org.infinispan.util.logging.events.EventLogLevel> level) - Specified by:
getEventsin interfaceorg.infinispan.util.logging.events.EventLogger
-
addListenerAsync
- Specified by:
addListenerAsyncin interfaceorg.infinispan.notifications.Listenable
-
removeListenerAsync
- Specified by:
removeListenerAsyncin interfaceorg.infinispan.notifications.Listenable
-
getListeners
- Specified by:
getListenersin interfaceorg.infinispan.notifications.Listenable
-