public class ActivityServerLogger extends BatchedActivityUnitLogger implements ActivityServerLoggerMBean, NotificationEmitter
| Modifier and Type | Class and Description |
|---|---|
protected class |
ActivityServerLogger.NotificationDetails
This class provides a container for the listener details.
|
| Constructor and Description |
|---|
ActivityServerLogger() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotificationListener(NotificationListener l,
NotificationFilter filter,
Object handback) |
protected void |
appendActivity(ActivityUnit act)
This method appends the supplied activity event to the log.
|
void |
close()
This method closes the Activity Server Logger.
|
ActivityServer |
getActivityServer()
This method gets the activity server.
|
int |
getFailuresSinceLastSuccess()
This method returns the number of failures that have occurred since the
last successful activity information was logged.
|
MBeanNotificationInfo[] |
getNotificationInfo() |
int |
getPendingActivityUnits()
This method returns the size of the queue containing activity units
pending storage.
|
void |
init()
This method initializes the Activity Server Logger.
|
void |
removeNotificationListener(NotificationListener l) |
void |
removeNotificationListener(NotificationListener l,
NotificationFilter filter,
Object handback) |
protected void |
reportFailure(Exception e)
This method handles reporting failures.
|
protected void |
sendMessage()
This method sends the message.
|
void |
setActivityServer(ActivityServer activityServer)
This method sets the activity server.
|
getMaxTimeInterval, getMaxUnitCount, log, reset, setMaxTimeInterval, setMaxUnitCountclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMaxTimeInterval, getMaxUnitCount, setMaxTimeInterval, setMaxUnitCountpublic void init()
init in interface ActivityUnitLoggerinit in class BatchedActivityUnitLoggerprotected void reportFailure(Exception e)
e - The exceptionpublic int getFailuresSinceLastSuccess()
getFailuresSinceLastSuccess in interface ActivityServerLoggerMBeanpublic void setActivityServer(ActivityServer activityServer)
activityServer - The activity serverpublic ActivityServer getActivityServer()
public int getPendingActivityUnits()
getPendingActivityUnits in interface ActivityServerLoggerMBeanprotected void appendActivity(ActivityUnit act) throws Exception
appendActivity in class BatchedActivityUnitLoggeract - The activity eventException - Failed to append the activity event to the logprotected void sendMessage()
throws Exception
sendMessage in class BatchedActivityUnitLoggerException - Failed to send the messagepublic void close()
close in interface ActivityUnitLoggerclose in class BatchedActivityUnitLoggerpublic void addNotificationListener(NotificationListener l, NotificationFilter filter, Object handback) throws IllegalArgumentException
addNotificationListener in interface NotificationBroadcasterIllegalArgumentExceptionpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcasterpublic void removeNotificationListener(NotificationListener l) throws ListenerNotFoundException
removeNotificationListener in interface NotificationBroadcasterListenerNotFoundExceptionpublic void removeNotificationListener(NotificationListener l, NotificationFilter filter, Object handback) throws ListenerNotFoundException
removeNotificationListener in interface NotificationEmitterListenerNotFoundExceptionCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.