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, setMaxUnitCount
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMaxTimeInterval, getMaxUnitCount, setMaxTimeInterval, setMaxUnitCount
public void init()
init
in interface ActivityUnitLogger
init
in class BatchedActivityUnitLogger
protected void reportFailure(Exception e)
e
- The exceptionpublic int getFailuresSinceLastSuccess()
getFailuresSinceLastSuccess
in interface ActivityServerLoggerMBean
public void setActivityServer(ActivityServer activityServer)
activityServer
- The activity serverpublic ActivityServer getActivityServer()
public int getPendingActivityUnits()
getPendingActivityUnits
in interface ActivityServerLoggerMBean
protected void appendActivity(ActivityUnit act) throws Exception
appendActivity
in class BatchedActivityUnitLogger
act
- The activity eventException
- Failed to append the activity event to the logprotected void sendMessage() throws Exception
sendMessage
in class BatchedActivityUnitLogger
Exception
- Failed to send the messagepublic void close()
close
in interface ActivityUnitLogger
close
in class BatchedActivityUnitLogger
public void addNotificationListener(NotificationListener l, NotificationFilter filter, Object handback) throws IllegalArgumentException
addNotificationListener
in interface NotificationBroadcaster
IllegalArgumentException
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
public void removeNotificationListener(NotificationListener l) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationBroadcaster
ListenerNotFoundException
public void removeNotificationListener(NotificationListener l, NotificationFilter filter, Object handback) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationEmitter
ListenerNotFoundException
Copyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.