public class FeaturesServiceMBeanImpl extends StandardEmitterMBean implements MBeanRegistration, FeaturesServiceMBean
FeaturesServiceMBean.FEATURE, FEATURE_BUNDLES, FEATURE_CONFIG, FEATURE_CONFIG_APPEND, FEATURE_CONFIG_ELEMENT, FEATURE_CONFIG_ELEMENT_KEY, FEATURE_CONFIG_ELEMENT_VALUE, FEATURE_CONFIG_ELEMENTS, FEATURE_CONFIG_FILES, FEATURE_CONFIG_FILES_ELEMENTS, FEATURE_CONFIG_PID, FEATURE_CONFIGURATIONFILES, FEATURE_CONFIGURATIONS, FEATURE_DEPENDENCIES, FEATURE_EVENT, FEATURE_EVENT_EVENT_TYPE, FEATURE_EVENT_EVENT_TYPE_INSTALLED, FEATURE_EVENT_EVENT_TYPE_UNINSTALLED, FEATURE_EVENT_TYPE, FEATURE_IDENTIFIER, FEATURE_INSTALLED, FEATURE_NAME, FEATURE_VERSION, REPOSITORY, REPOSITORY_EVENT, REPOSITORY_EVENT_EVENT_TYPE, REPOSITORY_EVENT_EVENT_TYPE_ADDED, REPOSITORY_EVENT_EVENT_TYPE_REMOVED, REPOSITORY_EVENT_TYPE, REPOSITORY_FEATURES, REPOSITORY_NAME, REPOSITORY_REPOSITORIES, REPOSITORY_URI| Constructor and Description |
|---|
FeaturesServiceMBeanImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRepository(String uri) |
void |
addRepository(String uri,
boolean install) |
TabularData |
getFeatures() |
org.apache.karaf.features.FeaturesListener |
getFeaturesListener() |
MBeanNotificationInfo[] |
getNotificationInfo() |
TabularData |
getRepositories() |
TabularData |
infoFeature(String name) |
TabularData |
infoFeature(String name,
String version) |
void |
installFeature(String name) |
void |
installFeature(String name,
boolean noClean,
boolean noRefresh) |
void |
installFeature(String name,
boolean noClean,
boolean noRefresh,
boolean noStart) |
void |
installFeature(String name,
String version) |
void |
installFeature(String name,
String version,
boolean noClean,
boolean noRefresh) |
void |
installFeature(String name,
String version,
boolean noClean,
boolean noRefresh,
boolean noStart) |
void |
postDeregister() |
void |
postRegister(Boolean registrationDone) |
void |
preDeregister() |
ObjectName |
preRegister(MBeanServer server,
ObjectName name) |
void |
registerService() |
void |
removeRepository(String uri) |
void |
removeRepository(String uri,
boolean uninstall) |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
setFeaturesService(org.apache.karaf.features.FeaturesService featuresService) |
void |
uninstallFeature(String name) |
void |
uninstallFeature(String name,
boolean noRefresh) |
void |
uninstallFeature(String name,
String version) |
void |
uninstallFeature(String name,
String version,
boolean noRefresh) |
void |
unregisterService() |
addNotificationListener, getMBeanInfo, removeNotificationListener, removeNotificationListener, sendNotificationcacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, getParameterName, invoke, setAttribute, setAttributes, setImplementationpublic FeaturesServiceMBeanImpl()
throws NotCompliantMBeanException
NotCompliantMBeanExceptionpublic ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister in interface MBeanRegistrationpreRegister in class StandardMBeanExceptionpublic void postRegister(Boolean registrationDone)
postRegister in interface MBeanRegistrationpostRegister in class StandardMBeanpublic void preDeregister()
preDeregister in interface MBeanRegistrationpreDeregister in class StandardMBeanpublic void postDeregister()
postDeregister in interface MBeanRegistrationpostDeregister in class StandardMBeanpublic void registerService()
public void unregisterService()
public TabularData getFeatures() throws Exception
getFeatures in interface FeaturesServiceMBeanExceptionpublic TabularData getRepositories() throws Exception
getRepositories in interface FeaturesServiceMBeanExceptionpublic void addRepository(String uri) throws Exception
addRepository in interface FeaturesServiceMBeanExceptionpublic void addRepository(String uri, boolean install) throws Exception
addRepository in interface FeaturesServiceMBeanExceptionpublic void removeRepository(String uri) throws Exception
removeRepository in interface FeaturesServiceMBeanExceptionpublic void removeRepository(String uri, boolean uninstall) throws Exception
removeRepository in interface FeaturesServiceMBeanExceptionpublic void installFeature(String name) throws Exception
installFeature in interface FeaturesServiceMBeanExceptionpublic void installFeature(String name, boolean noClean, boolean noRefresh) throws Exception
installFeature in interface FeaturesServiceMBeanExceptionpublic void installFeature(String name, boolean noClean, boolean noRefresh, boolean noStart) throws Exception
installFeature in interface FeaturesServiceMBeanExceptionpublic void installFeature(String name, String version) throws Exception
installFeature in interface FeaturesServiceMBeanExceptionpublic void installFeature(String name, String version, boolean noClean, boolean noRefresh) throws Exception
installFeature in interface FeaturesServiceMBeanExceptionpublic void installFeature(String name, String version, boolean noClean, boolean noRefresh, boolean noStart) throws Exception
installFeature in interface FeaturesServiceMBeanExceptionpublic TabularData infoFeature(String name) throws Exception
infoFeature in interface FeaturesServiceMBeanExceptionpublic TabularData infoFeature(String name, String version) throws Exception
infoFeature in interface FeaturesServiceMBeanExceptionpublic void uninstallFeature(String name) throws Exception
uninstallFeature in interface FeaturesServiceMBeanExceptionpublic void uninstallFeature(String name, boolean noRefresh) throws Exception
uninstallFeature in interface FeaturesServiceMBeanExceptionpublic void uninstallFeature(String name, String version) throws Exception
uninstallFeature in interface FeaturesServiceMBeanExceptionpublic void uninstallFeature(String name, String version, boolean noRefresh) throws Exception
uninstallFeature in interface FeaturesServiceMBeanExceptionpublic void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public void setFeaturesService(org.apache.karaf.features.FeaturesService featuresService)
public org.apache.karaf.features.FeaturesListener getFeaturesListener()
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcastergetNotificationInfo in class StandardEmitterMBeanCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.