Class SubApplicationTableRW
java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.storage.common.BaseTableRW<org.apache.hadoop.yarn.server.timelineservice.storage.subapplication.SubApplicationTable>
org.apache.hadoop.yarn.server.timelineservice.storage.subapplication.SubApplicationTableRW
public class SubApplicationTableRW
extends BaseTableRW<org.apache.hadoop.yarn.server.timelineservice.storage.subapplication.SubApplicationTable>
Create, read and write to the SubApplication table.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateTable(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.conf.Configuration hbaseConf) Used to create the table in HBase.voidsetMetricsTTL(int metricsTTL, org.apache.hadoop.conf.Configuration hbaseConf) Methods inherited from class org.apache.hadoop.yarn.server.timelineservice.storage.common.BaseTableRW
getResult, getResultScanner, getTableMutator, getTableName, getTableName, getTableName
-
Field Details
-
TABLE_NAME_CONF_NAME
config param name that specifies the subapplication table name.- See Also:
-
DEFAULT_TABLE_NAME
default value for subapplication table name.- See Also:
-
-
Constructor Details
-
SubApplicationTableRW
public SubApplicationTableRW()
-
-
Method Details
-
createTable
public void createTable(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.conf.Configuration hbaseConf) throws IOException Description copied from class:BaseTableRWUsed to create the table in HBase. Should be called only once (per HBase instance).- Specified by:
createTablein classBaseTableRW<org.apache.hadoop.yarn.server.timelineservice.storage.subapplication.SubApplicationTable>- Parameters:
admin- Used for doing HBase table operations.hbaseConf- Hbase configuration.- Throws:
IOException- if any exception occurs while creating the table.
-
setMetricsTTL
public void setMetricsTTL(int metricsTTL, org.apache.hadoop.conf.Configuration hbaseConf) - Parameters:
metricsTTL- time to live parameter for the metricss in this table.hbaseConf- configururation in which to set the metrics TTL config variable.
-