@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) | 
createTimelineReaderClientaddIfService, addService, getServices, removeService, serviceStart, serviceStopclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopprotected void serviceInit(org.apache.hadoop.conf.Configuration conf)
                    throws Exception
serviceInit in class org.apache.hadoop.service.CompositeServiceExceptionpublic 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
TimelineReaderClientgetApplicationEntity in class TimelineReaderClientappId - application idfields - Fields to be fetched. Defaults to INFO.filters - Filters to be applied while fetching entities.IOExceptionpublic 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
TimelineReaderClientgetApplicationAttemptEntity in class TimelineReaderClientappAttemptId - application attempt idfields - Fields to be fetched. Defaults to INFO.filters - Filters to be applied while fetching entities.IOExceptionpublic 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
TimelineReaderClientgetApplicationAttemptEntities in class TimelineReaderClientappId - 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 fromIdIOExceptionpublic 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
TimelineReaderClientgetContainerEntity in class TimelineReaderClientcontainerId - container idfields - Fields to be fetched. Defaults to INFO.filters - Filters to be applied while fetching entities.IOExceptionpublic 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
TimelineReaderClientgetContainerEntities in class TimelineReaderClientappId - 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 fromIdIOExceptionprotected String encodeValue(String value) throws UnsupportedEncodingException
UnsupportedEncodingExceptionprotected com.sun.jersey.api.client.ClientResponse doGetUri(URI base, String path, javax.ws.rs.core.MultivaluedMap<String,String> params) throws IOException
IOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.