@InterfaceAudience.Public @InterfaceStability.Evolving public class TimelineReaderClientImpl extends TimelineReaderClient
Constructor and Description |
---|
TimelineReaderClientImpl() |
Modifier and Type | Method and Description |
---|---|
protected com.sun.jersey.api.client.ClientResponse |
doGetUri(URI base,
String path,
javax.ws.rs.core.MultivaluedMap<String,String> params) |
protected String |
encodeValue(String value) |
List<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> |
getApplicationAttemptEntities(org.apache.hadoop.yarn.api.records.ApplicationId appId,
String fields,
Map<String,String> filters,
long limit,
String fromId)
Gets application attempt entities.
|
org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity |
getApplicationAttemptEntity(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
String fields,
Map<String,String> filters)
Gets application attempt entity.
|
org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity |
getApplicationEntity(org.apache.hadoop.yarn.api.records.ApplicationId appId,
String fields,
Map<String,String> filters)
Gets application entity.
|
List<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> |
getContainerEntities(org.apache.hadoop.yarn.api.records.ApplicationId appId,
String fields,
Map<String,String> filters,
long limit,
String fromId)
Gets container entities for an application.
|
org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity |
getContainerEntity(org.apache.hadoop.yarn.api.records.ContainerId containerId,
String fields,
Map<String,String> filters)
Gets Timeline entity for the container.
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
createTimelineReaderClient
addIfService, addService, getServices, removeService, 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 void serviceInit(org.apache.hadoop.conf.Configuration conf) throws Exception
serviceInit
in class org.apache.hadoop.service.CompositeService
Exception
public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getApplicationEntity(org.apache.hadoop.yarn.api.records.ApplicationId appId, String fields, Map<String,String> filters) throws IOException
TimelineReaderClient
getApplicationEntity
in class TimelineReaderClient
appId
- application idfields
- Fields to be fetched. Defaults to INFO.filters
- Filters to be applied while fetching entities.IOException
- io error occur.public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getApplicationAttemptEntity(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId, String fields, Map<String,String> filters) throws IOException
TimelineReaderClient
getApplicationAttemptEntity
in class TimelineReaderClient
appAttemptId
- application attempt idfields
- Fields to be fetched. Defaults to INFO.filters
- Filters to be applied while fetching entities.IOException
- io error occur.public List<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getApplicationAttemptEntities(org.apache.hadoop.yarn.api.records.ApplicationId appId, String fields, Map<String,String> filters, long limit, String fromId) throws IOException
TimelineReaderClient
getApplicationAttemptEntities
in class TimelineReaderClient
appId
- application idfields
- Fields to be fetched. Defaults to INFO.filters
- Filters to be applied while fetching entities.limit
- Number of entities to return.fromId
- Retrieve next set of generic ids from given fromIdIOException
- io error occur.public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getContainerEntity(org.apache.hadoop.yarn.api.records.ContainerId containerId, String fields, Map<String,String> filters) throws IOException
TimelineReaderClient
getContainerEntity
in class TimelineReaderClient
containerId
- container idfields
- Fields to be fetched. Defaults to INFO.filters
- Filters to be applied while fetching entities.IOException
- io error occur.public List<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getContainerEntities(org.apache.hadoop.yarn.api.records.ApplicationId appId, String fields, Map<String,String> filters, long limit, String fromId) throws IOException
TimelineReaderClient
getContainerEntities
in class TimelineReaderClient
appId
- application idfields
- Fields to be fetched. Defaults to INFO.filters
- Filters to be applied while fetching entities.limit
- Number of entities to return.fromId
- Retrieve next set of generic ids from given fromIdIOException
- io error occur.@VisibleForTesting protected String encodeValue(String value) throws UnsupportedEncodingException
UnsupportedEncodingException
@VisibleForTesting protected com.sun.jersey.api.client.ClientResponse doGetUri(URI base, String path, javax.ws.rs.core.MultivaluedMap<String,String> params) throws IOException
IOException
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.