org.apache.felix.jmood.compendium
Class LogManager
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.apache.felix.jmood.compendium.LogManager
- All Implemented Interfaces:
- EventListener, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, LogManagerMBean, LogListener
public class LogManager
- extends javax.management.NotificationBroadcasterSupport
- implements LogListener, javax.management.MBeanRegistration, LogManagerMBean
This class enables remote management of
org.osgi.service.log.LogReaderService It enables the operator to read
the system log.
Methods inherited from class javax.management.NotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogManager
public LogManager(AgentContext ac)
setLogLevel
public void setLogLevel(int level)
- Specified by:
setLogLevel
in interface LogManagerMBean
getLogLevel
public int getLogLevel()
- Specified by:
getLogLevel
in interface LogManagerMBean
getLog
public javax.management.openmbean.CompositeData[] getLog()
- Specified by:
getLog
in interface LogManagerMBean
getLogMessages
public String[] getLogMessages()
- This method exposes the attribute LogFromReader for remote management.
The main difference with the log attribute is that the later uses the
level configuration specified by the log level attribute and as a
drawback does not include log entries registered before the log manager
was started.
- Specified by:
getLogMessages
in interface LogManagerMBean
- Returns:
postDeregister
public void postDeregister()
- Specified by:
postDeregister
in interface javax.management.MBeanRegistration
- See Also:
MBeanRegistration.postDeregister()
postRegister
public void postRegister(Boolean registrationDone)
- Specified by:
postRegister
in interface javax.management.MBeanRegistration
- Parameters:
registrationDone
- - See Also:
MBeanRegistration.postRegister(java.lang.Boolean)
preDeregister
public void preDeregister()
throws Exception
- Specified by:
preDeregister
in interface javax.management.MBeanRegistration
- Throws:
Exception
- See Also:
MBeanRegistration.preDeregister()
preRegister
public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
- Specified by:
preRegister
in interface javax.management.MBeanRegistration
- Parameters:
server
- name
-
- Returns:
-
- Throws:
Exception
- See Also:
MBeanRegistration.preRegister(javax.management.MBeanServer,
javax.management.ObjectName)
logged
public void logged(LogEntry entry)
- Specified by:
logged
in interface LogListener
- Parameters:
arg0
- - See Also:
LogListener.logged(org.osgi.service.log.LogEntry)
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.