public abstract class FeatureCommandSupport
extends org.apache.karaf.cellar.core.shell.CellarCommandSupport
| Modifier and Type | Field and Description |
|---|---|
protected org.osgi.framework.BundleContext |
bundleContext |
protected org.apache.karaf.features.FeaturesService |
featuresService |
protected static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
FeatureCommandSupport() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
featureExists(String groupName,
String feature,
String version)
Check if a feature is present in a cluster group.
|
org.apache.karaf.features.FeaturesService |
getFeaturesService() |
boolean |
isAllowed(org.apache.karaf.cellar.core.Group group,
String category,
String name,
org.apache.karaf.cellar.core.event.EventType type)
Check if a feature event is allowed.
|
void |
setFeaturesService(org.apache.karaf.features.FeaturesService featuresService) |
Boolean |
updateFeatureStatus(String groupName,
String feature,
String version,
Boolean status)
Forces the features status for a specific group.
|
getClusterManager, getConfigurationAdmin, getGroupManager, setClusterManager, setConfigurationAdmin, setGroupManagerprotected static final transient org.slf4j.Logger LOGGER
protected org.apache.karaf.features.FeaturesService featuresService
protected org.osgi.framework.BundleContext bundleContext
public Boolean updateFeatureStatus(String groupName, String feature, String version, Boolean status)
groupName - the cluster group name.feature - the feature name.version - the feature version.status - true to installed, false to uninstalled.public boolean featureExists(String groupName, String feature, String version)
groupName - the cluster group.feature - the feature name.version - the feature version.public boolean isAllowed(org.apache.karaf.cellar.core.Group group,
String category,
String name,
org.apache.karaf.cellar.core.event.EventType type)
group - the cluster group.category - the feature category name.name - the feature name.type - the event type (inbound, outbound).public org.apache.karaf.features.FeaturesService getFeaturesService()
public void setFeaturesService(org.apache.karaf.features.FeaturesService featuresService)
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.