Package org.jclouds.compute.callables
Interface RunScriptOnNode
-
- All Superinterfaces:
Callable<ExecResponse>
- All Known Implementing Classes:
RunScriptOnNodeAsInitScriptUsingSsh
,RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete
,RunScriptOnNodeUsingSsh
@Beta public interface RunScriptOnNode extends Callable<ExecResponse>
Separates out how one implements the ability to run a script on a node.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
RunScriptOnNode.Factory
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecResponse
call()
Note thatinit()
must be called first.NodeMetadata
getNode()
the node this command is being executed on.Statement
getStatement()
RunScriptOnNode
init()
verifies that the command can execute on the node.
-
-
-
Method Detail
-
call
ExecResponse call()
Note thatinit()
must be called first.- Specified by:
call
in interfaceCallable<ExecResponse>
-
getStatement
Statement getStatement()
- Returns:
- statement that will be executed
-
init
RunScriptOnNode init()
verifies that the command can execute on the node. For example, if this is ssh, it may attempt to find a reachable socket. If this is using an API, it may attempt to validate that connection.
-
getNode
NodeMetadata getNode()
the node this command is being executed on.
-
-