Spring for Apache Hadoop

org.springframework.yarn.event
Class ContainerCompletedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.springframework.context.ApplicationEvent
          extended by org.springframework.yarn.event.AbstractYarnEvent
              extended by 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

Field Summary
 
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
 

Constructor Detail

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
Method Detail

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

Spring for Apache Hadoop