public abstract class FabricCommand
extends org.apache.karaf.shell.console.OsgiCommandSupport
| Modifier and Type | Field and Description |
|---|---|
protected org.osgi.service.cm.ConfigurationAdmin |
configurationAdmin |
protected FabricService |
fabricService |
| Constructor and Description |
|---|
FabricCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkFabricAvailable() |
protected boolean |
doesContainerExist(java.lang.String name) |
org.osgi.service.cm.ConfigurationAdmin |
getConfigurationAdmin() |
protected Container |
getContainer(java.lang.String name)
Gets the container by the given name
|
org.apache.curator.framework.CuratorFramework |
getCurator() |
FabricService |
getFabricService() |
protected Profile |
getProfile(Version ver,
java.lang.String name) |
protected Profile[] |
getProfiles(java.lang.String version,
java.util.List<java.lang.String> names) |
protected Profile[] |
getProfiles(Version version,
java.util.List<java.lang.String> names) |
protected boolean |
isPartOfEnsemble(java.lang.String containerName)
Checks if container is part of the ensemble.
|
protected java.lang.String |
percentText(double value) |
void |
setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin) |
void |
setCurator(org.apache.curator.framework.CuratorFramework curator) |
void |
setFabricService(FabricService fabricService) |
protected java.lang.String |
toString(java.lang.Iterable<java.lang.String> profiles) |
protected java.lang.String |
toString(Profile[] profiles) |
protected FabricService fabricService
protected org.osgi.service.cm.ConfigurationAdmin configurationAdmin
public FabricService getFabricService()
public void setFabricService(FabricService fabricService)
public org.apache.curator.framework.CuratorFramework getCurator()
public void setCurator(org.apache.curator.framework.CuratorFramework curator)
public org.osgi.service.cm.ConfigurationAdmin getConfigurationAdmin()
public void setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)
protected void checkFabricAvailable()
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String toString(Profile[] profiles)
protected java.lang.String toString(java.lang.Iterable<java.lang.String> profiles)
protected Profile[] getProfiles(java.lang.String version, java.util.List<java.lang.String> names)
protected Profile[] getProfiles(Version version, java.util.List<java.lang.String> names)
protected boolean isPartOfEnsemble(java.lang.String containerName)
containerName - protected Container getContainer(java.lang.String name)
name - the name of the containerprotected boolean doesContainerExist(java.lang.String name)
protected java.lang.String percentText(double value)
Copyright © 2014 Red Hat. All Rights Reserved.