org.apache.felix.mosgi.jmx.remotelogger
Class Logger

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.apache.felix.mosgi.jmx.remotelogger.Logger
All Implemented Interfaces:
Serializable, EventListener, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, LoggerMBean, BundleActivator, ServiceListener, LogListener

public class Logger
extends javax.management.NotificationBroadcasterSupport
implements LogListener, BundleActivator, ServiceListener, LoggerMBean, Serializable

See Also:
Serialized Form

Constructor Summary
Logger()
           
 
Method Summary
 Integer getLogLvl()
           
 void logged(LogEntry log)
           
 void logged(LogEntry log, boolean oldLog)
           
 void sendOldLog()
           
 void serviceChanged(ServiceEvent serviceevent)
           
 void setLogLvl(Integer lvl)
           
 void start(BundleContext bc)
           
 void stop(BundleContext bc)
           
 
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
 

Constructor Detail

Logger

public Logger()
Method Detail

sendOldLog

public void sendOldLog()
Specified by:
sendOldLog in interface LoggerMBean

setLogLvl

public void setLogLvl(Integer lvl)
Specified by:
setLogLvl in interface LoggerMBean

getLogLvl

public Integer getLogLvl()
Specified by:
getLogLvl in interface LoggerMBean

serviceChanged

public void serviceChanged(ServiceEvent serviceevent)
Specified by:
serviceChanged in interface ServiceListener

logged

public void logged(LogEntry log)
Specified by:
logged in interface LogListener

logged

public void logged(LogEntry log,
                   boolean oldLog)

start

public void start(BundleContext bc)
           throws Exception
Specified by:
start in interface BundleActivator
Throws:
Exception

stop

public void stop(BundleContext bc)
          throws Exception
Specified by:
stop in interface BundleActivator
Throws:
Exception


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.