blob: 84e8926f94f44d7b1af78c215b733bcbd55a8dad [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 -->
<title>StatisticsFactory (Apache Geode 1.15.0)</title>
<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="StatisticsFactory (Apache Geode 1.15.0)";
}
}
catch(err) {
}
//-->
var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract 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="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?org/apache/geode/StatisticsFactory.html" target="_top">Frames</a></li>
<li><a href="StatisticsFactory.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>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&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">org.apache.geode</div>
<h2 title="Interface StatisticsFactory" class="title">Interface StatisticsFactory</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Superinterfaces:</dt>
<dd><a href="../../../org/apache/geode/StatisticsTypeFactory.html" title="interface in org.apache.geode">StatisticsTypeFactory</a></dd>
</dl>
<dl>
<dt>All Known Implementing Classes:</dt>
<dd><a href="../../../org/apache/geode/distributed/DistributedSystem.html" title="class in org.apache.geode.distributed">DistributedSystem</a></dd>
</dl>
<hr>
<br>
<pre>public interface <span class="typeNameLabel">StatisticsFactory</span>
extends <a href="../../../org/apache/geode/StatisticsTypeFactory.html" title="interface in org.apache.geode">StatisticsTypeFactory</a></pre>
<div class="block">Instances of this interface provide methods that create instances of <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a>. It can
also be used to create instances of <a href="../../../org/apache/geode/StatisticDescriptor.html" title="interface in org.apache.geode"><code>StatisticDescriptor</code></a> and <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>StatisticsType</code></a>
because it implements <a href="../../../org/apache/geode/StatisticsTypeFactory.html" title="interface in org.apache.geode"><code>StatisticsTypeFactory</code></a>.
<a href="../../../org/apache/geode/distributed/DistributedSystem.html" title="class in org.apache.geode.distributed"><code>DistributedSystem</code></a> is the only instance of this interface.
<P>
A <code>StatisticsFactory</code> can create a <a href="../../../org/apache/geode/StatisticDescriptor.html" title="interface in org.apache.geode"><code>statistic</code></a> of two
numeric types: <code>long</code>, and <code>double</code>. A statistic
(<code>StatisticDescriptor</code>) can either be a <I>gauge</I> meaning that its value can
increase and decrease or a <I>counter</I> meaning that its value is strictly increasing.
<P>
The following code is an example of how to create a type using the api. In this example the type
has two stats whose values always increase:
<pre>
StatisticsFactory f = ...;
StatisticsType t = f.createType(
"StatSampler",
"Stats on the statistic sampler.",
new StatisticDescriptor[] {
f.createLongCounter("sampleCount",
"Total number of samples taken by this sampler.",
"samples"),
f.createLongCounter("sampleTime",
"Total amount of time spent taking samples.",
"milliseconds"),
}
);
this.samplerStats = f.createStatistics(t, "statSampler");
this.sampleCountId = this.samplerStats.nameToId("sampleCount");
this.sampleTimeId = this.samplerStats.nameToId("sampleTime");
</pre>
Later on the stat ids can be used to increment the stats:
<pre>
this.samplerStats.incLong(this.sampleCountId, 1);
this.samplerStats.incLong(this.sampleTimeId, nanosSpentWorking / 1000000);
</pre>
<P>
The following is an example of how to create the same type using XML. The XML data:
<pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE statistics PUBLIC
"-//GemStone Systems, Inc.//GemFire Statistics Type//EN"
"http://www.gemstone.com/dtd/statisticsType.dtd"&gt;
&lt;statistics&gt;
&lt;type name="StatSampler"&gt;
&lt;description&gt;Stats on the statistic sampler.&lt;/description&gt;
&lt;stat name="sampleCount" storage="long" counter="true"&gt;
&lt;description&gt;Total number of samples taken by this sampler.&lt;/description&gt;
&lt;unit&gt;samples&lt;/unit&gt;
&lt;/stat&gt;
&lt;stat name="sampleTime" storage="long" counter="true"&gt;
&lt;description&gt;Total amount of time spent taking samples.&lt;/description&gt;
&lt;unit&gt;milliseconds&lt;/unit&gt;
&lt;/stat&gt;
&lt;/type&gt;
&lt;/statistics&gt;
</pre>
The code to create the type:
<pre>
StatisticsFactory f = ...;
Reader r = new InputStreamReader("fileContainingXmlData"));
StatisticsType type = f.createTypesFromXml(r)[0];
</pre>
<P></div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>GemFire 3.0</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><A href="package-summary.html#statistics">Package introduction</A></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.geode.StatisticsTypeFactory">
<!-- -->
</a>
<h3>Fields inherited from interface&nbsp;org.apache.geode.<a href="../../../org/apache/geode/StatisticsTypeFactory.html" title="interface in org.apache.geode">StatisticsTypeFactory</a></h3>
<code><a href="../../../org/apache/geode/StatisticsTypeFactory.html#MAX_DESCRIPTORS_PER_TYPE">MAX_DESCRIPTORS_PER_TYPE</a></code></li>
</ul>
</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="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract 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><a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode">Statistics</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/geode/StatisticsFactory.html#createAtomicStatistics-org.apache.geode.StatisticsType-">createAtomicStatistics</a></span>(<a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode">StatisticsType</a>&nbsp;type)</code>
<div class="block">Creates and returns a <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance of the given <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a> with
default ids.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode">Statistics</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/geode/StatisticsFactory.html#createAtomicStatistics-org.apache.geode.StatisticsType-java.lang.String-">createAtomicStatistics</a></span>(<a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode">StatisticsType</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;textId)</code>
<div class="block">Creates and returns a <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance of the given <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a>,
<code>textId</code>, and with a default numeric id.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode">Statistics</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/geode/StatisticsFactory.html#createAtomicStatistics-org.apache.geode.StatisticsType-java.lang.String-long-">createAtomicStatistics</a></span>(<a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode">StatisticsType</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;textId,
long&nbsp;numericId)</code>
<div class="block">Creates and returns a <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance of the given <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a>,
<code>textId</code>, and <code>numericId</code>.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode">Statistics</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/geode/StatisticsFactory.html#createStatistics-org.apache.geode.StatisticsType-">createStatistics</a></span>(<a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode">StatisticsType</a>&nbsp;type)</code>
<div class="block">Creates and returns a <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance of the given <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a> with
default ids.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode">Statistics</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/geode/StatisticsFactory.html#createStatistics-org.apache.geode.StatisticsType-java.lang.String-">createStatistics</a></span>(<a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode">StatisticsType</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;textId)</code>
<div class="block">Creates and returns a <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance of the given <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a>,
<code>textId</code>, and with a default numeric id.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode">Statistics</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/geode/StatisticsFactory.html#createStatistics-org.apache.geode.StatisticsType-java.lang.String-long-">createStatistics</a></span>(<a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode">StatisticsType</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;textId,
long&nbsp;numericId)</code>
<div class="block">Creates and returns a <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance of the given <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a>,
<code>textId</code>, and <code>numericId</code>.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode">Statistics</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/geode/StatisticsFactory.html#findStatisticsByNumericId-long-">findStatisticsByNumericId</a></span>(long&nbsp;numericId)</code>
<div class="block">Returns an array of all the existing statistics with the given numericId.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode">Statistics</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/geode/StatisticsFactory.html#findStatisticsByTextId-java.lang.String-">findStatisticsByTextId</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;textId)</code>
<div class="block">Returns an array of all the existing statistics with the given textId.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode">Statistics</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/geode/StatisticsFactory.html#findStatisticsByType-org.apache.geode.StatisticsType-">findStatisticsByType</a></span>(<a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode">StatisticsType</a>&nbsp;type)</code>
<div class="block">Returns an array of all the existing statistics of the given type.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.geode.StatisticsTypeFactory">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.apache.geode.<a href="../../../org/apache/geode/StatisticsTypeFactory.html" title="interface in org.apache.geode">StatisticsTypeFactory</a></h3>
<code><a href="../../../org/apache/geode/StatisticsTypeFactory.html#createDoubleCounter-java.lang.String-java.lang.String-java.lang.String-">createDoubleCounter</a>, <a href="../../../org/apache/geode/StatisticsTypeFactory.html#createDoubleCounter-java.lang.String-java.lang.String-java.lang.String-boolean-">createDoubleCounter</a>, <a href="../../../org/apache/geode/StatisticsTypeFactory.html#createDoubleGauge-java.lang.String-java.lang.String-java.lang.String-">createDoubleGauge</a>, <a href="../../../org/apache/geode/StatisticsTypeFactory.html#createDoubleGauge-java.lang.String-java.lang.String-java.lang.String-boolean-">createDoubleGauge</a>, <a href="../../../org/apache/geode/StatisticsTypeFactory.html#createIntCounter-java.lang.String-java.lang.String-java.lang.String-">createIntCounter</a>, <a href="../../../org/apache/geode/StatisticsTypeFactory.html#createIntCounter-java.lang.String-java.lang.String-java.lang.String-boolean-">createIntCounter</a>, <a href="../../../org/apache/geode/StatisticsTypeFactory.html#createIntGauge-java.lang.String-java.lang.String-java.lang.String-">createIntGauge</a>, <a href="../../../org/apache/geode/StatisticsTypeFactory.html#createIntGauge-java.lang.String-java.lang.String-java.lang.String-boolean-">createIntGauge</a>, <a href="../../../org/apache/geode/StatisticsTypeFactory.html#createLongCounter-java.lang.String-java.lang.String-java.lang.String-">createLongCounter</a>, <a href="../../../org/apache/geode/StatisticsTypeFactory.html#createLongCounter-java.lang.String-java.lang.String-java.lang.String-boolean-">createLongCounter</a>, <a href="../../../org/apache/geode/StatisticsTypeFactory.html#createLongGauge-java.lang.String-java.lang.String-java.lang.String-">createLongGauge</a>, <a href="../../../org/apache/geode/StatisticsTypeFactory.html#createLongGauge-java.lang.String-java.lang.String-java.lang.String-boolean-">createLongGauge</a>, <a href="../../../org/apache/geode/StatisticsTypeFactory.html#createType-java.lang.String-java.lang.String-org.apache.geode.StatisticDescriptor:A-">createType</a>, <a href="../../../org/apache/geode/StatisticsTypeFactory.html#createTypesFromXml-java.io.Reader-">createTypesFromXml</a>, <a href="../../../org/apache/geode/StatisticsTypeFactory.html#findType-java.lang.String-">findType</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="createStatistics-org.apache.geode.StatisticsType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createStatistics</h4>
<pre><a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode">Statistics</a>&nbsp;createStatistics(<a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode">StatisticsType</a>&nbsp;type)</pre>
<div class="block">Creates and returns a <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance of the given <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a> with
default ids.
<p>
The created instance may not be <a href="../../../org/apache/geode/Statistics.html#isAtomic--"><code>atomic</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - the <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a> of <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a newly created <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance</dd>
</dl>
</li>
</ul>
<a name="createStatistics-org.apache.geode.StatisticsType-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createStatistics</h4>
<pre><a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode">Statistics</a>&nbsp;createStatistics(<a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode">StatisticsType</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;textId)</pre>
<div class="block">Creates and returns a <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance of the given <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a>,
<code>textId</code>, and with a default numeric id.
<p>
The created instance may not be <a href="../../../org/apache/geode/Statistics.html#isAtomic--"><code>atomic</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - the <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a> of <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance</dd>
<dd><code>textId</code> - the <code>textId</code> of the <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a newly created <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance</dd>
</dl>
</li>
</ul>
<a name="createStatistics-org.apache.geode.StatisticsType-java.lang.String-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createStatistics</h4>
<pre><a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode">Statistics</a>&nbsp;createStatistics(<a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode">StatisticsType</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;textId,
long&nbsp;numericId)</pre>
<div class="block">Creates and returns a <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance of the given <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a>,
<code>textId</code>, and <code>numericId</code>.
<p>
The created instance may not be <a href="../../../org/apache/geode/Statistics.html#isAtomic--"><code>atomic</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - the <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a> of <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance</dd>
<dd><code>textId</code> - the <code>textId</code> of the <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance</dd>
<dd><code>numericId</code> - the <code>numericId</code> of the <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a newly created <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance</dd>
</dl>
</li>
</ul>
<a name="createAtomicStatistics-org.apache.geode.StatisticsType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createAtomicStatistics</h4>
<pre><a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode">Statistics</a>&nbsp;createAtomicStatistics(<a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode">StatisticsType</a>&nbsp;type)</pre>
<div class="block">Creates and returns a <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance of the given <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a> with
default ids.
<p>
The created instance will be <a href="../../../org/apache/geode/Statistics.html#isAtomic--"><code>atomic</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - the <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a> of <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a newly created <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance</dd>
</dl>
</li>
</ul>
<a name="createAtomicStatistics-org.apache.geode.StatisticsType-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createAtomicStatistics</h4>
<pre><a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode">Statistics</a>&nbsp;createAtomicStatistics(<a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode">StatisticsType</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;textId)</pre>
<div class="block">Creates and returns a <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance of the given <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a>,
<code>textId</code>, and with a default numeric id.
<p>
The created instance will be <a href="../../../org/apache/geode/Statistics.html#isAtomic--"><code>atomic</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - the <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a> of <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance</dd>
<dd><code>textId</code> - the <code>textId</code> of the <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a newly created <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance</dd>
</dl>
</li>
</ul>
<a name="createAtomicStatistics-org.apache.geode.StatisticsType-java.lang.String-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createAtomicStatistics</h4>
<pre><a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode">Statistics</a>&nbsp;createAtomicStatistics(<a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode">StatisticsType</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;textId,
long&nbsp;numericId)</pre>
<div class="block">Creates and returns a <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance of the given <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a>,
<code>textId</code>, and <code>numericId</code>.
<p>
The created instance will be <a href="../../../org/apache/geode/Statistics.html#isAtomic--"><code>atomic</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - the <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a> of <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance</dd>
<dd><code>textId</code> - the <code>textId</code> of the <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance</dd>
<dd><code>numericId</code> - the <code>numericId</code> of the <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a newly created <a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><code>Statistics</code></a> instance</dd>
</dl>
</li>
</ul>
<a name="findStatisticsByType-org.apache.geode.StatisticsType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>findStatisticsByType</h4>
<pre><a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode">Statistics</a>[]&nbsp;findStatisticsByType(<a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode">StatisticsType</a>&nbsp;type)</pre>
<div class="block">Returns an array of all the existing statistics of the given type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - the <a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><code>type</code></a> of statistics to find</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an array of all the existing statistics of the given type</dd>
</dl>
</li>
</ul>
<a name="findStatisticsByTextId-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>findStatisticsByTextId</h4>
<pre><a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode">Statistics</a>[]&nbsp;findStatisticsByTextId(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;textId)</pre>
<div class="block">Returns an array of all the existing statistics with the given textId.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>textId</code> - the textId of statistics to find</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an array of all the existing statistics with the given textId</dd>
</dl>
</li>
</ul>
<a name="findStatisticsByNumericId-long-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>findStatisticsByNumericId</h4>
<pre><a href="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode">Statistics</a>[]&nbsp;findStatisticsByNumericId(long&nbsp;numericId)</pre>
<div class="block">Returns an array of all the existing statistics with the given numericId.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>numericId</code> - the numericId of statistics to find</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an array of all the existing statistics with the given numericId</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="../../../org/apache/geode/Statistics.html" title="interface in org.apache.geode"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../org/apache/geode/StatisticsType.html" title="interface in org.apache.geode"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?org/apache/geode/StatisticsFactory.html" target="_top">Frames</a></li>
<li><a href="StatisticsFactory.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>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&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>