Class SendTask
java.lang.Object
cz.metacentrum.perun.taskslib.model.SendTask
- All Implemented Interfaces:
Serializable
Sending part of original Task. Task is usually split between multiple SendTasks, each of them associated with one
Destination. Results are then grouped and used to determine state of a whole Task.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Represent state in which sending task is -
Constructor Summary
ConstructorsConstructorDescriptionSendTask
(Task task, Destination destination) Create new SendTask for Task and Destination -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get Destination associated with this SendTaskGet time when sending of Task ended.getId()
Get ID of SendTask as a pair of Task ID and DestinationGet return code of sending scriptGet time when sending of Task started.Get Status of SendTaskGet STDERR of sending scriptGet STDOUT of sending scriptgetTask()
Get Task associated with this SendTaskint
hashCode()
void
setDestination
(Destination destination) Set Destination associated with this SendTaskvoid
setEndTime
(Date endTime) Set time when sending of Task ended.void
setId()
Set SendTask ID as a pair of Task ID and Destinationvoid
setReturnCode
(Integer returnCode) Set return code of sending scriptvoid
setStartTime
(Date startTime) Set time when sending of Task started.void
setStatus
(SendTask.SendTaskStatus status) Set Status of SendTaskvoid
Set STDERR of sending scriptvoid
Set STDOUT of sending scriptvoid
Set Task associated with this SendTasktoString()
-
Constructor Details
-
SendTask
Create new SendTask for Task and Destination- Parameters:
task
-destination
-
-
-
Method Details
-
equals
-
getDestination
Get Destination associated with this SendTask- Returns:
- Destination associated with this SendTask
-
setDestination
Set Destination associated with this SendTask- Parameters:
destination
- Destination associated with this SendTask
-
getEndTime
-
setEndTime
Set time when sending of Task ended.- Parameters:
endTime
- Time when sending ended
-
getId
Get ID of SendTask as a pair of Task ID and Destination- Returns:
- ID of SendTask
-
getReturnCode
Get return code of sending script- Returns:
- Return code of sending script
-
setReturnCode
Set return code of sending script- Parameters:
returnCode
- Return code of sending script
-
getStartTime
Get time when sending of Task started.- Returns:
- Time when sending started
-
setStartTime
Set time when sending of Task started.- Parameters:
startTime
- Time when sending started
-
getStatus
-
setStatus
Set Status of SendTask- Parameters:
status
- Status of SendTask
-
getStderr
-
setStderr
Set STDERR of sending script- Parameters:
stderr
- STDERR of sending script
-
getStdout
-
setStdout
Set STDOUT of sending script- Parameters:
stdout
- STDOUT of sending script
-
getTask
Get Task associated with this SendTask- Returns:
- Task associated with this SendTask
-
setTask
Set Task associated with this SendTask- Parameters:
task
- Task associated with this SendTask
-
hashCode
-
setId
public void setId()Set SendTask ID as a pair of Task ID and Destination -
toString
-