|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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(ApplicationEventPublisher applicationEventPublisher)
Constructs default strategy with an event publisher. |
|
| Method Summary | |
|---|---|
void |
publishContainerAllocated(Object source,
Container container)
Publish an application event containing information about the allocated Container. |
void |
publishContainerCompleted(Object source,
ContainerStatus status)
Publish an application event containing information about the completed ContainerStatus. |
void |
publishContainerLaunched(Object source,
Container container)
Publish an application event containing information about the launched Container. |
void |
publishContainerLaunchRequestFailed(Object source,
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. |
void |
setApplicationEventPublisher(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(ApplicationEventPublisher applicationEventPublisher)
applicationEventPublisher - the event publisher| Method Detail |
|---|
public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface ApplicationEventPublisherAware
public void publishContainerAllocated(Object source,
Container container)
YarnEventPublisherContainer.
publishContainerAllocated in interface YarnEventPublishersource - the component that published the event (never null)container - the Container
public void publishContainerLaunched(Object source,
Container container)
YarnEventPublisherContainer.
publishContainerLaunched in interface YarnEventPublishersource - the component that published the event (never null)container - the Container
public void publishContainerLaunchRequestFailed(Object source,
Container container)
YarnEventPublisherContainer launch request.
publishContainerLaunchRequestFailed in interface YarnEventPublishersource - the component that published the event (never null)container - the Container
public void publishContainerCompleted(Object source,
ContainerStatus status)
YarnEventPublisherContainerStatus.
publishContainerCompleted in interface YarnEventPublishersource - the component that published the event (never null)status - the Container statuspublic void publishEvent(AbstractYarnEvent event)
YarnEventPublisherAbstractYarnEvent.
publishEvent in interface YarnEventPublisherevent - the event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||