public abstract class ChefCommandBase
extends org.apache.karaf.shell.console.AbstractAction
| Modifier and Type | Field and Description |
|---|---|
protected CacheProvider |
cacheProvider |
protected List<org.jclouds.chef.ChefService> |
chefServices |
protected org.osgi.service.cm.ConfigurationAdmin |
configAdmin |
static String |
FACTORY_FILTER |
static String |
PROVIDERFORMAT |
protected ShellTableFactory |
shellTableFactory |
| Constructor and Description |
|---|
ChefCommandBase() |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(org.apache.felix.service.command.CommandSession session) |
protected org.osgi.service.cm.Configuration |
findOrCreateFactoryConfiguration(org.osgi.service.cm.ConfigurationAdmin configurationAdmin,
String factoryPid,
String id,
String api)
Finds a
Configuration if exists, or creates a new one. |
CacheProvider |
getCacheProvider() |
List<org.jclouds.chef.ChefService> |
getChefServices() |
org.osgi.service.cm.ConfigurationAdmin |
getConfigAdmin() |
ShellTableFactory |
getShellTableFactory() |
protected void |
printChefApis(Iterable<org.jclouds.apis.ApiMetadata> apis,
List<org.jclouds.chef.ChefService> chefServices,
PrintStream out) |
protected void |
printCookbooks(org.jclouds.chef.ChefService service,
Iterable<? extends org.jclouds.chef.domain.CookbookVersion> cookbookVersions,
PrintStream out) |
void |
setCacheProvider(CacheProvider cacheProvider) |
void |
setChefServices(List<org.jclouds.chef.ChefService> chefServices) |
void |
setConfigAdmin(org.osgi.service.cm.ConfigurationAdmin configAdmin) |
void |
setShellTableFactory(ShellTableFactory shellTableFactory) |
public static final String PROVIDERFORMAT
public static final String FACTORY_FILTER
protected org.osgi.service.cm.ConfigurationAdmin configAdmin
protected CacheProvider cacheProvider
protected List<org.jclouds.chef.ChefService> chefServices
protected ShellTableFactory shellTableFactory
public Object execute(org.apache.felix.service.command.CommandSession session) throws Exception
execute in interface org.apache.felix.gogo.commands.Actionexecute in class org.apache.karaf.shell.console.AbstractActionExceptionprotected void printChefApis(Iterable<org.jclouds.apis.ApiMetadata> apis, List<org.jclouds.chef.ChefService> chefServices, PrintStream out)
protected void printCookbooks(org.jclouds.chef.ChefService service,
Iterable<? extends org.jclouds.chef.domain.CookbookVersion> cookbookVersions,
PrintStream out)
protected org.osgi.service.cm.Configuration findOrCreateFactoryConfiguration(org.osgi.service.cm.ConfigurationAdmin configurationAdmin,
String factoryPid,
String id,
String api)
throws IOException
Configuration if exists, or creates a new one.configurationAdmin - factoryPid - api - IOExceptionpublic org.osgi.service.cm.ConfigurationAdmin getConfigAdmin()
public void setConfigAdmin(org.osgi.service.cm.ConfigurationAdmin configAdmin)
public CacheProvider getCacheProvider()
public void setCacheProvider(CacheProvider cacheProvider)
public List<org.jclouds.chef.ChefService> getChefServices()
public void setChefServices(List<org.jclouds.chef.ChefService> chefServices)
public ShellTableFactory getShellTableFactory()
public void setShellTableFactory(ShellTableFactory shellTableFactory)
Copyright © 2012. All Rights Reserved.