org.apache.whirr.karaf.command.support
Class WhirrCommandSupport
java.lang.Object
org.apache.karaf.shell.console.AbstractAction
org.apache.karaf.shell.console.OsgiCommandSupport
org.apache.whirr.karaf.command.support.WhirrCommandSupport
- All Implemented Interfaces:
- org.apache.felix.gogo.commands.Action, org.apache.karaf.shell.console.BundleContextAware
- Direct Known Subclasses:
- DestroyCluster, DestroyInstance, LaunchCluster, ListCluster, RunScript
public abstract class WhirrCommandSupport
- extends org.apache.karaf.shell.console.OsgiCommandSupport
Fields inherited from class org.apache.karaf.shell.console.OsgiCommandSupport |
bundleContext, usedReferences |
Fields inherited from class org.apache.karaf.shell.console.AbstractAction |
log, session |
Methods inherited from class org.apache.karaf.shell.console.OsgiCommandSupport |
execute, getAllServices, getBundleContext, getService, setBundleContext, ungetServices |
Methods inherited from class org.apache.karaf.shell.console.AbstractAction |
doExecute |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fileName
protected String fileName
pid
protected String pid
clusterName
protected String clusterName
privateKey
protected String privateKey
clusterControllerFactory
protected ClusterControllerFactory clusterControllerFactory
configurationAdmin
protected org.osgi.service.cm.ConfigurationAdmin configurationAdmin
computeServices
protected List<org.jclouds.compute.ComputeService> computeServices
WhirrCommandSupport
public WhirrCommandSupport()
getClusterSpec
protected ClusterSpec getClusterSpec()
throws Exception
- Returns the
ClusterSpec
- Returns:
-
- Throws:
Exception
getConfiguration
protected org.apache.commons.configuration.PropertiesConfiguration getConfiguration(String pid,
String fileName)
- Retrieves the configuration from a pid or a file.
- Parameters:
pid
- fileName
-
- Returns:
getClusterControllerFactory
public ClusterControllerFactory getClusterControllerFactory()
setClusterControllerFactory
public void setClusterControllerFactory(ClusterControllerFactory clusterControllerFactory)
getConfigurationAdmin
public org.osgi.service.cm.ConfigurationAdmin getConfigurationAdmin()
setConfigurationAdmin
public void setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)
getComputeServices
public List<org.jclouds.compute.ComputeService> getComputeServices()
setComputeServices
public void setComputeServices(List<org.jclouds.compute.ComputeService> computeServices)
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.