@InterfaceAudience.Private
 @InterfaceStability.Unstable
public class HBaseTimelineWriterImpl
extends org.apache.hadoop.service.AbstractService
implements org.apache.hadoop.yarn.server.timelineservice.storage.TimelineWriter
| Constructor and Description | 
|---|
| HBaseTimelineWriterImpl() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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) | 
| void | flush() | 
| protected org.apache.hadoop.yarn.server.timelineservice.storage.TimelineStorageMonitor | getTimelineStorageMonitor() | 
| protected void | serviceInit(org.apache.hadoop.conf.Configuration conf)initializes the hbase connection to write to the entity table. | 
| protected void | serviceStart() | 
| protected void | serviceStop()close the hbase connections The close APIs perform flushing and release any
 resources held. | 
| 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) | 
| 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)Stores the entire information in TimelineEntities to the timeline store. | 
close, 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.AbstractServiceExceptionprotected void serviceStart()
                     throws Exception
serviceStart in class org.apache.hadoop.service.AbstractServiceExceptionpublic 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)
                                                                               throws IOException
write in interface org.apache.hadoop.yarn.server.timelineservice.storage.TimelineWriterIOExceptionpublic 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
write in interface org.apache.hadoop.yarn.server.timelineservice.storage.TimelineWriterIOExceptionpublic 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)
                                                                                   throws IOException
aggregate in interface org.apache.hadoop.yarn.server.timelineservice.storage.TimelineWriterIOExceptionpublic void flush()
           throws IOException
flush in interface org.apache.hadoop.yarn.server.timelineservice.storage.TimelineWriterIOExceptionprotected void serviceStop()
                    throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceExceptionprotected org.apache.hadoop.yarn.server.timelineservice.storage.TimelineStorageMonitor getTimelineStorageMonitor()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.