|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tez.common.counters.CounterGroupFactory<C,G>
C - type of the counterG - type of the group@InterfaceAudience.Private public abstract class CounterGroupFactory<C extends TezCounter,G extends CounterGroupBase<C>>
An abstract class to provide common implementation of the group factory in both mapred and mapreduce packages.
| Nested Class Summary | |
|---|---|
static interface |
CounterGroupFactory.FrameworkGroupFactory<F>
|
| Constructor Summary | |
|---|---|
CounterGroupFactory()
|
|
| Method Summary | ||
|---|---|---|
static int |
getFrameworkGroupId(String name)
Get the id of a framework group |
|
static boolean |
isFrameworkGroup(String name)
Check whether a group name is a name of a framework group (including the filesystem group). |
|
protected abstract G |
newFileSystemGroup()
Abstract factory method to create a file system counter group |
|
G |
newFrameworkGroup(int id)
Create a new framework group |
|
protected abstract
|
newFrameworkGroupFactory(Class<T> cls)
Required override to return a new framework group factory |
|
protected abstract G |
newGenericGroup(String name,
String displayName,
Limits limits)
Abstract factory method to create a generic (vs framework) counter group |
|
G |
newGroup(String name,
Limits limits)
Create a new counter group |
|
G |
newGroup(String name,
String displayName,
Limits limits)
Create a new counter group |
|
int |
version()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CounterGroupFactory()
| Method Detail |
|---|
protected abstract <T extends Enum<T>> CounterGroupFactory.FrameworkGroupFactory<G> newFrameworkGroupFactory(Class<T> cls)
T - type of the counter enum classcls - the counter enum class
public G newGroup(String name,
Limits limits)
name - of the grouplimits - the counters limits policy object
public G newGroup(String name,
String displayName,
Limits limits)
name - of the groupdisplayName - of the grouplimits - the counters limits policy object
public G newFrameworkGroup(int id)
id - of the group
public static int getFrameworkGroupId(String name)
name - of the group
public int version()
public static boolean isFrameworkGroup(String name)
name - to check
protected abstract G newGenericGroup(String name,
String displayName,
Limits limits)
name - of the groupdisplayName - of the grouplimits - limits of the counters
protected abstract G newFileSystemGroup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||