public abstract class AbstractTimelineStorageReader extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractTimelineStorageReader.FlowContext
Encapsulates flow context information.
|
Constructor and Description |
---|
AbstractTimelineStorageReader(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext ctxt) |
Modifier and Type | Method and Description |
---|---|
protected void |
augmentParams(org.apache.hadoop.conf.Configuration hbaseConf,
org.apache.hadoop.hbase.client.Connection conn)
Sets certain parameters to defaults if the values are not provided.
|
protected void |
defaultAugmentParams(org.apache.hadoop.conf.Configuration hbaseConf,
org.apache.hadoop.hbase.client.Connection conn)
Default behavior for all timeline readers to augment parameters.
|
protected org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext |
getContext() |
protected AbstractTimelineStorageReader.FlowContext |
lookupFlowContext(org.apache.hadoop.yarn.server.timelineservice.storage.apptoflow.AppToFlowRowKey appToFlowRowKey,
String clusterId,
org.apache.hadoop.conf.Configuration hbaseConf,
org.apache.hadoop.hbase.client.Connection conn)
Looks up flow context from AppToFlow table.
|
protected abstract void |
validateParams()
Validates the required parameters to read the entities.
|
public AbstractTimelineStorageReader(org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext ctxt)
protected org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderContext getContext()
protected AbstractTimelineStorageReader.FlowContext lookupFlowContext(org.apache.hadoop.yarn.server.timelineservice.storage.apptoflow.AppToFlowRowKey appToFlowRowKey, String clusterId, org.apache.hadoop.conf.Configuration hbaseConf, org.apache.hadoop.hbase.client.Connection conn) throws IOException
appToFlowRowKey
- to identify Cluster and App Ids.clusterId
- the cluster id.hbaseConf
- HBase configuration.conn
- HBase Connection.IOException
- if any problem occurs while fetching flow information.protected void augmentParams(org.apache.hadoop.conf.Configuration hbaseConf, org.apache.hadoop.hbase.client.Connection conn) throws IOException
hbaseConf
- HBase Configuration.conn
- HBase Connection.IOException
- if any exception is encountered while setting params.protected final void defaultAugmentParams(org.apache.hadoop.conf.Configuration hbaseConf, org.apache.hadoop.hbase.client.Connection conn) throws IOException
hbaseConf
- HBase Configuration.conn
- HBase Connection.IOException
- if any exception is encountered while setting params.protected abstract void validateParams()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.