public class CounterDataLogger extends Object implements StatisticsArchivizerIfc
| Modifier and Type | Field and Description |
|---|---|
static String |
BOSH_CONNS_COL
SQL INT UNSIGNED
|
static String |
C2S_CONNS_COL
SQL INT UNSIGNED
|
static String |
C2S_PACKETS_COL
SQL BIGINT UNSIGNED
|
static String |
CPU_USAGE_COL
SQL float UNSIGNED
|
static String |
DB_URL_PROP_KEY
Field description
|
protected static String |
defaultHostname |
static String |
EXT_PACKETS_COL
SQL BIGINT UNSIGNED
|
static String |
HOSTNAME_COL
SQL VARCHAR(2049)
|
static String |
IQS_COL
SQL BIGINT UNSIGNED
|
static String |
MEM_USAGE_COL
SQL float UNSIGNED
|
static String |
MESSAGES_COL
SQL BIGINT UNSIGNED
|
static String |
MUC_PACKETS_COL
SQL BIGINT UNSIGNED
|
static String |
PRESENCES_COL
SQL BIGINT UNSIGNED
|
static String |
PUBSUB_PACKETS_COL
SQL BIGINT UNSIGNED
|
static String |
REGISTERED_COL
SQL BIGINT UNSIGNED
|
static String |
S2S_CONNS_COL
SQL INT UNSIGNED
|
static String |
S2S_PACKETS_COL
SQL BIGINT UNSIGNED
|
static String |
SM_PACKETS_COL
SQL BIGINT UNSIGNED
|
static String |
STATS_TABLE
Field description
|
static String |
UPTIME_COL
SQL BIGINT
|
static String |
VHOSTS_COL
SQL INT UNSIGNED
|
| Constructor and Description |
|---|
CounterDataLogger() |
| Modifier and Type | Method and Description |
|---|---|
void |
addStatsLogEntry(float cpu_usage,
float mem_usage,
long uptime,
int vhosts,
long sm_packets,
long muc_packets,
long pubsub_packets,
long c2s_packets,
long s2s_packets,
long ext_packets,
long presences,
long messages,
long iqs,
long registered,
int c2s_conns,
int s2s_conns,
int bosh_conns) |
void |
execute(StatisticsProvider sp) |
void |
init(Map<String,Object> archivizerConf) |
void |
initRepository(String conn_str,
Map<String,String> map)
Method initialize repository
|
void |
release() |
public static final String BOSH_CONNS_COL
public static final String C2S_CONNS_COL
public static final String C2S_PACKETS_COL
public static final String CPU_USAGE_COL
public static final String DB_URL_PROP_KEY
public static final String EXT_PACKETS_COL
public static final String HOSTNAME_COL
public static final String IQS_COL
public static final String MEM_USAGE_COL
public static final String MESSAGES_COL
public static final String MUC_PACKETS_COL
public static final String PRESENCES_COL
public static final String PUBSUB_PACKETS_COL
public static final String S2S_CONNS_COL
public static final String S2S_PACKETS_COL
public static final String SM_PACKETS_COL
public static final String STATS_TABLE
public static final String UPTIME_COL
public static final String VHOSTS_COL
protected static String defaultHostname
public static final String REGISTERED_COL
public void addStatsLogEntry(float cpu_usage,
float mem_usage,
long uptime,
int vhosts,
long sm_packets,
long muc_packets,
long pubsub_packets,
long c2s_packets,
long s2s_packets,
long ext_packets,
long presences,
long messages,
long iqs,
long registered,
int c2s_conns,
int s2s_conns,
int bosh_conns)
public void execute(StatisticsProvider sp)
execute in interface StatisticsArchivizerIfcpublic void init(Map<String,Object> archivizerConf)
init in interface StatisticsArchivizerIfcpublic void initRepository(String conn_str, Map<String,String> map) throws SQLException, ClassNotFoundException, IllegalAccessException, InstantiationException, DBInitException
conn_str - database connection URImap - map of the additional parametersSQLExceptionClassNotFoundExceptionIllegalAccessExceptionInstantiationExceptionDBInitExceptionpublic void release()
release in interface StatisticsArchivizerIfcCopyright © 2017 "Tigase, Inc.". All rights reserved.