|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.yarn.event.DefaultYarnEventPublisher
public class DefaultYarnEventPublisher
The default strategy for publishing Yarn events.
Constructor Summary | |
---|---|
DefaultYarnEventPublisher()
Constructs default strategy without an event publisher. |
|
DefaultYarnEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
Constructs default strategy with an event publisher. |
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 |
publishEvent(AbstractYarnEvent event)
Publish a general application event of type AbstractYarnEvent . |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultYarnEventPublisher()
public DefaultYarnEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
applicationEventPublisher
- the event publisherMethod Detail |
---|
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher
in interface org.springframework.context.ApplicationEventPublisherAware
public void publishContainerAllocated(java.lang.Object source, org.apache.hadoop.yarn.api.records.Container container)
YarnEventPublisher
Container
.
publishContainerAllocated
in interface YarnEventPublisher
source
- the component that published the event (never null
)container
- the Containerpublic void publishContainerLaunched(java.lang.Object source, org.apache.hadoop.yarn.api.records.Container container)
YarnEventPublisher
Container
.
publishContainerLaunched
in interface YarnEventPublisher
source
- the component that published the event (never null
)container
- the Containerpublic void publishContainerCompleted(java.lang.Object source, org.apache.hadoop.yarn.api.records.ContainerStatus status)
YarnEventPublisher
ContainerStatus
.
publishContainerCompleted
in interface YarnEventPublisher
source
- the component that published the event (never null
)status
- the Container statuspublic void publishEvent(AbstractYarnEvent event)
YarnEventPublisher
AbstractYarnEvent
.
publishEvent
in interface YarnEventPublisher
event
- the event
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |