@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract class TimelineClient
extends org.apache.hadoop.service.AbstractService
| Modifier | Constructor and Description |
|---|---|
protected |
TimelineClient(String name) |
| Modifier and Type | Method and Description |
|---|---|
static TimelineClient |
createTimelineClient() |
abstract org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> |
getDelegationToken(String renewer)
Get a delegation token so as to be able to talk to the timeline server in a
secure way.
|
abstract org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse |
putEntities(org.apache.hadoop.yarn.api.records.timeline.TimelineEntity... entities)
Send the information of a number of conceptual entities to the timeline
server.
|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceInit, serviceStart, serviceStop, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop@InterfaceAudience.Private protected TimelineClient(String name)
@InterfaceAudience.Public public static TimelineClient createTimelineClient()
@InterfaceAudience.Public
public abstract org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse putEntities(org.apache.hadoop.yarn.api.records.timeline.TimelineEntity... entities)
throws IOException,
org.apache.hadoop.yarn.exceptions.YarnException
Send the information of a number of conceptual entities to the timeline server. It is a blocking API. The method will not return until it gets the response from the timeline server.
entities - the collection of TimelineEntityIOExceptionorg.apache.hadoop.yarn.exceptions.YarnException@InterfaceAudience.Public public abstract org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> getDelegationToken(String renewer) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
Get a delegation token so as to be able to talk to the timeline server in a secure way.
renewer - Address of the renewer who can renew these tokens when needed by
securely talking to the timeline serverToken) that can be used to talk to the
timeline serverIOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionCopyright © 2014 Apache Software Foundation. All Rights Reserved.