@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) |
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.
|
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(Configuration conf) throws Exception
AbstractService
AbstractService.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 CompositeService
conf
- configurationException
- on a failure -these will be caught,
possibly wrapped, and wil; trigger a service stoppublic TimelineEntity getApplicationEntity(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
public TimelineEntity getApplicationAttemptEntity(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
public List<TimelineEntity> getApplicationAttemptEntities(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
public TimelineEntity getContainerEntity(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
public List<TimelineEntity> getContainerEntities(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
protected com.sun.jersey.api.client.ClientResponse doGetUri(URI base, String path, javax.ws.rs.core.MultivaluedMap<String,String> params) throws IOException
IOException
Copyright © 2019 Apache Software Foundation. All rights reserved.