Class TaskGettingResult
- java.lang.Object
-
- org.apache.wayang.spark.monitoring.metrics.TaskGettingResult
-
- All Implemented Interfaces:
java.io.Serializable,SerializableObject,Task
public class TaskGettingResult extends java.lang.Object implements Task, SerializableObject
Represents the getting results of a task execution.Implementing the
Taskinterface, this class provides methods to set and get the attributes of a task, such as its ID, host IP, launch and finish times, and status. It also implements theSerializableObjectinterface to allow serialization of the class.The class also includes a
TaskMetricobject to store metrics related to the task, and aTask.TaskStatusForRunningobject to provide information about the task's status during execution.- Author:
- [Adeel Aslam]
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.wayang.spark.monitoring.interfaces.Task
Task.TaskStatusForRunning
-
-
Constructor Summary
Constructors Constructor Description TaskGettingResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDurationTime()Returns the duration time of this task.java.lang.StringgetEventName()Gets the name of the event associated with this task.java.lang.StringgetExecutorID()Returns the ID of the executor assigned to this task.longgetFinishTime()Returns the finish time of this task.longgetGettingTime()Returns the getting time of this task.java.lang.StringgetHostIP()Gets the IP address of the host machine executing this task.java.lang.StringgetID()Gets the ID of this task.intgetIndex()Returns the index of this task.longgetLaunchTime()Returns the launch time of this task.intgetPartition()Returns the partition of this task.intgetStageID()Returns the ID of the stage to which this task belongs.longgetTaskID()Returns the ID of this task.TaskMetricgetTaskMetric()Returns theTaskMetricassociated with this task.booleangetTaskSatus()Returns the status of this task.java.lang.StringgetTaskStatus()Returns the status of this task.Task.TaskStatusForRunninggetTaskStatusForRunning()Returns the current task status for running.voidsetDurationTime(long time)Sets the duration time of this task.voidsetEventame(java.lang.String name)Sets the name of the event associated with this task.voidsetFinishTime(long time)Sets the finish time of this task.voidsetGettingTime(long time)Sets the getting time of this task.voidsetHostIP(java.lang.String Ip)Sets the IP address of the host machine executing this task.voidsetID(java.lang.String id)Sets the ID of this task.voidsetIndex(int index)Sets the index of this task.voidsetLaunchTime(long time)Sets the launch time of this task.voidsetPartition(int partition)Sets the partition of this task.voidsetStageID(int id)Sets the ID of the stage to which this task belongs.voidsetStringExecutorID(java.lang.String executorID)Sets the ID of the executor assigned to this task.voidsetTaskID(long taskId)Sets the ID of this task.voidsetTaskMetric(TaskMetric taskMetric)Sets theTaskMetricassociated with this task.voidsetTaskStatus(boolean status)Sets the status of this task.voidsetTaskStatus(java.lang.String status)Sets the status of this task.voidsetTaskStatusForRunning(Task.TaskStatusForRunning taskStatusForRunning)Sets the task status for running.
-
-
-
Method Detail
-
setEventame
public void setEventame(java.lang.String name)
Description copied from interface:TaskSets the name of the event associated with this task.- Specified by:
setEventamein interfaceTask- Parameters:
name- the name of the event
-
getEventName
public java.lang.String getEventName()
Description copied from interface:TaskGets the name of the event associated with this task.- Specified by:
getEventNamein interfaceTask- Returns:
- the name of the event
-
setID
public void setID(java.lang.String id)
Description copied from interface:TaskSets the ID of this task.
-
getID
public java.lang.String getID()
Description copied from interface:TaskGets the ID of this task.
-
setHostIP
public void setHostIP(java.lang.String Ip)
Description copied from interface:TaskSets the IP address of the host machine executing this task.
-
getHostIP
public java.lang.String getHostIP()
Description copied from interface:TaskGets the IP address of the host machine executing this task.
-
setTaskID
public void setTaskID(long taskId)
Description copied from interface:TaskSets the ID of this task.
-
setStageID
public void setStageID(int id)
Description copied from interface:TaskSets the ID of the stage to which this task belongs.- Specified by:
setStageIDin interfaceTask- Parameters:
id- the ID of the stage to which this task belongs
-
getStageID
public int getStageID()
Description copied from interface:TaskReturns the ID of the stage to which this task belongs.- Specified by:
getStageIDin interfaceTask- Returns:
- the ID of the stage to which this task belongs
-
getTaskID
public long getTaskID()
Description copied from interface:TaskReturns the ID of this task.
-
setStringExecutorID
public void setStringExecutorID(java.lang.String executorID)
Description copied from interface:TaskSets the ID of the executor assigned to this task.- Specified by:
setStringExecutorIDin interfaceTask- Parameters:
executorID- the ID of the executor assigned to this task
-
getExecutorID
public java.lang.String getExecutorID()
Description copied from interface:TaskReturns the ID of the executor assigned to this task.- Specified by:
getExecutorIDin interfaceTask- Returns:
- the ID of the executor assigned to this task
-
setTaskStatus
public void setTaskStatus(java.lang.String status)
Description copied from interface:TaskSets the status of this task.- Specified by:
setTaskStatusin interfaceTask- Parameters:
status- the status of this task
-
getTaskStatus
public java.lang.String getTaskStatus()
Description copied from interface:TaskReturns the status of this task.- Specified by:
getTaskStatusin interfaceTask- Returns:
- the status of this task
-
setIndex
public void setIndex(int index)
Description copied from interface:TaskSets the index of this task.
-
getIndex
public int getIndex()
Description copied from interface:TaskReturns the index of this task.
-
setPartition
public void setPartition(int partition)
Description copied from interface:TaskSets the partition of this task.- Specified by:
setPartitionin interfaceTask- Parameters:
partition- the partition of this task
-
getPartition
public int getPartition()
Description copied from interface:TaskReturns the partition of this task.- Specified by:
getPartitionin interfaceTask- Returns:
- the partition of this task
-
setLaunchTime
public void setLaunchTime(long time)
Description copied from interface:TaskSets the launch time of this task.- Specified by:
setLaunchTimein interfaceTask- Parameters:
time- the launch time of this task
-
getLaunchTime
public long getLaunchTime()
Description copied from interface:TaskReturns the launch time of this task.- Specified by:
getLaunchTimein interfaceTask- Returns:
- the launch time of this task
-
setFinishTime
public void setFinishTime(long time)
Description copied from interface:TaskSets the finish time of this task.- Specified by:
setFinishTimein interfaceTask- Parameters:
time- the finish time of this task
-
getFinishTime
public long getFinishTime()
Description copied from interface:TaskReturns the finish time of this task.- Specified by:
getFinishTimein interfaceTask- Returns:
- the finish time of this task
-
setGettingTime
public void setGettingTime(long time)
Description copied from interface:TaskSets the getting time of this task.- Specified by:
setGettingTimein interfaceTask- Parameters:
time- the getting time of this task
-
getGettingTime
public long getGettingTime()
Description copied from interface:TaskReturns the getting time of this task.- Specified by:
getGettingTimein interfaceTask- Returns:
- the getting time of this task
-
setDurationTime
public void setDurationTime(long time)
Description copied from interface:TaskSets the duration time of this task.- Specified by:
setDurationTimein interfaceTask- Parameters:
time- the duration time of this task
-
getDurationTime
public long getDurationTime()
Description copied from interface:TaskReturns the duration time of this task.- Specified by:
getDurationTimein interfaceTask- Returns:
- the duration time of this task
-
setTaskStatus
public void setTaskStatus(boolean status)
Description copied from interface:TaskSets the status of this task.- Specified by:
setTaskStatusin interfaceTask- Parameters:
status- the status of this task
-
getTaskSatus
public boolean getTaskSatus()
Description copied from interface:TaskReturns the status of this task.- Specified by:
getTaskSatusin interfaceTask- Returns:
- the status of this task
-
setTaskStatusForRunning
public void setTaskStatusForRunning(Task.TaskStatusForRunning taskStatusForRunning)
Description copied from interface:TaskSets the task status for running.- Specified by:
setTaskStatusForRunningin interfaceTask- Parameters:
taskStatusForRunning- theTask.TaskStatusForRunningstatus to be set for the task
-
getTaskStatusForRunning
public Task.TaskStatusForRunning getTaskStatusForRunning()
Description copied from interface:TaskReturns the current task status for running.- Specified by:
getTaskStatusForRunningin interfaceTask- Returns:
- the
Task.TaskStatusForRunningstatus of the task
-
getTaskMetric
public TaskMetric getTaskMetric()
Description copied from interface:TaskReturns theTaskMetricassociated with this task.- Specified by:
getTaskMetricin interfaceTask- Returns:
- the
TaskMetricof the task
-
setTaskMetric
public void setTaskMetric(TaskMetric taskMetric)
Description copied from interface:TaskSets theTaskMetricassociated with this task.- Specified by:
setTaskMetricin interfaceTask- Parameters:
taskMetric- theTaskMetricto be set for the task
-
-