public class ApexTimeHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
static AtomicLong |
NB_LOG_FOR_OUTLIER |
protected static long |
NB_OCCURENCES_FOR_INFO
How many times occurrences has to be captured before logging about an outlier?
|
| Modifier | Constructor and Description |
|---|---|
protected |
ApexTimeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getNiceRate(long nbEntries,
long time,
TimeUnit timeUnit)
Deprecated.
use ApexLogHelper.getNiceRate
|
static Object |
getNiceTimeInTransaction(long timeInMs)
Deprecated.
use ApexLogHelper.getNiceTime
|
static Object |
getPercentage(long numerator,
long denominator,
int digits)
Deprecated.
use ApexLogHelper.getNicePercentage
|
static long |
java8ToTime(LocalDateTime localDateTime) |
static long |
jodaToTime(org.joda.time.LocalDateTime localDateTime) |
static boolean |
updateOutlierDetectorStatistics(AtomicLong nb,
AtomicLong max,
long newValue,
Object className,
Object methodName,
Object... more)
This class enables logging of outlier detection, typically when a small operation takes more time than usual, or
a result size is bigger
|
protected static final org.slf4j.Logger LOGGER
protected static final long NB_OCCURENCES_FOR_INFO
public static final AtomicLong NB_LOG_FOR_OUTLIER
@Deprecated public static Object getNiceTimeInTransaction(long timeInMs)
@Deprecated public static String getNiceRate(long nbEntries, long time, TimeUnit timeUnit)
@Deprecated public static Object getPercentage(long numerator, long denominator, int digits)
public static boolean updateOutlierDetectorStatistics(AtomicLong nb, AtomicLong max, long newValue, Object className, Object methodName, Object... more)
public static long jodaToTime(org.joda.time.LocalDateTime localDateTime)
localDateTime - public static long java8ToTime(LocalDateTime localDateTime)
localDateTime - Copyright © 2014–2017 Pivotal Software, Inc.. All rights reserved.