Package jadex.platform.service.cron.jobs
Class CronCreateCommand
- java.lang.Object
-
- jadex.platform.service.cron.jobs.CronCreateCommand
-
- All Implemented Interfaces:
IResultCommand<ISubscriptionIntermediateFuture<CMSStatusEvent>,Tuple2<IInternalAccess,java.lang.Long>>
public class CronCreateCommand extends java.lang.Object implements IResultCommand<ISubscriptionIntermediateFuture<CMSStatusEvent>,Tuple2<IInternalAccess,java.lang.Long>>
The create command is used to create a component via the cms.
-
-
Field Summary
Fields Modifier and Type Field Description protected CreateCommand
command
The name.
-
Constructor Summary
Constructors Constructor Description CronCreateCommand(CreateCommand command)
Create a new CreateCommand.CronCreateCommand(java.lang.String name, java.lang.String model, CreationInfo info)
Create a new CreateCommand.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISubscriptionIntermediateFuture<CMSStatusEvent>
execute(Tuple2<IInternalAccess,java.lang.Long> args)
Execute the command.CreateCommand
getCommand()
Get the command.void
setCommand(CreateCommand command)
Set the command.
-
-
-
Field Detail
-
command
protected CreateCommand command
The name.
-
-
Constructor Detail
-
CronCreateCommand
public CronCreateCommand(CreateCommand command)
Create a new CreateCommand.
-
CronCreateCommand
public CronCreateCommand(java.lang.String name, java.lang.String model, CreationInfo info)
Create a new CreateCommand.
-
-
Method Detail
-
execute
public ISubscriptionIntermediateFuture<CMSStatusEvent> execute(Tuple2<IInternalAccess,java.lang.Long> args)
Execute the command.- Specified by:
execute
in interfaceIResultCommand<ISubscriptionIntermediateFuture<CMSStatusEvent>,Tuple2<IInternalAccess,java.lang.Long>>
- Parameters:
args
- The argument(s) for the call.- Returns:
- The result of the command.
-
getCommand
public CreateCommand getCommand()
Get the command.- Returns:
- The command.
-
setCommand
public void setCommand(CreateCommand command)
Set the command.- Parameters:
command
- The command to set.
-
-