@InterfaceAudience.Private @InterfaceStability.Evolving public class TimelineClientImpl extends TimelineClient
Service.STATE| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SOCKET_TIMEOUT |
| Constructor and Description |
|---|
TimelineClientImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelDelegationToken(org.apache.hadoop.security.token.Token<TimelineDelegationTokenIdentifier> timelineDT)
Cancel a timeline delegation token.
|
com.sun.jersey.api.client.ClientResponse |
doPostingObject(Object object,
String path) |
org.apache.hadoop.security.token.Token<TimelineDelegationTokenIdentifier> |
getDelegationToken(String renewer)
Get a delegation token so as to be able to talk to the timeline server in a
secure way.
|
UserGroupInformation |
getUgi() |
static void |
main(String[] argv) |
void |
putDomain(TimelineDomain domain)
Send the information of a domain to the timeline server.
|
TimelinePutResponse |
putEntities(TimelineEntity... entities)
Send the information of a number of conceptual entities to the timeline
server.
|
long |
renewDelegationToken(org.apache.hadoop.security.token.Token<TimelineDelegationTokenIdentifier> timelineDT)
Renew a timeline delegation token.
|
protected void |
serviceInit(Configuration conf) |
protected void |
serviceStop() |
createTimelineClientclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStart, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic static final int DEFAULT_SOCKET_TIMEOUT
protected void serviceInit(Configuration conf) throws Exception
serviceInit in class AbstractServiceExceptionprotected void serviceStop()
throws Exception
serviceStop in class AbstractServiceExceptionpublic TimelinePutResponse putEntities(TimelineEntity... entities) throws IOException, YarnException
TimelineClientSend 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.
putEntities in class TimelineCliententities - the collection of TimelineEntityIOExceptionYarnExceptionpublic void putDomain(TimelineDomain domain) throws IOException, YarnException
TimelineClientSend the information of a domain to the timeline server. It is a blocking API. The method will not return until it gets the response from the timeline server.
putDomain in class TimelineClientdomain - an TimelineDomain objectIOExceptionYarnExceptionpublic org.apache.hadoop.security.token.Token<TimelineDelegationTokenIdentifier> getDelegationToken(String renewer) throws IOException, YarnException
TimelineClientGet a delegation token so as to be able to talk to the timeline server in a secure way.
getDelegationToken in class TimelineClientrenewer - 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 serverIOExceptionYarnExceptionpublic long renewDelegationToken(org.apache.hadoop.security.token.Token<TimelineDelegationTokenIdentifier> timelineDT) throws IOException, YarnException
TimelineClientRenew a timeline delegation token.
renewDelegationToken in class TimelineClienttimelineDT - the delegation token to renewIOExceptionYarnExceptionpublic void cancelDelegationToken(org.apache.hadoop.security.token.Token<TimelineDelegationTokenIdentifier> timelineDT) throws IOException, YarnException
TimelineClientCancel a timeline delegation token.
cancelDelegationToken in class TimelineClienttimelineDT - the delegation token to cancelIOExceptionYarnException@InterfaceAudience.Private public com.sun.jersey.api.client.ClientResponse doPostingObject(Object object, String path)
@InterfaceAudience.Private public UserGroupInformation getUgi()
Copyright © 2018 CERN. All Rights Reserved.