Package jadex.platform.service.cron.jobs
Class CreateCommand
- java.lang.Object
-
- jadex.platform.service.cron.jobs.CreateCommand
-
- All Implemented Interfaces:
IResultCommand<IIntermediateFuture<CMSStatusEvent>,IInternalAccess>
public class CreateCommand extends java.lang.Object implements IResultCommand<IIntermediateFuture<CMSStatusEvent>,IInternalAccess>
The create command is used to create a component via the cms.
-
-
Field Summary
Fields Modifier and Type Field Description protected CreationInfo
info
The creation info.protected java.lang.String
model
The model.protected java.lang.String
name
The name.
-
Constructor Summary
Constructors Constructor Description CreateCommand(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(IInternalAccess ia)
Execute the command.CreationInfo
getInfo()
Get the info.java.lang.String
getModel()
Get the model.java.lang.String
getName()
Get the name.void
setInfo(CreationInfo info)
Set the info.void
setModel(java.lang.String model)
Set the model.void
setName(java.lang.String name)
Set the name.
-
-
-
Field Detail
-
name
protected java.lang.String name
The name.
-
model
protected java.lang.String model
The model.
-
info
protected CreationInfo info
The creation info.
-
-
Constructor Detail
-
CreateCommand
public CreateCommand(java.lang.String name, java.lang.String model, CreationInfo info)
Create a new CreateCommand.
-
-
Method Detail
-
execute
public ISubscriptionIntermediateFuture<CMSStatusEvent> execute(IInternalAccess ia)
Execute the command.- Specified by:
execute
in interfaceIResultCommand<IIntermediateFuture<CMSStatusEvent>,IInternalAccess>
- Parameters:
args
- The argument(s) for the call.- Returns:
- The result of the command.
-
getName
public java.lang.String getName()
Get the name.- Returns:
- The name.
-
setName
public void setName(java.lang.String name)
Set the name.- Parameters:
name
- The name to set.
-
getModel
public java.lang.String getModel()
Get the model.- Returns:
- The model.
-
setModel
public void setModel(java.lang.String model)
Set the model.- Parameters:
model
- The model to set.
-
getInfo
public CreationInfo getInfo()
Get the info.- Returns:
- The info.
-
setInfo
public void setInfo(CreationInfo info)
Set the info.- Parameters:
info
- The info to set.
-
-