org.apache.aries.jmx.blueprint.impl
Class BlueprintState

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.apache.aries.jmx.blueprint.impl.BlueprintState
All Implemented Interfaces:
MBeanRegistration, NotificationBroadcaster, NotificationEmitter, BlueprintStateMBean

public class BlueprintState
extends NotificationBroadcasterSupport
implements BlueprintStateMBean, MBeanRegistration


Nested Class Summary
static class BlueprintState.JMXThreadFactory
           
 
Field Summary
static String BLUEPRINT_EVENT
           
 
Fields inherited from interface org.apache.aries.jmx.blueprint.BlueprintStateMBean
BUNDLE_ID, BUNDLE_ID_ITEM, DEPENDENCIES, DEPENDENCIES_ITEM, EVENT_TYPE, EVENT_TYPE_ITEM, EXCEPTION_MESSAGE, EXCEPTION_MESSAGE_ITEM, EXTENDER_BUNDLE_ID, EXTENDER_BUNDLE_ID_ITEM, OBJECTNAME, OSGI_BLUEPRINT_EVENT_TYPE, OSGI_BLUEPRINT_EVENTS_TYPE, REPLAY, REPLAY_ITEM, TIMESTAMP, TIMESTAMP_ITEM
 
Constructor Summary
BlueprintState(org.osgi.framework.BundleContext context)
           
 
Method Summary
 long[] getBlueprintBundleIds()
           
 CompositeData getLastEvent(long bundleId)
           
 TabularData getLastEvents()
           
 MBeanNotificationInfo[] getNotificationInfo()
           
protected  void onEvent(org.osgi.service.blueprint.container.BlueprintEvent event)
           
 void postDeregister()
           
 void postRegister(Boolean registrationDone)
           
 void preDeregister()
           
 ObjectName preRegister(MBeanServer server, ObjectName name)
           
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLUEPRINT_EVENT

public static String BLUEPRINT_EVENT
Constructor Detail

BlueprintState

public BlueprintState(org.osgi.framework.BundleContext context)
Method Detail

getBlueprintBundleIds

public long[] getBlueprintBundleIds()
                             throws IOException
Specified by:
getBlueprintBundleIds in interface BlueprintStateMBean
Throws:
IOException

getLastEvent

public CompositeData getLastEvent(long bundleId)
                           throws IOException
Specified by:
getLastEvent in interface BlueprintStateMBean
Throws:
IOException

getLastEvents

public TabularData getLastEvents()
                          throws IOException
Specified by:
getLastEvents in interface BlueprintStateMBean
Throws:
IOException

preRegister

public ObjectName preRegister(MBeanServer server,
                              ObjectName name)
                       throws Exception
Specified by:
preRegister in interface MBeanRegistration
Throws:
Exception

postRegister

public void postRegister(Boolean registrationDone)
Specified by:
postRegister in interface MBeanRegistration

preDeregister

public void preDeregister()
                   throws Exception
Specified by:
preDeregister in interface MBeanRegistration
Throws:
Exception

postDeregister

public void postDeregister()
Specified by:
postDeregister in interface MBeanRegistration

onEvent

protected void onEvent(org.osgi.service.blueprint.container.BlueprintEvent event)

getNotificationInfo

public MBeanNotificationInfo[] getNotificationInfo()
Specified by:
getNotificationInfo in interface NotificationBroadcaster
Overrides:
getNotificationInfo in class NotificationBroadcasterSupport
See Also:
NotificationBroadcasterSupport.getNotificationInfo()


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.