|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.apache.aries.jmx.framework.ServiceState
public class ServiceState
Implementation of ServiceStateMBean
which emits JMX Notification
for framework
ServiceEvent
events
Field Summary | |
---|---|
protected ExecutorService |
eventDispatcher
|
protected Logger |
logger
|
static String |
SERVICE_EVENT
|
protected org.osgi.framework.AllServiceListener |
serviceListener
|
Fields inherited from interface org.osgi.jmx.framework.ServiceStateMBean |
---|
BUNDLE_IDENTIFIER, BUNDLE_IDENTIFIER_ITEM, BUNDLE_LOCATION, BUNDLE_LOCATION_ITEM, BUNDLE_SYMBOLIC_NAME, BUNDLE_SYMBOLIC_NAME_ITEM, EVENT, EVENT_ITEM, IDENTIFIER, IDENTIFIER_ITEM, OBJECT_CLASS, OBJECT_CLASS_ITEM, OBJECTNAME, SERVICE_EVENT_TYPE, SERVICE_TYPE, SERVICES_TYPE, USING_BUNDLES, USING_BUNDLES_ITEM |
Constructor Summary | |
---|---|
ServiceState(org.osgi.framework.BundleContext bundleContext,
Logger logger)
|
Method Summary | |
---|---|
long |
getBundleIdentifier(long serviceId)
Answer the bundle identifier of the bundle which registered the service |
protected ExecutorService |
getEventDispatcher()
|
MBeanNotificationInfo[] |
getNotificationInfo()
|
String[] |
getObjectClass(long serviceId)
Answer the list of interfaces that this service implements |
TabularData |
getProperties(long serviceId)
Answer the map of properties associated with this service |
long[] |
getUsingBundles(long serviceId)
Answer the list of identifiers of the bundles that use the service |
TabularData |
listServices()
Answer the service state of the system in tabular form. |
void |
postDeregister()
|
void |
postRegister(Boolean registrationDone)
|
void |
preDeregister()
|
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
|
protected void |
shutDownDispatcher()
|
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 |
---|
protected Logger logger
protected ExecutorService eventDispatcher
protected org.osgi.framework.AllServiceListener serviceListener
public static String SERVICE_EVENT
Constructor Detail |
---|
public ServiceState(org.osgi.framework.BundleContext bundleContext, Logger logger)
Method Detail |
---|
public long getBundleIdentifier(long serviceId) throws IOException
ServiceStateMBean
getBundleIdentifier
in interface ServiceStateMBean
serviceId
- the identifier of the service
IOException
- if the operation failsServiceStateMBean.getBundleIdentifier(long)
public String[] getObjectClass(long serviceId) throws IOException
ServiceStateMBean
getObjectClass
in interface ServiceStateMBean
serviceId
- the identifier of the service
IOException
- if the operation failsServiceStateMBean.getObjectClass(long)
public TabularData getProperties(long serviceId) throws IOException
ServiceStateMBean
getProperties
in interface ServiceStateMBean
serviceId
- the identifier of the service
org.osgi.framework.Constants
interface
IOException
- if the operation failsServiceStateMBean.getProperties(long)
public long[] getUsingBundles(long serviceId) throws IOException
ServiceStateMBean
getUsingBundles
in interface ServiceStateMBean
serviceId
- the identifier of the service
IOException
- if the operation failsServiceStateMBean.getUsingBundles(long)
public TabularData listServices() throws IOException
ServiceStateMBean
listServices
in interface ServiceStateMBean
IOException
- If the operation failsServiceStateMBean.listServices()
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
getNotificationInfo
in class NotificationBroadcasterSupport
NotificationBroadcasterSupport.getNotificationInfo()
public void postDeregister()
postDeregister
in interface MBeanRegistration
MBeanRegistration.postDeregister()
public void postRegister(Boolean registrationDone)
postRegister
in interface MBeanRegistration
MBeanRegistration.postRegister(java.lang.Boolean)
public void preDeregister() throws Exception
preDeregister
in interface MBeanRegistration
Exception
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister
in interface MBeanRegistration
Exception
MBeanRegistration.preRegister(javax.management.MBeanServer, javax.management.ObjectName)
protected void shutDownDispatcher()
protected ExecutorService getEventDispatcher()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |