public abstract class TimelineV2Client
extends org.apache.hadoop.service.CompositeService
TimelineClient
for ATS V1 interface.Modifier | Constructor and Description |
---|---|
protected |
TimelineV2Client(String name) |
Modifier and Type | Method and 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, serviceStop
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
protected TimelineV2Client(String name)
@InterfaceAudience.Public public static TimelineV2Client createTimelineClient(org.apache.hadoop.yarn.api.records.ApplicationId appId)
appId
- the application id with which the timeline client is
associated@InterfaceAudience.Public public abstract void putEntities(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity... entities) throws 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 TimelineEntity
IOException
- if there are I/O errorsorg.apache.hadoop.yarn.exceptions.YarnException
- if entities are incomplete/invalid@InterfaceAudience.Public public abstract void putEntitiesAsync(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity... entities) throws 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 TimelineEntity
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.@InterfaceAudience.Public public abstract void putSubAppEntities(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity... entities) throws 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 TimelineEntity
IOException
- if there are I/O errorsorg.apache.hadoop.yarn.exceptions.YarnException
- if entities are incomplete/invalid@InterfaceAudience.Public public abstract void putSubAppEntitiesAsync(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity... entities) throws 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 TimelineEntity
IOException
- if there are I/O errorsorg.apache.hadoop.yarn.exceptions.YarnException
- if entities are incomplete/invalidCopyright © 2008–2024 Apache Software Foundation. All rights reserved.