java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.ServiceTimelineV2ClientImplpublic abstract class TimelineV2Client
extends org.apache.hadoop.service.CompositeService
TimelineClient for ATS V1 interface.| Modifier | Constructor | Description |
|---|---|---|
protected |
TimelineV2Client(java.lang.String name) |
| Modifier and Type | Method | Description |
|---|---|---|
static TimelineV2Client |
createTimelineClient(org.apache.hadoop.yarn.api.records.ApplicationId appId) |
Creates an instance of the timeline v.2 client.
|
abstract void |
putEntities(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity... entities) |
Send the information of a number of conceptual entities within the scope
of YARN application to the timeline service v.2 collector.
|
abstract void |
putEntitiesAsync(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity... entities) |
Send the information of a number of conceptual entities within the scope
of YARN application to the timeline service v.2 collector.
|
abstract void |
putSubAppEntities(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity... entities) |
Send the information of a number of conceptual entities within the scope of
a sub-application to the timeline service v.2 collector.
|
abstract void |
putSubAppEntitiesAsync(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity... entities) |
Send the information of a number of conceptual entities within the scope of
a sub-application to the timeline service v.2 collector.
|
abstract void |
setTimelineCollectorInfo(org.apache.hadoop.yarn.api.records.CollectorInfo collectorInfo) |
Update collector info received in AllocateResponse which contains the
timeline service address where the request will be sent to and the timeline
delegation token which will be used to send the request.
|
addIfService, addService, getServices, removeService, serviceInit, serviceStart, serviceStopclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop@Public public static TimelineV2Client createTimelineClient(org.apache.hadoop.yarn.api.records.ApplicationId appId)
appId - the application id with which the timeline client is
associated@Public
public abstract void putEntities(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity... entities)
throws java.io.IOException,
org.apache.hadoop.yarn.exceptions.YarnException
Send the information of a number of conceptual entities within the scope of YARN application to the timeline service v.2 collector. It is a blocking API. The method will not return until all the put entities have been persisted.
entities - the collection of TimelineEntityjava.io.IOException - if there are I/O errorsorg.apache.hadoop.yarn.exceptions.YarnException - if entities are incomplete/invalid@Public
public abstract void putEntitiesAsync(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity... entities)
throws java.io.IOException,
org.apache.hadoop.yarn.exceptions.YarnException
Send the information of a number of conceptual entities within the scope of YARN application to the timeline service v.2 collector. It is an asynchronous API. The method will return once all the entities are received.
entities - the collection of TimelineEntityjava.io.IOException - if there are I/O errorsorg.apache.hadoop.yarn.exceptions.YarnException - if entities are incomplete/invalidpublic abstract void setTimelineCollectorInfo(org.apache.hadoop.yarn.api.records.CollectorInfo collectorInfo)
Update collector info received in AllocateResponse which contains the timeline service address where the request will be sent to and the timeline delegation token which will be used to send the request.
collectorInfo - Collector info which contains the timeline service
address and timeline delegation token.@Public
public abstract void putSubAppEntities(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity... entities)
throws java.io.IOException,
org.apache.hadoop.yarn.exceptions.YarnException
Send the information of a number of conceptual entities within the scope of a sub-application to the timeline service v.2 collector. It is a blocking API. The method will not return until all the put entities have been persisted.
entities - the collection of TimelineEntityjava.io.IOException - if there are I/O errorsorg.apache.hadoop.yarn.exceptions.YarnException - if entities are incomplete/invalid@Public
public abstract void putSubAppEntitiesAsync(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity... entities)
throws java.io.IOException,
org.apache.hadoop.yarn.exceptions.YarnException
Send the information of a number of conceptual entities within the scope of a sub-application to the timeline service v.2 collector. It is an asynchronous API. The method will return once all the entities are received .
entities - the collection of TimelineEntityjava.io.IOException - if there are I/O errorsorg.apache.hadoop.yarn.exceptions.YarnException - if entities are incomplete/invalidCopyright © 2008–2025 Apache Software Foundation. All rights reserved.