public class CellarFeaturesMBeanImpl extends StandardMBean implements CellarFeaturesMBean
| Constructor and Description |
|---|
CellarFeaturesMBeanImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRepository(String groupName,
String nameOrUrl)
Add a features repository in a cluster group.
|
void |
addRepository(String groupName,
String nameOrUrl,
String version)
Add a features repository in a cluster group.
|
void |
addRepository(String groupName,
String nameOrUrl,
String version,
boolean install)
Add a features repository in a cluster group.
|
void |
block(String groupName,
String featurePattern,
boolean whitelist,
boolean blacklist,
boolean in,
boolean out)
Change the blocking policy for a feature pattern.
|
org.apache.karaf.cellar.core.ClusterManager |
getClusterManager() |
org.osgi.service.cm.ConfigurationAdmin |
getConfigurationAdmin() |
org.apache.karaf.cellar.core.event.EventProducer |
getEventProducer() |
TabularData |
getFeatures(String groupName)
Get the list of features in a cluster group.
|
org.apache.karaf.features.FeaturesService |
getFeaturesService() |
org.apache.karaf.cellar.core.GroupManager |
getGroupManager() |
List<String> |
getRepositories(String groupName)
Get the list of features repository URLs in a cluster group.
|
void |
installFeature(String groupName,
String name)
Install a feature in a cluster group.
|
void |
installFeature(String groupName,
String name,
boolean noRefresh,
boolean noStart,
boolean noManage,
boolean upgrade)
Install a feature in a cluster group.
|
void |
installFeature(String groupName,
String name,
String version)
Install a feature in a cluster group.
|
void |
installFeature(String groupName,
String name,
String version,
boolean noRefresh,
boolean noStart,
boolean noManage,
boolean upgrade)
Install a feature in a cluster group.
|
void |
refreshRepository(String groupName,
String nameOrUrl)
Refresh a features repository in a cluster group.
|
void |
removeRepository(String groupName,
String repository)
Remove a features repository from a cluster group.
|
void |
removeRepository(String groupName,
String repo,
boolean uninstall)
Remove a features repository from a cluster group, eventually uninstalling all features described in the repository.
|
void |
setClusterManager(org.apache.karaf.cellar.core.ClusterManager clusterManager) |
void |
setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin) |
void |
setEventProducer(org.apache.karaf.cellar.core.event.EventProducer eventProducer) |
void |
setFeaturesService(org.apache.karaf.features.FeaturesService featuresService) |
void |
setGroupManager(org.apache.karaf.cellar.core.GroupManager groupManager) |
void |
uninstallFeature(String groupName,
String name)
Uninstall a feature from a cluster group.
|
void |
uninstallFeature(String groupName,
String name,
boolean noRefresh)
Uninstall a feature from a cluster group.
|
void |
uninstallFeature(String groupName,
String name,
String version)
Uninstall a feature from a cluster group.
|
void |
uninstallFeature(String groupName,
String name,
String version,
boolean noRefresh)
Uninstall a feature from a cluster group.
|
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 CellarFeaturesMBeanImpl()
throws NotCompliantMBeanException
NotCompliantMBeanExceptionpublic org.apache.karaf.cellar.core.ClusterManager getClusterManager()
public void setClusterManager(org.apache.karaf.cellar.core.ClusterManager clusterManager)
public org.apache.karaf.cellar.core.GroupManager getGroupManager()
public void setGroupManager(org.apache.karaf.cellar.core.GroupManager groupManager)
public org.apache.karaf.cellar.core.event.EventProducer getEventProducer()
public void setEventProducer(org.apache.karaf.cellar.core.event.EventProducer eventProducer)
public org.apache.karaf.features.FeaturesService getFeaturesService()
public void setFeaturesService(org.apache.karaf.features.FeaturesService featuresService)
public org.osgi.service.cm.ConfigurationAdmin getConfigurationAdmin()
public void setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)
public void installFeature(String groupName, String name, String version, boolean noRefresh, boolean noStart, boolean noManage, boolean upgrade) throws Exception
CellarFeaturesMBeaninstallFeature in interface CellarFeaturesMBeangroupName - the cluster group name.name - the feature name.version - the feature version.noRefresh - true to not automatically refresh the bundles, false else.noStart - true to not automatically start the bundles, false else.noManage - true to not automatically manage the bundles, false else.upgrade - true to upgrade an existing feature or install it, false else.Exception - in case of install failure.public void installFeature(String groupName, String name, String version) throws Exception
CellarFeaturesMBeaninstallFeature in interface CellarFeaturesMBeangroupName - the cluster group name.name - the feature name.version - the feature version.Exception - in case of install failure.public void installFeature(String groupName, String name) throws Exception
CellarFeaturesMBeaninstallFeature in interface CellarFeaturesMBeangroupName - the cluster group name.name - the feature name.Exception - in case of install failure.public void installFeature(String groupName, String name, boolean noRefresh, boolean noStart, boolean noManage, boolean upgrade) throws Exception
CellarFeaturesMBeaninstallFeature in interface CellarFeaturesMBeangroupName - the cluster group name.name - the feature name.noRefresh - true to not automatically refresh the bundles, false else.noStart - true to not automatically start the bundles, false else.noManage - true to not automatically manage the bundles, false else.upgrade - true to upgrade an existing feature or install it, false else.Exception - in case of install failure.public void uninstallFeature(String groupName, String name, String version) throws Exception
CellarFeaturesMBeanuninstallFeature in interface CellarFeaturesMBeangroupName - the cluster group name.name - the feature name.version - the feature version.Exception - in case of uninstall failure.public void uninstallFeature(String groupName, String name, String version, boolean noRefresh) throws Exception
CellarFeaturesMBeanuninstallFeature in interface CellarFeaturesMBeangroupName - the cluster group name.name - the feature name.version - the feature version.noRefresh - true to not automatically refresh the bundles, false else.Exception - in case of uninstall failure.public void uninstallFeature(String groupName, String name) throws Exception
CellarFeaturesMBeanuninstallFeature in interface CellarFeaturesMBeangroupName - the cluster group name.name - the feature name.Exception - in case of uninstall failure.public void uninstallFeature(String groupName, String name, boolean noRefresh) throws Exception
CellarFeaturesMBeanuninstallFeature in interface CellarFeaturesMBeangroupName - the cluster group name.name - the feature name.noRefresh - true to not automatically refresh the bundles, false else.Exception - in case of uninstall failure.public TabularData getFeatures(String groupName) throws Exception
CellarFeaturesMBeangetFeatures in interface CellarFeaturesMBeangroupName - the cluster group name.Exception - in case of retrieval failure.public List<String> getRepositories(String groupName) throws Exception
CellarFeaturesMBeangetRepositories in interface CellarFeaturesMBeangroupName - the cluster group name.Exception - in case of retrieval failure.public void addRepository(String groupName, String nameOrUrl) throws Exception
CellarFeaturesMBeanaddRepository in interface CellarFeaturesMBeangroupName - the cluster group name.nameOrUrl - the features repository name or URL.Exception - in case of add failure.public void addRepository(String groupName, String nameOrUrl, String version) throws Exception
CellarFeaturesMBeanaddRepository in interface CellarFeaturesMBeangroupName - the cluster group name.nameOrUrl - the features repository name or URL.version - the features repository version (when name is provided).Exception - in case of add failure.public void addRepository(String groupName, String nameOrUrl, String version, boolean install) throws Exception
CellarFeaturesMBeanaddRepository in interface CellarFeaturesMBeangroupName - the cluster group name.nameOrUrl - the features repository URL.version - the features repository version (when name is provided).install - true to install all features contained in the repository, false else.Exception - in case of add failure.public void refreshRepository(String groupName, String nameOrUrl) throws Exception
CellarFeaturesMBeanrefreshRepository in interface CellarFeaturesMBeangroupName - the cluster group name.nameOrUrl - the features repository name or URL.Exceptionpublic void removeRepository(String groupName, String repository) throws Exception
CellarFeaturesMBeanremoveRepository in interface CellarFeaturesMBeangroupName - the cluster group name.repository - the features repository name or URL.Exception - in case of remove failure.public void removeRepository(String groupName, String repo, boolean uninstall) throws Exception
CellarFeaturesMBeanremoveRepository in interface CellarFeaturesMBeangroupName - the cluster group name.repo - the features repository name or URL.uninstall - true to uninstall all features described in the repository URL.Exceptionpublic void block(String groupName, String featurePattern, boolean whitelist, boolean blacklist, boolean in, boolean out) throws Exception
CellarFeaturesMBeanblock in interface CellarFeaturesMBeangroupName - the cluster group name.featurePattern - the feature pattern.whitelist - true to allow the feature by updating the whitelist.blacklist - true to block the feature by updating the blacklistin - true to change the inbound blocking policy.out - true to change the outbound blocking policy.ExceptionCopyright © 2019 The Apache Software Foundation. All rights reserved.