Inherits ResourceInstance.
Public Member Functions | |
| CommandResource () | |
| Creates a new CommandResource with the default values. | |
| CommandResource (ResourceInstance resourceInstance) | |
| Creates a new CommandResource based on a generic ResourceInstance. | |
| Job | execute (String command, boolean captureStdout, boolean captureStderr, boolean captureStdin) |
| Creates a new Job which once executed, executes the desired command. | |
| Job | execute (String command, DataType dataType, String outputFileName, boolean captureStdout, boolean captureStderr, boolean captureStdin) |
| Creates a new Job which once executed, executes the desired command and captures the output. | |
Static Public Member Functions | |
| static CommandResource | cast (ResourceInstance resourceInstance) |
| Converts a generic ResourceInstance into a new one of type CommandResource. | |
Static Public Attributes | |
| static final String | ID = "CommandResource" |
| String containing the identifier for this resource. | |
<?xml version="1.0" encoding="utf-8"?> <Resource xmlns="http://www.abiquo.com/schema/Domain.xsd" LocalId="CommandResource"> <FunctionalityList> <Functionality LocalId="Execute" ReturnType="void"> <AttributeList> <Attribute Name="command" Type="string" /> <Attribute Name="stdout" Type="bool" /> <Attribute Name="stderr" Type="bool" /> <Attribute Name="stdin" Type="bool" /> <!-- Embedded or referenced.--> </AttributeList> </Functionality> </FunctionalityList> </Resource>
| com.abiquo.api.resources.CommandResource.CommandResource | ( | ResourceInstance | resourceInstance | ) |
Creates a new CommandResource based on a generic ResourceInstance.
| resourceInstance | The generic ResourceInstance |
| static CommandResource com.abiquo.api.resources.CommandResource.cast | ( | ResourceInstance | resourceInstance | ) | [static] |
Converts a generic ResourceInstance into a new one of type CommandResource.
| resourceInstance | The generic ResourceInstance |
| Job com.abiquo.api.resources.CommandResource.execute | ( | String | command, | |
| boolean | captureStdout, | |||
| boolean | captureStderr, | |||
| boolean | captureStdin | |||
| ) |
Creates a new Job which once executed, executes the desired command.
| command | The command template to execute | |
| captureStdout | Redirect standard out True or false | |
| captureStderr | Redirect standard error True or false | |
| captureStdin | Redirect and input file by standard in |
| Job com.abiquo.api.resources.CommandResource.execute | ( | String | command, | |
| DataType | dataType, | |||
| String | outputFileName, | |||
| boolean | captureStdout, | |||
| boolean | captureStderr, | |||
| boolean | captureStdin | |||
| ) |
Creates a new Job which once executed, executes the desired command and captures the output.
| command | The command template to execute | |
| dataType | the data type | |
| outputFileName | the output file name | |
| captureStdout | Redirect standard out True or false | |
| captureStderr | Redirect standard error True or false | |
| captureStdin | Redirect and input file by standard in |
final String com.abiquo.api.resources.CommandResource.ID = "CommandResource" [static] |
String containing the identifier for this resource.
1.5.5