public class Statistics extends Object
Modifier and Type | Field and Description |
---|---|
static HazelcastProperty |
ENABLED
Use to enable the client statistics collection.
|
static HazelcastProperty |
PERIOD_SECONDS
The period in seconds the statistics run.
|
Constructor and Description |
---|
Statistics(HazelcastClientInstanceImpl clientInstance) |
Modifier and Type | Method and Description |
---|---|
static void |
escapeSpecialCharacters(StringBuilder buffer) |
static void |
escapeSpecialCharacters(StringBuilder buffer,
int start) |
static List<String> |
split(String statString)
This method uses ',' character by default.
|
static List<String> |
split(String stat,
int start,
char splitChar) |
void |
start()
Registers all client statistics and schedules periodic collection of stats.
|
static String |
unescapeSpecialCharacters(String buffer) |
static void |
unescapeSpecialCharacters(StringBuilder buffer,
int start) |
static String |
unescapeSpecialCharacters(String buffer,
int start) |
public static final HazelcastProperty ENABLED
The default is false.
public static final HazelcastProperty PERIOD_SECONDS
public Statistics(HazelcastClientInstanceImpl clientInstance)
public final void start()
public static void escapeSpecialCharacters(StringBuilder buffer)
buffer
- the string for which the special characters ',', '=', '\' are escaped properlypublic static void escapeSpecialCharacters(StringBuilder buffer, int start)
public static String unescapeSpecialCharacters(String buffer)
buffer
- the string for which the escape character '\' is removed properlypublic static void unescapeSpecialCharacters(StringBuilder buffer, int start)
public static List<String> split(String statString)
statString
- the statistics string to be splitCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.