org.jclouds.karaf.commands.compute
Class RunScriptBase

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.RunScriptBase
All Implemented Interfaces:
org.apache.felix.gogo.commands.Action
Direct Known Subclasses:
ComputeRunscriptBase

public abstract class RunScriptBase
extends ComputeCommandWithOptions

Author:
Guillaume Nodet (gnodet)

Field Summary
protected  String password
           
protected  String user
           
 
Fields inherited from class org.jclouds.karaf.commands.compute.ComputeCommandWithOptions
api, credential, endpoint, identity, name, propertiesFile, provider
 
Fields inherited from class org.jclouds.karaf.commands.compute.ComputeCommandBase
cacheProvider, computeServices, configAdmin, FACTORY_FILTER, NODE_DETAILS_FORMAT, PROVIDERFORMAT, shellTableFactory
 
Fields inherited from class org.apache.karaf.shell.console.AbstractAction
log, session
 
Constructor Summary
RunScriptBase()
           
 
Method Summary
protected  Object doExecute()
           
 com.google.common.base.Predicate<org.jclouds.compute.domain.ComputeMetadata> getComputeFilter()
           
abstract  String getGroup()
           
abstract  String getId()
           
 com.google.common.base.Predicate<org.jclouds.compute.domain.NodeMetadata> getNodeFilter()
           
abstract  String getScript()
           
abstract  org.jclouds.scriptbuilder.domain.Statement getStatement()
           
abstract  boolean runAsRoot()
           
 
Methods inherited from class org.jclouds.karaf.commands.compute.ComputeCommandWithOptions
getComputeService, getComputeServices
 
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
 

Field Detail

user

protected String user

password

protected String password
Constructor Detail

RunScriptBase

public RunScriptBase()
Method Detail

getId

public abstract String getId()

getGroup

public abstract String getGroup()

getScript

public abstract String getScript()

getStatement

public abstract org.jclouds.scriptbuilder.domain.Statement getStatement()

runAsRoot

public abstract boolean runAsRoot()

doExecute

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

getNodeFilter

public com.google.common.base.Predicate<org.jclouds.compute.domain.NodeMetadata> getNodeFilter()

getComputeFilter

public com.google.common.base.Predicate<org.jclouds.compute.domain.ComputeMetadata> getComputeFilter()


Copyright © 2013. All Rights Reserved.