public class PerfConfig extends Object
Modifier and Type | Method and Description |
---|---|
short |
getProfile()
Get the configured profile.
|
void |
init(Properties config)
This method should get called at service initialization.
|
static PerfConfig |
instance()
Get the singleton instance.
|
boolean |
isEnabled(short annotatedProfile)
See if metric is enabled for the given profile.
|
void |
setProfile(short profile)
Set the profile for performance measurement.
|
public static PerfConfig instance()
public void init(Properties config)
config
- custom configurationspublic boolean isEnabled(short annotatedProfile)
annotatedProfile
- Profilepublic void setProfile(short profile)
profile
- a Profile valuepublic short getProfile()
Copyright © 2015. All Rights Reserved.