org.apache.felix.framework
Class MonitorServiceImpl

java.lang.Object
  extended by org.apache.felix.framework.MonitorServiceImpl
All Implemented Interfaces:
EventListener, MonitoringService, BundleListener

public class MonitorServiceImpl
extends Object
implements MonitoringService, BundleListener


Constructor Summary
MonitorServiceImpl(Felix felix)
           
 
Method Summary
 void bundleChanged(BundleEvent event)
          Receives notification that a bundle has had a lifecycle change.
 void destroy()
           
 Collection<ClassLoader> getClassLoaders()
           
 ExecutorService getExecutor(Bundle bundle)
           
 ThreadGroup getThreadGroup(Bundle bundle)
           
 Collection<ThreadGroup> getThreadGroups()
           
<T> Future<T>
runInContext(Bundle bundle, Callable<T> callable)
           
 Future<?> runInContext(Bundle bundle, Runnable run)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitorServiceImpl

public MonitorServiceImpl(Felix felix)
Method Detail

runInContext

public Future<?> runInContext(Bundle bundle,
                              Runnable run)
Specified by:
runInContext in interface MonitoringService

runInContext

public <T> Future<T> runInContext(Bundle bundle,
                                  Callable<T> callable)
Specified by:
runInContext in interface MonitoringService

getExecutor

public ExecutorService getExecutor(Bundle bundle)
Specified by:
getExecutor in interface MonitoringService

getThreadGroup

public ThreadGroup getThreadGroup(Bundle bundle)
Specified by:
getThreadGroup in interface MonitoringService

getThreadGroups

public Collection<ThreadGroup> getThreadGroups()
Specified by:
getThreadGroups in interface MonitoringService

getClassLoaders

public Collection<ClassLoader> getClassLoaders()
Specified by:
getClassLoaders in interface MonitoringService

start

public void start()

destroy

public void destroy()

bundleChanged

public void bundleChanged(BundleEvent event)
Description copied from interface: BundleListener
Receives notification that a bundle has had a lifecycle change.

Specified by:
bundleChanged in interface BundleListener
Parameters:
event - The BundleEvent.


Copyright © 2007-2012 FuseSource, Corp.. All Rights Reserved.