Package jadex.platform.service.cron.jobs
Class CliJob.CliCommand
- java.lang.Object
-
- jadex.platform.service.cron.jobs.CliJob.CliCommand
-
- All Implemented Interfaces:
IResultCommand<ISubscriptionIntermediateFuture<java.lang.String>,Tuple2<IInternalAccess,java.lang.Long>>
- Enclosing class:
- CliJob
public static class CliJob.CliCommand extends java.lang.Object implements IResultCommand<ISubscriptionIntermediateFuture<java.lang.String>,Tuple2<IInternalAccess,java.lang.Long>>
The create command is used to execute a command line or script.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]
commands
The command.
-
Constructor Summary
Constructors Constructor Description CliCommand(java.lang.String[] commands)
Create a new cli command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISubscriptionIntermediateFuture<java.lang.String>
execute(Tuple2<IInternalAccess,java.lang.Long> args)
Execute the command.protected IFuture<java.lang.Void>
executeCommands(ICliService cliser, java.util.Iterator<java.lang.String> cmds, java.lang.StringBuffer buf)
Execute a number of commands.java.lang.String[]
getCommands()
Get the commands.void
setCommands(java.lang.String[] commands)
Set the commands.
-
-
-
Method Detail
-
execute
public ISubscriptionIntermediateFuture<java.lang.String> execute(Tuple2<IInternalAccess,java.lang.Long> args)
Execute the command.- Specified by:
execute
in interfaceIResultCommand<ISubscriptionIntermediateFuture<java.lang.String>,Tuple2<IInternalAccess,java.lang.Long>>
- Parameters:
args
- The argument(s) for the call.- Returns:
- The result of the command.
-
executeCommands
protected IFuture<java.lang.Void> executeCommands(ICliService cliser, java.util.Iterator<java.lang.String> cmds, java.lang.StringBuffer buf)
Execute a number of commands.
-
getCommands
public java.lang.String[] getCommands()
Get the commands.- Returns:
- The commands.
-
setCommands
public void setCommands(java.lang.String[] commands)
Set the commands.- Parameters:
commands
- The commands to set.
-
-