Class DocumentStoreTimelineWriterImpl
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.server.timelineservice.documentstore.DocumentStoreTimelineWriterImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service,org.apache.hadoop.yarn.server.timelineservice.storage.TimelineWriter
public class DocumentStoreTimelineWriterImpl
extends org.apache.hadoop.service.AbstractService
implements org.apache.hadoop.yarn.server.timelineservice.storage.TimelineWriter
This is a generic document store timeline writer for storing the timeline
entity information. Based on the
DocumentStoreVendor that is
configured, the documents are written to that backend.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.yarn.api.records.timelineservice.TimelineWriteResponseaggregate(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity data, org.apache.hadoop.yarn.server.timelineservice.storage.TimelineAggregationTrack track) voidflush()org.apache.hadoop.yarn.api.records.timeline.TimelineHealthvoidserviceInit(org.apache.hadoop.conf.Configuration conf) protected voidprotected voidorg.apache.hadoop.yarn.api.records.timelineservice.TimelineWriteResponsewrite(org.apache.hadoop.yarn.server.timelineservice.collector.TimelineCollectorContext context, org.apache.hadoop.yarn.api.records.timelineservice.TimelineDomain domain) org.apache.hadoop.yarn.api.records.timelineservice.TimelineWriteResponsewrite(org.apache.hadoop.yarn.server.timelineservice.collector.TimelineCollectorContext context, org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntities data, org.apache.hadoop.security.UserGroupInformation callerUgi) Methods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, 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
-
DocumentStoreTimelineWriterImpl
public DocumentStoreTimelineWriterImpl()
-
-
Method Details
-
serviceInit
- Overrides:
serviceInitin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStart
- Overrides:
serviceStartin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
serviceStop
- Overrides:
serviceStopin classorg.apache.hadoop.service.AbstractService- Throws:
Exception
-
write
public org.apache.hadoop.yarn.api.records.timelineservice.TimelineWriteResponse write(org.apache.hadoop.yarn.server.timelineservice.collector.TimelineCollectorContext context, org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntities data, org.apache.hadoop.security.UserGroupInformation callerUgi) - Specified by:
writein interfaceorg.apache.hadoop.yarn.server.timelineservice.storage.TimelineWriter
-
write
public org.apache.hadoop.yarn.api.records.timelineservice.TimelineWriteResponse write(org.apache.hadoop.yarn.server.timelineservice.collector.TimelineCollectorContext context, org.apache.hadoop.yarn.api.records.timelineservice.TimelineDomain domain) throws IOException - Specified by:
writein interfaceorg.apache.hadoop.yarn.server.timelineservice.storage.TimelineWriter- Throws:
IOException
-
getHealthStatus
public org.apache.hadoop.yarn.api.records.timeline.TimelineHealth getHealthStatus()- Specified by:
getHealthStatusin interfaceorg.apache.hadoop.yarn.server.timelineservice.storage.TimelineWriter
-
aggregate
public org.apache.hadoop.yarn.api.records.timelineservice.TimelineWriteResponse aggregate(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity data, org.apache.hadoop.yarn.server.timelineservice.storage.TimelineAggregationTrack track) - Specified by:
aggregatein interfaceorg.apache.hadoop.yarn.server.timelineservice.storage.TimelineWriter
-
flush
public void flush()- Specified by:
flushin interfaceorg.apache.hadoop.yarn.server.timelineservice.storage.TimelineWriter
-