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.ComputeCommandBase
          extended by org.jclouds.karaf.commands.compute.ComputeCommandWithOptions
              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 ComputeCommandWithOptions


Field Summary
protected  org.osgi.service.cm.ConfigurationAdmin configAdmin
           
protected static String FACTORY_FILTER
           
 
Fields inherited from class org.jclouds.karaf.commands.compute.ComputeCommandWithOptions
api, credential, endpoint, identity, provider
 
Fields inherited from class org.jclouds.karaf.commands.compute.ComputeCommandBase
cacheProvider, computeServices, HARDWAREFORMAT, IMAGEFORMAT, LOCATIONFORMAT, NODEFORMAT, 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.ComputeCommandWithOptions
getComputeService, getComputeServices
 
Methods inherited from class org.jclouds.karaf.commands.compute.ComputeCommandBase
execute, getAllLocations, getCacheProvider, 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 ComputeCommandBase

setConfigAdmin

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


Copyright © 2012. All Rights Reserved.