Spring for Apache Hadoop

org.springframework.yarn.event
Class ContainerLaunchRequestFailedEvent

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.ContainerLaunchRequestFailedEvent
All Implemented Interfaces:
java.io.Serializable

public class ContainerLaunchRequestFailedEvent
extends AbstractYarnEvent

Generic event representing that Container launch request has failed. This event is not an indication that container somewhat failed what is was supposed to do, instead failure indicates a failed request to start a container.

Author:
Janne Valkealahti
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ContainerLaunchRequestFailedEvent(java.lang.Object source, org.apache.hadoop.yarn.api.records.Container container)
          Constructs event with the given Container.
 
Method Summary
 org.apache.hadoop.yarn.api.records.Container getContainer()
          Gets the container.
 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

ContainerLaunchRequestFailedEvent

public ContainerLaunchRequestFailedEvent(java.lang.Object source,
                                         org.apache.hadoop.yarn.api.records.Container container)
Constructs event with the given Container.

Parameters:
source - the component that published the event (never null)
container - the Container
Method Detail

getContainer

public org.apache.hadoop.yarn.api.records.Container getContainer()
Gets the container.

Returns:
the container

toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject

Spring for Apache Hadoop