public abstract class FabricCommand
extends org.apache.karaf.shell.console.OsgiCommandSupport
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
AGENT_PID |
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
|
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) |
IZKClient |
getZooKeeper() |
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 |
setFabricService(FabricService fabricService) |
void |
setZooKeeper(IZKClient zooKeeper) |
protected java.lang.String |
toString(Profile[] profiles) |
protected FabricService fabricService
protected org.osgi.service.cm.ConfigurationAdmin configurationAdmin
protected static java.lang.String AGENT_PID
public FabricService getFabricService()
public void setFabricService(FabricService fabricService)
public IZKClient getZooKeeper()
public void setZooKeeper(IZKClient zooKeeper)
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 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.