java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.Servicepublic class TimelineV2ClientImpl extends TimelineV2Client
| Constructor | Description |
|---|---|
TimelineV2ClientImpl(org.apache.hadoop.yarn.api.records.ApplicationId appId) |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.yarn.api.records.ApplicationId |
getContextAppId() |
|
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.
|
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.
|
protected void |
putObjects(java.lang.String path,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> params,
java.lang.Object obj) |
|
protected void |
putObjects(java.net.URI base,
java.lang.String path,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> params,
java.lang.Object obj) |
|
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.
|
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.
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
|
protected void |
serviceStart() |
|
protected void |
serviceStop() |
|
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.
|
createTimelineClientaddIfService, addService, getServices, removeServiceclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic TimelineV2ClientImpl(org.apache.hadoop.yarn.api.records.ApplicationId appId)
public org.apache.hadoop.yarn.api.records.ApplicationId getContextAppId()
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws java.lang.Exception
serviceInit in class org.apache.hadoop.service.CompositeServicejava.lang.Exceptionprotected void serviceStart()
throws java.lang.Exception
serviceStart in class org.apache.hadoop.service.CompositeServicejava.lang.Exceptionprotected void serviceStop()
throws java.lang.Exception
serviceStop in class org.apache.hadoop.service.CompositeServicejava.lang.Exceptionpublic void putEntities(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity... entities)
throws java.io.IOException,
org.apache.hadoop.yarn.exceptions.YarnException
TimelineV2ClientSend 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.
putEntities in class TimelineV2Cliententities - the collection of TimelineEntityjava.io.IOException - if there are I/O errorsorg.apache.hadoop.yarn.exceptions.YarnException - if entities are incomplete/invalidpublic void putEntitiesAsync(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity... entities)
throws java.io.IOException,
org.apache.hadoop.yarn.exceptions.YarnException
TimelineV2ClientSend 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.
putEntitiesAsync in class TimelineV2Cliententities - the collection of TimelineEntityjava.io.IOException - if there are I/O errorsorg.apache.hadoop.yarn.exceptions.YarnException - if entities are incomplete/invalidpublic void putSubAppEntities(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity... entities)
throws java.io.IOException,
org.apache.hadoop.yarn.exceptions.YarnException
TimelineV2ClientSend 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.
putSubAppEntities in class TimelineV2Cliententities - the collection of TimelineEntityjava.io.IOException - if there are I/O errorsorg.apache.hadoop.yarn.exceptions.YarnException - if entities are incomplete/invalidpublic void putSubAppEntitiesAsync(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity... entities)
throws java.io.IOException,
org.apache.hadoop.yarn.exceptions.YarnException
TimelineV2ClientSend 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 .
putSubAppEntitiesAsync in class TimelineV2Cliententities - the collection of TimelineEntityjava.io.IOException - if there are I/O errorsorg.apache.hadoop.yarn.exceptions.YarnException - if entities are incomplete/invalidpublic void setTimelineCollectorInfo(org.apache.hadoop.yarn.api.records.CollectorInfo collectorInfo)
TimelineV2ClientUpdate 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.
setTimelineCollectorInfo in class TimelineV2ClientcollectorInfo - Collector info which contains the timeline service
address and timeline delegation token.@Private
protected void putObjects(java.lang.String path,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> params,
java.lang.Object obj)
throws java.io.IOException,
org.apache.hadoop.yarn.exceptions.YarnException
java.io.IOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionprotected void putObjects(java.net.URI base,
java.lang.String path,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> params,
java.lang.Object obj)
throws java.io.IOException,
org.apache.hadoop.yarn.exceptions.YarnException
java.io.IOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.