blob: e10895265936956264173355999123691f5757ee [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_40) on Thu Jul 20 13:16:19 PDT 2017 -->
<title>InstrumentedRowLevelPolicyDecorator (gobblin-core-base 0.11.0 API)</title>
<meta name="date" content="2017-07-20">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="InstrumentedRowLevelPolicyDecorator (gobblin-core-base 0.11.0 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicy.html" title="class in gobblin.instrumented.qualitychecker"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicyDecorator.html" target="_top">Frames</a></li>
<li><a href="InstrumentedRowLevelPolicyDecorator.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.gobblin.qualitychecker.row.RowLevelPolicy">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">gobblin.instrumented.qualitychecker</div>
<h2 title="Class InstrumentedRowLevelPolicyDecorator" class="title">Class InstrumentedRowLevelPolicyDecorator</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.html?is-external=true" title="class or interface in gobblin.qualitychecker.row">gobblin.qualitychecker.row.RowLevelPolicy</a></li>
<li>
<ul class="inheritance">
<li>gobblin.instrumented.qualitychecker.InstrumentedRowLevelPolicyDecorator</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../gobblin/instrumented/Instrumentable.html" title="interface in gobblin.instrumented">Instrumentable</a>, <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/util/Decorator.html?is-external=true" title="class or interface in gobblin.util">Decorator</a>, <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/util/FinalState.html?is-external=true" title="class or interface in gobblin.util">FinalState</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">InstrumentedRowLevelPolicyDecorator</span>
extends <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.html?is-external=true" title="class or interface in gobblin.qualitychecker.row">RowLevelPolicy</a>
implements <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/util/Decorator.html?is-external=true" title="class or interface in gobblin.util">Decorator</a></pre>
<div class="block">Decorator that automatically instruments <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.html?is-external=true" title="class or interface in gobblin.qualitychecker.row"><code>RowLevelPolicy</code></a>.
Handles already instrumented <a href="../../../gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicy.html" title="class in gobblin.instrumented.qualitychecker"><code>InstrumentedRowLevelPolicy</code></a>
appropriately to avoid double metric reporting.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.gobblin.qualitychecker.row.RowLevelPolicy">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class&nbsp;gobblin.qualitychecker.row.<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.html?is-external=true" title="class or interface in gobblin.qualitychecker.row">RowLevelPolicy</a></h3>
<code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.Result.html?is-external=true" title="class or interface in gobblin.qualitychecker.row">RowLevelPolicy.Result</a>, <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.Type.html?is-external=true" title="class or interface in gobblin.qualitychecker.row">RowLevelPolicy.Type</a></code></li>
</ul>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="http://google.github.io/guava/releases/15.0/api/docs/com/google/common/io/Closer.html?is-external=true" title="class or interface in com.google.common.io">Closer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicyDecorator.html#closer">closer</a></span></code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.gobblin.qualitychecker.row.RowLevelPolicy">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;gobblin.qualitychecker.row.<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.html?is-external=true" title="class or interface in gobblin.qualitychecker.row">RowLevelPolicy</a></h3>
<code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.html?is-external=true#state" title="class or interface in gobblin.qualitychecker.row">state</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicyDecorator.html#InstrumentedRowLevelPolicyDecorator-gobblin.qualitychecker.row.RowLevelPolicy-">InstrumentedRowLevelPolicyDecorator</a></span>(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.html?is-external=true" title="class or interface in gobblin.qualitychecker.row">RowLevelPolicy</a>&nbsp;policy)</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicyDecorator.html#afterCheck-gobblin.qualitychecker.row.RowLevelPolicy.Result-long-">afterCheck</a></span>(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.Result.html?is-external=true" title="class or interface in gobblin.qualitychecker.row">RowLevelPolicy.Result</a>&nbsp;result,
long&nbsp;startTimeNanos)</code>
<div class="block">Called after check is run.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicyDecorator.html#beforeCheck-java.lang.Object-">beforeCheck</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;record)</code>
<div class="block">Called before check is run.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicyDecorator.html#close--">close</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.Result.html?is-external=true" title="class or interface in gobblin.qualitychecker.row">RowLevelPolicy.Result</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicyDecorator.html#executePolicy-java.lang.Object-">executePolicy</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;record)</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.Result.html?is-external=true" title="class or interface in gobblin.qualitychecker.row">RowLevelPolicy.Result</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicyDecorator.html#executePolicyImpl-java.lang.Object-">executePolicyImpl</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;record)</code>
<div class="block">Subclasses should implement this instead of <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.html?is-external=true#executePolicy-java.lang.Object-" title="class or interface in gobblin.qualitychecker.row"><code>RowLevelPolicy.executePolicy(java.lang.Object)</code></a>.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics">Tag</a>&lt;?&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicyDecorator.html#generateTags-gobblin.configuration.State-">generateTags</a></span>(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/State.html?is-external=true" title="class or interface in gobblin.configuration">State</a>&nbsp;state)</code>
<div class="block">Default with no additional tags</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicyDecorator.html#getDecoratedObject--">getDecoratedObject</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/State.html?is-external=true" title="class or interface in gobblin.configuration">State</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicyDecorator.html#getFinalState--">getFinalState</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics">MetricContext</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicyDecorator.html#getMetricContext--">getMetricContext</a></span>()</code>
<div class="block">Get <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a> containing metrics related to this Instrumentable.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicyDecorator.html#isInstrumentationEnabled--">isInstrumentationEnabled</a></span>()</code>
<div class="block">Returns true if instrumentation is activated.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicyDecorator.html#regenerateMetrics--">regenerateMetrics</a></span>()</code>
<div class="block">Generates metrics for the instrumentation of this class.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicyDecorator.html#switchMetricContext-java.util.List-">switchMetricContext</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics">Tag</a>&lt;?&gt;&gt;&nbsp;tags)</code>
<div class="block">Generate a new <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a> replacing old <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics"><code>Tag</code></a> with input
<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics"><code>Tag</code></a> (only tags with the same keys will be replaced),
and recreate all metrics in this new context.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicyDecorator.html#switchMetricContext-gobblin.metrics.MetricContext-">switchMetricContext</a></span>(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics">MetricContext</a>&nbsp;context)</code>
<div class="block">Switches the existing <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a> with the supplied metric context and regenerates
<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Metric.html?is-external=true" title="class or interface in gobblin.metrics"><code>Metric</code></a>.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.gobblin.qualitychecker.row.RowLevelPolicy">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;gobblin.qualitychecker.row.<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.html?is-external=true" title="class or interface in gobblin.qualitychecker.row">RowLevelPolicy</a></h3>
<code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.html?is-external=true#getErrFileLocation--" title="class or interface in gobblin.qualitychecker.row">getErrFileLocation</a>, <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.html?is-external=true#getTaskState--" title="class or interface in gobblin.qualitychecker.row">getTaskState</a>, <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.html?is-external=true#getType--" title="class or interface in gobblin.qualitychecker.row">getType</a>, <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.html?is-external=true#toString--" title="class or interface in gobblin.qualitychecker.row">toString</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="closer">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>closer</h4>
<pre>protected final&nbsp;<a href="http://google.github.io/guava/releases/15.0/api/docs/com/google/common/io/Closer.html?is-external=true" title="class or interface in com.google.common.io">Closer</a> closer</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="InstrumentedRowLevelPolicyDecorator-gobblin.qualitychecker.row.RowLevelPolicy-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>InstrumentedRowLevelPolicyDecorator</h4>
<pre>public&nbsp;InstrumentedRowLevelPolicyDecorator(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.html?is-external=true" title="class or interface in gobblin.qualitychecker.row">RowLevelPolicy</a>&nbsp;policy)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getMetricContext--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMetricContext</h4>
<pre>public&nbsp;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics">MetricContext</a>&nbsp;getMetricContext()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../gobblin/instrumented/Instrumentable.html#getMetricContext--">Instrumentable</a></code></span></div>
<div class="block">Get <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a> containing metrics related to this Instrumentable.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../gobblin/instrumented/Instrumentable.html#getMetricContext--">getMetricContext</a></code>&nbsp;in interface&nbsp;<code><a href="../../../gobblin/instrumented/Instrumentable.html" title="interface in gobblin.instrumented">Instrumentable</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an instance of <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a>.</dd>
</dl>
</li>
</ul>
<a name="executePolicy-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>executePolicy</h4>
<pre>public&nbsp;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.Result.html?is-external=true" title="class or interface in gobblin.qualitychecker.row">RowLevelPolicy.Result</a>&nbsp;executePolicy(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;record)</pre>
</li>
</ul>
<a name="executePolicyImpl-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>executePolicyImpl</h4>
<pre>public&nbsp;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.Result.html?is-external=true" title="class or interface in gobblin.qualitychecker.row">RowLevelPolicy.Result</a>&nbsp;executePolicyImpl(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;record)</pre>
<div class="block">Subclasses should implement this instead of <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.html?is-external=true#executePolicy-java.lang.Object-" title="class or interface in gobblin.qualitychecker.row"><code>RowLevelPolicy.executePolicy(java.lang.Object)</code></a>.</div>
</li>
</ul>
<a name="close--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>close</h4>
<pre>public&nbsp;void&nbsp;close()
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true#close--" title="class or interface in java.io">close</a></code>&nbsp;in interface&nbsp;<code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html?is-external=true#close--" title="class or interface in java.lang">close</a></code>&nbsp;in interface&nbsp;<code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="getDecoratedObject--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDecoratedObject</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;getDecoratedObject()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/util/Decorator.html?is-external=true#getDecoratedObject--" title="class or interface in gobblin.util">getDecoratedObject</a></code>&nbsp;in interface&nbsp;<code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/util/Decorator.html?is-external=true" title="class or interface in gobblin.util">Decorator</a></code></dd>
</dl>
</li>
</ul>
<a name="getFinalState--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFinalState</h4>
<pre>public&nbsp;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/State.html?is-external=true" title="class or interface in gobblin.configuration">State</a>&nbsp;getFinalState()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/util/FinalState.html?is-external=true#getFinalState--" title="class or interface in gobblin.util">getFinalState</a></code>&nbsp;in interface&nbsp;<code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/util/FinalState.html?is-external=true" title="class or interface in gobblin.util">FinalState</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.html?is-external=true#getFinalState--" title="class or interface in gobblin.qualitychecker.row">getFinalState</a></code>&nbsp;in class&nbsp;<code><a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.html?is-external=true" title="class or interface in gobblin.qualitychecker.row">RowLevelPolicy</a></code></dd>
</dl>
</li>
</ul>
<a name="switchMetricContext-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>switchMetricContext</h4>
<pre>public&nbsp;void&nbsp;switchMetricContext(<a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics">Tag</a>&lt;?&gt;&gt;&nbsp;tags)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../gobblin/instrumented/Instrumentable.html#switchMetricContext-java.util.List-">Instrumentable</a></code></span></div>
<div class="block">Generate a new <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a> replacing old <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics"><code>Tag</code></a> with input
<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics"><code>Tag</code></a> (only tags with the same keys will be replaced),
and recreate all metrics in this new context.
<p>
This method is useful when the state of the <a href="../../../gobblin/instrumented/Instrumentable.html" title="interface in gobblin.instrumented"><code>Instrumentable</code></a> changes and the user
wants that state change to be reflected in the tags of the instrumentation.
</p>
<p>
Notice that this method creates a brand new <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a> and <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Metric.html?is-external=true" title="class or interface in gobblin.metrics"><code>Metric</code></a>
every time it is called,
with the associated processing and memory overhead. Use sparingly only for state changes that must be visible in
emitted metrics.
</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../gobblin/instrumented/Instrumentable.html#switchMetricContext-java.util.List-">switchMetricContext</a></code>&nbsp;in interface&nbsp;<code><a href="../../../gobblin/instrumented/Instrumentable.html" title="interface in gobblin.instrumented">Instrumentable</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>tags</code> - additional <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics"><code>Tag</code></a>.</dd>
</dl>
</li>
</ul>
<a name="switchMetricContext-gobblin.metrics.MetricContext-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>switchMetricContext</h4>
<pre>public&nbsp;void&nbsp;switchMetricContext(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics">MetricContext</a>&nbsp;context)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../gobblin/instrumented/Instrumentable.html#switchMetricContext-gobblin.metrics.MetricContext-">Instrumentable</a></code></span></div>
<div class="block">Switches the existing <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a> with the supplied metric context and regenerates
<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Metric.html?is-external=true" title="class or interface in gobblin.metrics"><code>Metric</code></a>.
<p>
This method is useful when the state of the <a href="../../../gobblin/instrumented/Instrumentable.html" title="interface in gobblin.instrumented"><code>Instrumentable</code></a> changes and the user
wants that state change to be reflected in the set of <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics"><code>Tag</code></a> of the instrumentation.
</p>
<p>
This method is an alternative to <a href="../../../gobblin/instrumented/Instrumentable.html#switchMetricContext-java.util.List-"><code>Instrumentable.switchMetricContext(List)</code></a> when metric context switching is done
often between a small set of contexts. The subclass should keep a list of previously generated contexts as a cache,
and call this method to simply switch between the different contexts,
avoiding the overhead of generating a brand new context every time a metric context switch is required.
</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../gobblin/instrumented/Instrumentable.html#switchMetricContext-gobblin.metrics.MetricContext-">switchMetricContext</a></code>&nbsp;in interface&nbsp;<code><a href="../../../gobblin/instrumented/Instrumentable.html" title="interface in gobblin.instrumented">Instrumentable</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>context</code> - new <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a>.</dd>
</dl>
</li>
</ul>
<a name="regenerateMetrics--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>regenerateMetrics</h4>
<pre>protected&nbsp;void&nbsp;regenerateMetrics()</pre>
<div class="block">Generates metrics for the instrumentation of this class.</div>
</li>
</ul>
<a name="generateTags-gobblin.configuration.State-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>generateTags</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/Tag.html?is-external=true" title="class or interface in gobblin.metrics">Tag</a>&lt;?&gt;&gt;&nbsp;generateTags(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/configuration/State.html?is-external=true" title="class or interface in gobblin.configuration">State</a>&nbsp;state)</pre>
<div class="block">Default with no additional tags</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../gobblin/instrumented/Instrumentable.html#generateTags-gobblin.configuration.State-">generateTags</a></code>&nbsp;in interface&nbsp;<code><a href="../../../gobblin/instrumented/Instrumentable.html" title="interface in gobblin.instrumented">Instrumentable</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>List of tags to add to <a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-metrics/gobblin/metrics/MetricContext.html?is-external=true" title="class or interface in gobblin.metrics"><code>MetricContext</code></a>.</dd>
</dl>
</li>
</ul>
<a name="isInstrumentationEnabled--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isInstrumentationEnabled</h4>
<pre>public&nbsp;boolean&nbsp;isInstrumentationEnabled()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../gobblin/instrumented/Instrumentable.html#isInstrumentationEnabled--">Instrumentable</a></code></span></div>
<div class="block">Returns true if instrumentation is activated.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../gobblin/instrumented/Instrumentable.html#isInstrumentationEnabled--">isInstrumentationEnabled</a></code>&nbsp;in interface&nbsp;<code><a href="../../../gobblin/instrumented/Instrumentable.html" title="interface in gobblin.instrumented">Instrumentable</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if instrumentation is enabled, false otherwise.</dd>
</dl>
</li>
</ul>
<a name="beforeCheck-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>beforeCheck</h4>
<pre>public&nbsp;void&nbsp;beforeCheck(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;record)</pre>
<div class="block">Called before check is run.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>record</code> - </dd>
</dl>
</li>
</ul>
<a name="afterCheck-gobblin.qualitychecker.row.RowLevelPolicy.Result-long-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>afterCheck</h4>
<pre>public&nbsp;void&nbsp;afterCheck(<a href="http://linkedin.github.io/gobblin/javadoc/0.11.0/gobblin-api/gobblin/qualitychecker/row/RowLevelPolicy.Result.html?is-external=true" title="class or interface in gobblin.qualitychecker.row">RowLevelPolicy.Result</a>&nbsp;result,
long&nbsp;startTimeNanos)</pre>
<div class="block">Called after check is run.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>result</code> - result from check.</dd>
<dd><code>startTimeNanos</code> - start time of check.</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicy.html" title="class in gobblin.instrumented.qualitychecker"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?gobblin/instrumented/qualitychecker/InstrumentedRowLevelPolicyDecorator.html" target="_top">Frames</a></li>
<li><a href="InstrumentedRowLevelPolicyDecorator.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.gobblin.qualitychecker.row.RowLevelPolicy">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>