org.springframework.yarn.event
Class ContainerLaunchedEvent

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.ContainerLaunchedEvent
All Implemented Interfaces:
Serializable

public class ContainerLaunchedEvent
extends AbstractYarnEvent

Generic event representing that Container has been launched.

Author:
Janne Valkealahti
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ContainerLaunchedEvent(Object source, Container container)
          Constructs event with the given Container.
 
Method Summary
 Container getContainer()
          Gets the container.
 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

ContainerLaunchedEvent

public ContainerLaunchedEvent(Object source,
                              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 Container getContainer()
Gets the container.

Returns:
the container

toString

public String toString()
Overrides:
toString in class EventObject