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 enumRepresent state in which sending task is -
Constructor Summary
ConstructorsConstructorDescriptionSendTask(Task task, Destination destination) Create new SendTask for Task and Destination -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet 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 SendTaskinthashCode()voidsetDestination(Destination destination) Set Destination associated with this SendTaskvoidsetEndTime(Date endTime) Set time when sending of Task ended.voidsetId()Set SendTask ID as a pair of Task ID and DestinationvoidsetReturnCode(Integer returnCode) Set return code of sending scriptvoidsetStartTime(Date startTime) Set time when sending of Task started.voidsetStatus(SendTask.SendTaskStatus status) Set Status of SendTaskvoidSet STDERR of sending scriptvoidSet STDOUT of sending scriptvoidSet 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
-