Class ExecutorRemoved
java.lang.Object
org.apache.wayang.spark.monitoring.metrics.ExecutorRemoved
- All Implemented Interfaces:
Serializable,Executor,SerializableObject
An event class representing the removal of an executor.
Implements the Executor interface and SerializableObject interface.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecutorTime(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.longReturns the time at which this executor started.Returns the reason for which this executor was removed from the cluster.intReturns the resource information of this executor.intReturns the attempt ID of the stage.intReturns the ID of the stage the executor is running.intReturns the total number of cores available to this executor.voidsetEventame(String name) Sets the name of the event associated with this executor.voidsetExecutorHost(String host) Sets the host where this executor is running.voidsetExecutorID(String id) Sets the ID of this executor.voidsetReasonOfRemoval(String reasonOfRemoval) Sets the reason for which this executor was removed from the cluster.voidsetResourceInfo(int resourceInfoId) Sets the resource information of this executor.voidsetStageID(int id) Sets the ID of the stage the executor is running.voidsetTotalCores(int cores) Sets the total number of cores available to this executor.voidstageAttempt(int id) Sets the attempt ID of the stage.
-
Constructor Details
-
ExecutorRemoved
public ExecutorRemoved()
-
-
Method Details
-
getReasonOfRemoval
Description copied from interface:ExecutorReturns the reason for which this executor was removed from the cluster.- Specified by:
getReasonOfRemovalin interfaceExecutor- Returns:
- The reason for removal.
-
setReasonOfRemoval
Description copied from interface:ExecutorSets the reason for which this executor was removed from the cluster.- Specified by:
setReasonOfRemovalin interfaceExecutor- Parameters:
reasonOfRemoval- The reason for removal.
-
setEventame
Description copied from interface:ExecutorSets the name of the event associated with this executor.- Specified by:
setEventamein interfaceExecutor- Parameters:
name- The name of the event.
-
getEventName
Description copied from interface:ExecutorReturns the name of the event associated with this executor.- Specified by:
getEventNamein interfaceExecutor- Returns:
- The name of the event.
-
setStageID
public void setStageID(int id) Description copied from interface:ExecutorSets the ID of the stage the executor is running.- Specified by:
setStageIDin interfaceExecutor- Parameters:
id- The ID of the stage.
-
getStageID
public int getStageID()Description copied from interface:ExecutorReturns the ID of the stage the executor is running.- Specified by:
getStageIDin interfaceExecutor- Returns:
- The ID of the stage.
-
setExecutorID
Description copied from interface:ExecutorSets the ID of this executor.- Specified by:
setExecutorIDin interfaceExecutor- Parameters:
id- The ID of the executor.
-
getExecutorID
Description copied from interface:ExecutorReturns the ID of this executor.- Specified by:
getExecutorIDin interfaceExecutor- Returns:
- The ID of the executor.
-
stageAttempt
public void stageAttempt(int id) Description copied from interface:ExecutorSets the attempt ID of the stage.- Specified by:
stageAttemptin interfaceExecutor- Parameters:
id- The attempt ID of the stage.
-
getStageAttempt
public int getStageAttempt()Description copied from interface:ExecutorReturns the attempt ID of the stage.- Specified by:
getStageAttemptin interfaceExecutor- Returns:
- The attempt ID of the stage.
-
executorTime
public void executorTime(long Time) Description copied from interface:ExecutorSets the time at which this executor started.- Specified by:
executorTimein interfaceExecutor- Parameters:
Time- The start time of the executor.
-
getExecutorTime
public long getExecutorTime()Description copied from interface:ExecutorReturns the time at which this executor started.- Specified by:
getExecutorTimein interfaceExecutor- Returns:
- The start time of the executor.
-
setExecutorHost
Description copied from interface:ExecutorSets the host where this executor is running.- Specified by:
setExecutorHostin interfaceExecutor- Parameters:
host- The host where the executor is running.
-
getExecutorHost
Description copied from interface:ExecutorReturns the host where this executor is running.- Specified by:
getExecutorHostin interfaceExecutor- Returns:
- The host where the executor is running.
-
setTotalCores
public void setTotalCores(int cores) Description copied from interface:ExecutorSets the total number of cores available to this executor.- Specified by:
setTotalCoresin interfaceExecutor- Parameters:
cores- The total number of cores.
-
getTotalCores
public int getTotalCores()Description copied from interface:ExecutorReturns the total number of cores available to this executor.- Specified by:
getTotalCoresin interfaceExecutor- Returns:
- The total number of cores.
-
setResourceInfo
public void setResourceInfo(int resourceInfoId) Description copied from interface:ExecutorSets the resource information of this executor.- Specified by:
setResourceInfoin interfaceExecutor- Parameters:
resourceInfoId- The resource information of the executor.
-
getResourceInfo
public int getResourceInfo()Description copied from interface:ExecutorReturns the resource information of this executor.- Specified by:
getResourceInfoin interfaceExecutor- Returns:
- The resource information of the executor.
-