org.jclouds.karaf.commands.compute
Class ComputeServiceCreateCommand
java.lang.Object
org.apache.karaf.shell.console.AbstractAction
org.jclouds.karaf.commands.compute.ComputeCommandBase
org.jclouds.karaf.commands.compute.ComputeCommandWithOptions
org.jclouds.karaf.commands.compute.ComputeServiceCreateCommand
- All Implemented Interfaces:
- org.apache.felix.gogo.commands.Action
public class ComputeServiceCreateCommand
- extends ComputeCommandWithOptions
|
Field Summary |
protected boolean |
noWait
|
protected java.lang.String[] |
options
|
| Fields inherited from class org.apache.karaf.shell.console.AbstractAction |
log, session |
|
Method Summary |
protected java.lang.Object |
doExecute()
|
org.osgi.framework.BundleContext |
getBundleContext()
|
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext)
|
org.jclouds.compute.ComputeService |
waitForComputeService(org.osgi.framework.BundleContext bundleContext,
java.lang.String id,
java.lang.String provider,
java.lang.String api)
Waits for the ComputeService registration. |
| Methods inherited from class org.jclouds.karaf.commands.compute.ComputeCommandBase |
execute, findOrCreateFactoryConfiguration, getAllLocations, getCacheProvider, getConfigAdmin, getCpuCores, getCpuUnits, getMemory, getOperatingSystemDetails, getPrivateAddresses, getPublicAddresses, getShellTableFactory, printComputeApis, printComputeProviders, printHardwares, printImages, printLocations, printNodeInfo, printNodes, setCacheProvider, setComputeServices, setConfigAdmin, setShellTableFactory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
options
protected java.lang.String[] options
noWait
protected boolean noWait
ComputeServiceCreateCommand
public ComputeServiceCreateCommand()
doExecute
protected java.lang.Object doExecute()
throws java.lang.Exception
- Specified by:
doExecute in class org.apache.karaf.shell.console.AbstractAction
- Throws:
java.lang.Exception
waitForComputeService
public org.jclouds.compute.ComputeService waitForComputeService(org.osgi.framework.BundleContext bundleContext,
java.lang.String id,
java.lang.String provider,
java.lang.String api)
- Waits for the
ComputeService registration.
- Parameters:
bundleContext - provider - api -
- Returns:
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
Copyright © 2012. All Rights Reserved.