Spring for Apache Hadoop

org.springframework.yarn.event
Interface YarnEventPublisher

All Known Implementing Classes:
DefaultYarnEventPublisher

public interface YarnEventPublisher

Interface for publishing Yarn based application events.

Author:
Janne Valkealahti

Method Summary
 void publishContainerAllocated(java.lang.Object source, org.apache.hadoop.yarn.api.records.Container container)
          Publish an application event containing information about the allocated Container.
 void publishContainerCompleted(java.lang.Object source, org.apache.hadoop.yarn.api.records.ContainerStatus status)
          Publish an application event containing information about the completed ContainerStatus.
 void publishContainerLaunched(java.lang.Object source, org.apache.hadoop.yarn.api.records.Container container)
          Publish an application event containing information about the launched Container.
 void publishContainerLaunchRequestFailed(java.lang.Object source, org.apache.hadoop.yarn.api.records.Container container)
          Publish an application event containing information about the failed Container launch request.
 void publishEvent(AbstractYarnEvent event)
          Publish a general application event of type AbstractYarnEvent.
 

Method Detail

publishContainerAllocated

void publishContainerAllocated(java.lang.Object source,
                               org.apache.hadoop.yarn.api.records.Container container)
Publish an application event containing information about the allocated Container.

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

publishContainerLaunched

void publishContainerLaunched(java.lang.Object source,
                              org.apache.hadoop.yarn.api.records.Container container)
Publish an application event containing information about the launched Container.

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

publishContainerLaunchRequestFailed

void publishContainerLaunchRequestFailed(java.lang.Object source,
                                         org.apache.hadoop.yarn.api.records.Container container)
Publish an application event containing information about the failed Container launch request.

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

publishContainerCompleted

void publishContainerCompleted(java.lang.Object source,
                               org.apache.hadoop.yarn.api.records.ContainerStatus status)
Publish an application event containing information about the completed ContainerStatus.

Parameters:
source - the component that published the event (never null)
status - the Container status

publishEvent

void publishEvent(AbstractYarnEvent event)
Publish a general application event of type AbstractYarnEvent.

Parameters:
event - the event

Spring for Apache Hadoop