org.jclouds.karaf.commands.compute
Class ComputeServiceCommand

java.lang.Object
  extended by org.apache.karaf.shell.console.AbstractAction
      extended by org.jclouds.karaf.commands.compute.ComputeCommandSupport
          extended by org.jclouds.karaf.commands.compute.ComputeServiceCommand
All Implemented Interfaces:
org.apache.felix.gogo.commands.Action
Direct Known Subclasses:
ComputeCreateCommand, ComputeDestroyCommand

public abstract class ComputeServiceCommand
extends ComputeCommandSupport


Field Summary
protected  org.osgi.service.cm.ConfigurationAdmin configAdmin
           
protected static String FACTORY_FILTER
           
 
Fields inherited from class org.jclouds.karaf.commands.compute.ComputeCommandSupport
api, cacheProvider, credential, endpoint, HARDWAREFORMAT, identity, IMAGEFORMAT, LOCATIONFORMAT, NODEFORMAT, provider, PROVIDERFORMAT
 
Fields inherited from class org.apache.karaf.shell.console.AbstractAction
log, session
 
Constructor Summary
ComputeServiceCommand()
           
 
Method Summary
protected  org.osgi.service.cm.Configuration findOrCreateFactoryConfiguration(org.osgi.service.cm.ConfigurationAdmin configurationAdmin, String factoryPid, String provider, String api)
          Finds a Configuration if exists, or creates a new one.
 org.osgi.service.cm.ConfigurationAdmin getConfigAdmin()
           
 void setConfigAdmin(org.osgi.service.cm.ConfigurationAdmin configAdmin)
           
 
Methods inherited from class org.jclouds.karaf.commands.compute.ComputeCommandSupport
execute, getAllLocations, getCacheProvider, getComputeService, getComputeServices, getCpuCores, getCpuUnits, getMemory, getOperatingSystemDetails, getPrivateAddresses, getPublicAddresses, printComputeApis, printComputeProviders, printHardwares, printImages, printLocations, printLocations, printNodeInfo, printNodes, setCacheProvider, setComputeServices
 
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
 

Field Detail

FACTORY_FILTER

protected static final String FACTORY_FILTER
See Also:
Constant Field Values

configAdmin

protected org.osgi.service.cm.ConfigurationAdmin configAdmin
Constructor Detail

ComputeServiceCommand

public ComputeServiceCommand()
Method Detail

findOrCreateFactoryConfiguration

protected org.osgi.service.cm.Configuration findOrCreateFactoryConfiguration(org.osgi.service.cm.ConfigurationAdmin configurationAdmin,
                                                                             String factoryPid,
                                                                             String provider,
                                                                             String api)
                                                                      throws IOException
Finds a Configuration if exists, or creates a new one.

Parameters:
configurationAdmin -
factoryPid -
provider -
api -
Returns:
Throws:
IOException

getConfigAdmin

public org.osgi.service.cm.ConfigurationAdmin getConfigAdmin()
Overrides:
getConfigAdmin in class ComputeCommandSupport

setConfigAdmin

public void setConfigAdmin(org.osgi.service.cm.ConfigurationAdmin configAdmin)
Overrides:
setConfigAdmin in class ComputeCommandSupport


Copyright © 2012. All Rights Reserved.