org.springframework.yarn.event
Class ContainerCompletedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.yarn.event.AbstractYarnEvent
org.springframework.yarn.event.ContainerCompletedEvent
- All Implemented Interfaces:
- java.io.Serializable
public class ContainerCompletedEvent
- extends AbstractYarnEvent
Generic event representing that Container
has been completed.
- Author:
- Janne Valkealahti
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
ContainerCompletedEvent(java.lang.Object source,
org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus)
Constructs event with the given ContainerStatus . |
Method Summary |
org.apache.hadoop.yarn.api.records.ContainerStatus |
getContainerStatus()
Gets the container status. |
java.lang.String |
toString()
|
Methods inherited from class org.springframework.context.ApplicationEvent |
getTimestamp |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ContainerCompletedEvent
public ContainerCompletedEvent(java.lang.Object source,
org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus)
- Constructs event with the given
ContainerStatus
.
- Parameters:
source
- the component that published the event (never null
)containerStatus
- the container status
getContainerStatus
public org.apache.hadoop.yarn.api.records.ContainerStatus getContainerStatus()
- Gets the container status.
- Returns:
- the container status
toString
public java.lang.String toString()
- Overrides:
toString
in class java.util.EventObject