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
Modifier and TypeClassDescriptionstatic enum
Represent state in which sending task is -
Constructor Summary
ConstructorDescriptionSendTask
(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
Get time when sending of Task ended.- Returns:
- Time when sending ended
-
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
Get Status of SendTask- Returns:
- Status of SendTask
-
setStatus
Set Status of SendTask- Parameters:
status
- Status of SendTask
-
getStderr
Get STDERR of sending script- Returns:
- STDERR of sending script
-
setStderr
Set STDERR of sending script- Parameters:
stderr
- STDERR of sending script
-
getStdout
Get STDOUT of sending script- Returns:
- STDOUT of sending script
-
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
public int hashCode() -
setId
public void setId()Set SendTask ID as a pair of Task ID and Destination -
toString
-