@InterfaceAudience.Public @InterfaceStability.Evolving public class TimelineReaderClientImpl extends TimelineReaderClient
STOP_ONLY_STARTED_SERVICES| 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<TimelineEntity> |
getApplicationAttemptEntities(ApplicationId appId,
String fields,
Map<String,String> filters,
long limit,
String fromId)
Gets application attempt entities.
|
TimelineEntity |
getApplicationAttemptEntity(ApplicationAttemptId appAttemptId,
String fields,
Map<String,String> filters)
Gets application attempt entity.
|
TimelineEntity |
getApplicationEntity(ApplicationId appId,
String fields,
Map<String,String> filters)
Gets application entity.
|
List<TimelineEntity> |
getContainerEntities(ApplicationId appId,
String fields,
Map<String,String> filters,
long limit,
String fromId)
Gets container entities for an application.
|
TimelineEntity |
getContainerEntity(ContainerId containerId,
String fields,
Map<String,String> filters)
Gets Timeline entity for the container.
|
protected void |
serviceInit(Configuration conf)
All initialization code needed by a service.
|
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(Configuration conf) throws Exception
AbstractServiceAbstractService.init(Configuration) prevents re-entrancy.
The base implementation checks to see if the subclass has created
a new configuration instance, and if so, updates the base class valueserviceInit in class CompositeServiceconf - configurationException - on a failure -these will be caught,
possibly wrapped, and will trigger a service stoppublic TimelineEntity getApplicationEntity(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 TimelineEntity getApplicationAttemptEntity(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<TimelineEntity> getApplicationAttemptEntities(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 TimelineEntity getContainerEntity(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<TimelineEntity> getContainerEntities(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 © 2023 Apache Software Foundation. All rights reserved.