org.apache.felix.framework
Class MonitorServiceImpl

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

public class MonitorServiceImpl
extends java.lang.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()
           
 java.util.Collection<java.lang.ClassLoader> getClassLoaders()
           
 java.util.concurrent.ExecutorService getExecutor(Bundle bundle)
           
 java.lang.ThreadGroup getThreadGroup(Bundle bundle)
           
 java.util.Collection<java.lang.ThreadGroup> getThreadGroups()
           
<T> java.util.concurrent.Future<T>
runInContext(Bundle bundle, java.util.concurrent.Callable<T> callable)
           
 java.util.concurrent.Future<?> runInContext(Bundle bundle, java.lang.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 java.util.concurrent.Future<?> runInContext(Bundle bundle,
                                                   java.lang.Runnable run)
Specified by:
runInContext in interface MonitoringService

runInContext

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

getExecutor

public java.util.concurrent.ExecutorService getExecutor(Bundle bundle)
Specified by:
getExecutor in interface MonitoringService

getThreadGroup

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

getThreadGroups

public java.util.Collection<java.lang.ThreadGroup> getThreadGroups()
Specified by:
getThreadGroups in interface MonitoringService

getClassLoaders

public java.util.Collection<java.lang.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.