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 SummaryFields Modifier and Type Field Description protected java.lang.String[]commandsThe command.
 - 
Constructor SummaryConstructors Constructor Description CliCommand(java.lang.String[] commands)Create a new cli command.
 - 
Method SummaryAll 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.voidsetCommands(java.lang.String[] commands)Set the commands.
 
- 
- 
- 
Method Detail- 
executepublic ISubscriptionIntermediateFuture<java.lang.String> execute(Tuple2<IInternalAccess,java.lang.Long> args) Execute the command.- Specified by:
- executein interface- IResultCommand<ISubscriptionIntermediateFuture<java.lang.String>,Tuple2<IInternalAccess,java.lang.Long>>
- Parameters:
- args- The argument(s) for the call.
- Returns:
- The result of the command.
 
 - 
executeCommandsprotected IFuture<java.lang.Void> executeCommands(ICliService cliser, java.util.Iterator<java.lang.String> cmds, java.lang.StringBuffer buf) Execute a number of commands.
 - 
getCommandspublic java.lang.String[] getCommands() Get the commands.- Returns:
- The commands.
 
 - 
setCommandspublic void setCommands(java.lang.String[] commands) Set the commands.- Parameters:
- commands- The commands to set.
 
 
- 
 
-