org.jclouds.karaf.chef.commands
Class ChefServiceCreateCommand

java.lang.Object
  extended by org.apache.karaf.shell.console.AbstractAction
      extended by org.jclouds.karaf.chef.commands.ChefCommandBase
          extended by org.jclouds.karaf.chef.commands.ChefCommandWithOptions
              extended by org.jclouds.karaf.chef.commands.ChefServiceCreateCommand
All Implemented Interfaces:
org.apache.felix.gogo.commands.Action

public class ChefServiceCreateCommand
extends ChefCommandWithOptions


Field Summary
protected  boolean noWait
           
protected  String[] options
           
 
Fields inherited from class org.jclouds.karaf.chef.commands.ChefCommandWithOptions
api, clientKeyFile, clientName, endpoint, name, validatorKeyFile, validatorName
 
Fields inherited from class org.jclouds.karaf.chef.commands.ChefCommandBase
cacheProvider, chefServices, configAdmin, FACTORY_FILTER, PROVIDERFORMAT, shellTableFactory
 
Fields inherited from class org.apache.karaf.shell.console.AbstractAction
log, session
 
Constructor Summary
ChefServiceCreateCommand()
           
 
Method Summary
protected  Object doExecute()
           
 org.osgi.framework.BundleContext getBundleContext()
           
 void setBundleContext(org.osgi.framework.BundleContext bundleContext)
           
 org.jclouds.chef.ChefService waitForChefService(org.osgi.framework.BundleContext bundleContext, String name, String api)
          Waits for the ChefService registration.
 
Methods inherited from class org.jclouds.karaf.chef.commands.ChefCommandWithOptions
getChefService, getChefServices
 
Methods inherited from class org.jclouds.karaf.chef.commands.ChefCommandBase
execute, findOrCreateFactoryConfiguration, getCacheProvider, getConfigAdmin, getShellTableFactory, printChefApis, printCookbooks, setCacheProvider, setChefServices, setConfigAdmin, setShellTableFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

options

protected String[] options

noWait

protected boolean noWait
Constructor Detail

ChefServiceCreateCommand

public ChefServiceCreateCommand()
Method Detail

doExecute

protected Object doExecute()
                    throws Exception
Specified by:
doExecute in class org.apache.karaf.shell.console.AbstractAction
Throws:
Exception

waitForChefService

public org.jclouds.chef.ChefService waitForChefService(org.osgi.framework.BundleContext bundleContext,
                                                       String name,
                                                       String api)
Waits for the ChefService registration.

Parameters:
bundleContext -
api -
Returns:

getBundleContext

public org.osgi.framework.BundleContext getBundleContext()

setBundleContext

public void setBundleContext(org.osgi.framework.BundleContext bundleContext)


Copyright © 2013. All Rights Reserved.