C - type of the counterG - type of the group@InterfaceAudience.Private public abstract class CounterGroupFactory<C extends TezCounter,G extends CounterGroupBase<C>> extends Object
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
CounterGroupFactory.FrameworkGroupFactory<F>  | 
| Constructor and Description | 
|---|
CounterGroupFactory()  | 
| Modifier and Type | Method and Description | 
|---|---|
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 <T extends Enum<T>>  | 
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()  | 
protected abstract <T extends Enum<T>> CounterGroupFactory.FrameworkGroupFactory<G> newFrameworkGroupFactory(Class<T> cls)
T - type of the counter enum classcls - the counter enum classpublic G newGroup(String name, Limits limits)
name - of the grouplimits - the counters limits policy objectpublic G newGroup(String name, String displayName, Limits limits)
name - of the groupdisplayName - of the grouplimits - the counters limits policy objectpublic G newFrameworkGroup(int id)
id - of the grouppublic static int getFrameworkGroupId(String name)
name - of the grouppublic int version()
public static boolean isFrameworkGroup(String name)
name - to checkprotected abstract G newGenericGroup(String name, String displayName, Limits limits)
name - of the groupdisplayName - of the grouplimits - limits of the countersprotected abstract G newFileSystemGroup()
Copyright © 2016 Apache Software Foundation. All rights reserved.