Class DocumentStoreTimelineReaderImpl
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.server.timelineservice.documentstore.DocumentStoreTimelineReaderImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service,org.apache.hadoop.yarn.server.timelineservice.storage.TimelineReader
public class DocumentStoreTimelineReaderImpl
extends org.apache.hadoop.service.AbstractService
implements org.apache.hadoop.yarn.server.timelineservice.storage.TimelineReader
This is a generic document store timeline reader for reading the timeline
entity information. Based on the
DocumentStoreVendor that is
configured, the documents are read from that backend.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATENested classes/interfaces inherited from interface org.apache.hadoop.yarn.server.timelineservice.storage.TimelineReader
org.apache.hadoop.yarn.server.timelineservice.storage.TimelineReader.Field -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity>getEntities(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineEntityFilters filters, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineDataToRetrieve dataToRetrieve) org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntitygetEntity(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineDataToRetrieve dataToRetrieve) getEntityTypes(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context) org.apache.hadoop.yarn.api.records.timeline.TimelineHealthvoidserviceInit(org.apache.hadoop.conf.Configuration conf) voidMethods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStart, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.service.Service
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, registerServiceListener, start, stop, unregisterServiceListener, waitForServiceToStop
-
Constructor Details
-
DocumentStoreTimelineReaderImpl
public DocumentStoreTimelineReaderImpl()
-
-
Method Details
-
serviceInit
- Overrides:
serviceInitin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStop
- Overrides:
serviceStopin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
getEntity
public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getEntity(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineDataToRetrieve dataToRetrieve) throws IOException - Specified by:
getEntityin interfaceorg.apache.hadoop.yarn.server.timelineservice.storage.TimelineReader- Throws:
IOException
-
getEntities
public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity> getEntities(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineEntityFilters filters, org.apache.hadoop.yarn.server.timelineservice.reader.TimelineDataToRetrieve dataToRetrieve) throws IOException - Specified by:
getEntitiesin interfaceorg.apache.hadoop.yarn.server.timelineservice.storage.TimelineReader- Throws:
IOException
-
getEntityTypes
public Set<String> getEntityTypes(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext context) - Specified by:
getEntityTypesin interfaceorg.apache.hadoop.yarn.server.timelineservice.storage.TimelineReader
-
getHealthStatus
public org.apache.hadoop.yarn.api.records.timeline.TimelineHealth getHealthStatus()- Specified by:
getHealthStatusin interfaceorg.apache.hadoop.yarn.server.timelineservice.storage.TimelineReader
-