Class ExecutorUpdated
java.lang.Object
org.apache.wayang.spark.monitoring.metrics.ExecutorUpdated
- All Implemented Interfaces:
Serializable
,Executor
,SerializableObject
An implementation of the Executor interface that represents an updated executor.
This class contains information about an executor that has been updated, including its
stage ID, executor ID, stage attempt, execution time, host, total cores, reason of removal,
and event name.
- Since:
- [3-24-2023]
- Version:
- 1.0
- Author:
- [Adeel Aslam]
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
executorTime
(long Time) Sets the time at which this executor started.Returns the name of the event associated with this executor.Returns the host where this executor is running.Returns the ID of this executor.long
Returns the time at which this executor started.Returns the reason for which this executor was removed from the cluster.int
Returns the resource information of this executor.int
Returns the attempt ID of the stage.int
Returns the ID of the stage the executor is running.int
Returns the total number of cores available to this executor.void
setEventame
(String name) Sets the name of the event associated with this executor.void
setExecutorHost
(String host) Sets the host where this executor is running.void
setExecutorID
(String id) Sets the ID of this executor.void
setReasonOfRemoval
(String reasonOfRemoval) Sets the reason for which this executor was removed from the cluster.void
setResourceInfo
(int resourceInfoId) Sets the resource information of this executor.void
setStageID
(int id) Sets the ID of the stage the executor is running.void
setTotalCores
(int cores) Sets the total number of cores available to this executor.void
stageAttempt
(int id) Sets the attempt ID of the stage.
-
Constructor Details
-
ExecutorUpdated
public ExecutorUpdated()
-
-
Method Details
-
getReasonOfRemoval
Description copied from interface:Executor
Returns the reason for which this executor was removed from the cluster.- Specified by:
getReasonOfRemoval
in interfaceExecutor
- Returns:
- The reason for removal.
-
setReasonOfRemoval
Description copied from interface:Executor
Sets the reason for which this executor was removed from the cluster.- Specified by:
setReasonOfRemoval
in interfaceExecutor
- Parameters:
reasonOfRemoval
- The reason for removal.
-
setEventame
Description copied from interface:Executor
Sets the name of the event associated with this executor.- Specified by:
setEventame
in interfaceExecutor
- Parameters:
name
- The name of the event.
-
getEventName
Description copied from interface:Executor
Returns the name of the event associated with this executor.- Specified by:
getEventName
in interfaceExecutor
- Returns:
- The name of the event.
-
setStageID
public void setStageID(int id) Description copied from interface:Executor
Sets the ID of the stage the executor is running.- Specified by:
setStageID
in interfaceExecutor
- Parameters:
id
- The ID of the stage.
-
getStageID
public int getStageID()Description copied from interface:Executor
Returns the ID of the stage the executor is running.- Specified by:
getStageID
in interfaceExecutor
- Returns:
- The ID of the stage.
-
setExecutorID
Description copied from interface:Executor
Sets the ID of this executor.- Specified by:
setExecutorID
in interfaceExecutor
- Parameters:
id
- The ID of the executor.
-
getExecutorID
Description copied from interface:Executor
Returns the ID of this executor.- Specified by:
getExecutorID
in interfaceExecutor
- Returns:
- The ID of the executor.
-
stageAttempt
public void stageAttempt(int id) Description copied from interface:Executor
Sets the attempt ID of the stage.- Specified by:
stageAttempt
in interfaceExecutor
- Parameters:
id
- The attempt ID of the stage.
-
getStageAttempt
public int getStageAttempt()Description copied from interface:Executor
Returns the attempt ID of the stage.- Specified by:
getStageAttempt
in interfaceExecutor
- Returns:
- The attempt ID of the stage.
-
executorTime
public void executorTime(long Time) Description copied from interface:Executor
Sets the time at which this executor started.- Specified by:
executorTime
in interfaceExecutor
- Parameters:
Time
- The start time of the executor.
-
getExecutorTime
public long getExecutorTime()Description copied from interface:Executor
Returns the time at which this executor started.- Specified by:
getExecutorTime
in interfaceExecutor
- Returns:
- The start time of the executor.
-
setExecutorHost
Description copied from interface:Executor
Sets the host where this executor is running.- Specified by:
setExecutorHost
in interfaceExecutor
- Parameters:
host
- The host where the executor is running.
-
getExecutorHost
Description copied from interface:Executor
Returns the host where this executor is running.- Specified by:
getExecutorHost
in interfaceExecutor
- Returns:
- The host where the executor is running.
-
setTotalCores
public void setTotalCores(int cores) Description copied from interface:Executor
Sets the total number of cores available to this executor.- Specified by:
setTotalCores
in interfaceExecutor
- Parameters:
cores
- The total number of cores.
-
getTotalCores
public int getTotalCores()Description copied from interface:Executor
Returns the total number of cores available to this executor.- Specified by:
getTotalCores
in interfaceExecutor
- Returns:
- The total number of cores.
-
setResourceInfo
public void setResourceInfo(int resourceInfoId) Description copied from interface:Executor
Sets the resource information of this executor.- Specified by:
setResourceInfo
in interfaceExecutor
- Parameters:
resourceInfoId
- The resource information of the executor.
-
getResourceInfo
public int getResourceInfo()Description copied from interface:Executor
Returns the resource information of this executor.- Specified by:
getResourceInfo
in interfaceExecutor
- Returns:
- The resource information of the executor.
-