org.apache.aries.jmx.blueprint.impl
Class BlueprintState
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.apache.aries.jmx.blueprint.impl.BlueprintState
- All Implemented Interfaces:
- MBeanRegistration, NotificationBroadcaster, NotificationEmitter, BlueprintStateMBean
public class BlueprintState
- extends NotificationBroadcasterSupport
- implements BlueprintStateMBean, MBeanRegistration
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BLUEPRINT_EVENT
public static String BLUEPRINT_EVENT
BlueprintState
public BlueprintState(org.osgi.framework.BundleContext context)
getBlueprintBundleIds
public long[] getBlueprintBundleIds()
throws IOException
- Description copied from interface:
BlueprintStateMBean
- Returns all the blueprint bundles' IDs, which are either
successfully created or not by current extender.
- Specified by:
getBlueprintBundleIds
in interface BlueprintStateMBean
- Returns:
- the list of all the blueprint bundles's IDs (either successfully created or not by current extender)
- Throws:
IOException
- if the operation fails
getLastEvent
public CompositeData getLastEvent(long bundleId)
throws IOException
- Description copied from interface:
BlueprintStateMBean
- Returns the BlueprintEvent associated with this blueprint container.
The returned Composite Data is typed by
BlueprintStateMBean.OSGI_BLUEPRINT_EVENT_TYPE
.
- Specified by:
getLastEvent
in interface BlueprintStateMBean
- Parameters:
bundleId
- The bundle id of a blueprint bundle
- Returns:
- the last event associated with the blueprint bundle, see
BlueprintStateMBean.OSGI_BLUEPRINT_EVENT_TYPE
- Throws:
IOException
- if the operation fails
getLastEvents
public TabularData getLastEvents()
throws IOException
- Description copied from interface:
BlueprintStateMBean
- Returns all the last events associated with the blueprint bundles.
- Specified by:
getLastEvents
in interface BlueprintStateMBean
- Returns:
- the tabular representation of all the last events associated with the blueprint bundles see
BlueprintStateMBean.OSGI_BLUEPRINT_EVENTS_TYPE
- Throws:
IOException
- if the operation fails
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-2013 The Apache Software Foundation. All Rights Reserved.