public class ScrServiceMBeanImpl extends StandardMBean implements ScrServiceMBean
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_LABEL |
static String |
COMPONENT_NAME |
static String |
OBJECT_NAME |
COMPONENT, COMPONENT_ID, COMPONENT_PROPERTIES, COMPONENT_REFERENCES, COMPONENT_STATE, PROPERTY, PROPERTY_KEY, PROPERTY_VALUE, REFERENCE, REFERENCE_AVAILABILITY, REFERENCE_AVAILABILITY_MANDATORY, REFERENCE_AVAILABILITY_OPTIONAL, REFERENCE_BOUND_SERVICES, REFERENCE_CARDINALITY, REFERENCE_CARDINALITY_MULTIPLE, REFERENCE_CARDINALITY_SINGLE, REFERENCE_NAME, REFERENCE_POLICY, REFERENCE_POLICY_DYNAMIC, REFERENCE_POLICY_STATIC, REFERENCE_SATISFIED| Constructor and Description |
|---|
ScrServiceMBeanImpl()
Creates new Declarative Services MBean.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Service component activation call back.
|
void |
activateComponent(String componentName)
Activates a component that is currently in a DISABLED state.
|
int |
componentState(String componentName)
Returns the named components state
|
void |
deactivate()
Service component deactivation call back.
|
void |
deactivateComponent(String componentName)
Disables a component that is not in an ACTIVE state.
|
TabularData |
getComponents()
Displays a
TabularData with all the component details. |
boolean |
isComponentActive(String componentName)
Verifies if the named component is currently in an ACTIVE state.
|
String[] |
listComponents()
Presents a array of components currently registered with the SCR.
|
void |
setmBeanServer(MBeanServer mBeanServer) |
void |
setScrService(org.apache.felix.scr.ScrService scrService) |
void |
unsetmBeanServer(MBeanServer mBeanServer) |
void |
unsetScrService(org.apache.felix.scr.ScrService scrService) |
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementationpublic static final String OBJECT_NAME
public static final String COMPONENT_NAME
public static final String COMPONENT_LABEL
public ScrServiceMBeanImpl()
throws NotCompliantMBeanException
NotCompliantMBeanExceptionpublic void activate()
throws Exception
Exceptionpublic void deactivate()
throws Exception
Exceptionpublic TabularData getComponents()
ScrServiceMBeanTabularData with all the component details.getComponents in interface ScrServiceMBeanpublic String[] listComponents()
ScrServiceMBeanlistComponents in interface ScrServiceMBeanpublic boolean isComponentActive(String componentName) throws MBeanException
ScrServiceMBeanisComponentActive in interface ScrServiceMBeancomponentName - the components nameMBeanExceptionpublic int componentState(String componentName)
ScrServiceMBeancomponentState in interface ScrServiceMBeancomponentName - the components namepublic void activateComponent(String componentName)
ScrServiceMBeanactivateComponent in interface ScrServiceMBeancomponentName - the components namepublic void deactivateComponent(String componentName)
ScrServiceMBeandeactivateComponent in interface ScrServiceMBeancomponentName - the components namepublic void setmBeanServer(MBeanServer mBeanServer)
public void unsetmBeanServer(MBeanServer mBeanServer)
public void setScrService(org.apache.felix.scr.ScrService scrService)
public void unsetScrService(org.apache.felix.scr.ScrService scrService)
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.