MigratoryDataStatsListener::StatsEvent

Provide information about a stats event.

Inherits from Event

Public Functions

Name
long getTotalConnectionCount()
Provides the total number of connected clients.
long getWebConnectionCount()
Provides the number of connected web clients.
long getMobileConnectionCount()
Provides the number of connected mobile clients.
long getDesktopConnectionCount()
Provides the number of connected desktop clients.
double getConnectionRate()
Provides the number of client connections per second.
double getDisconnectionRate()
Provides the number of client disconnections per second.
double getIncomingMessageRate()
Provides the total number of incoming messages per second.
double getIncomingClientMessageRate()
Provides the number of incoming messages per second received from publishers.
double getOutgoingMessageRate()
Provides the total number of outgoing messages per second.
double getIncomingByteRate()
Provides the total number of incoming bytes per second.
double getOutgoingByteRate()
Provides the total number of outgoing bytes per second.
double getConnectRateRecoverySuccess()
Provides the total number of clients per second successfully reconnected after a fail-over recovery.
double getConnectRateRecoveryFail()
Provides the total number of failed attempts per second to recover clients after fail-over reconnection.
Map< String, Object > getAdditionalInfo()
Get additional attributes of as key/value pairs.

Public Functions Documentation

function getTotalConnectionCount

long getTotalConnectionCount()

Provides the total number of connected clients.

Return: the total number of connected clients

function getWebConnectionCount

long getWebConnectionCount()

Provides the number of connected web clients.

Return: the number of connected web clients

function getMobileConnectionCount

long getMobileConnectionCount()

Provides the number of connected mobile clients.

Return: the number of connected mobile clients

function getDesktopConnectionCount

long getDesktopConnectionCount()

Provides the number of connected desktop clients.

Return: the number of connected desktop clients

function getConnectionRate

double getConnectionRate()

Provides the number of client connections per second.

Return: the number of client connections per second

function getDisconnectionRate

double getDisconnectionRate()

Provides the number of client disconnections per second.

Return: the number of client disconnections per second

function getIncomingMessageRate

double getIncomingMessageRate()

Provides the total number of incoming messages per second.

Return: the total number of incoming messages per second

function getIncomingClientMessageRate

double getIncomingClientMessageRate()

Provides the number of incoming messages per second received from publishers.

Return: the number of incoming messages per second received from publishers

function getOutgoingMessageRate

double getOutgoingMessageRate()

Provides the total number of outgoing messages per second.

Return: the total number of outgoing messages per second

function getIncomingByteRate

double getIncomingByteRate()

Provides the total number of incoming bytes per second.

Return: the total number of incoming bytes per second

function getOutgoingByteRate

double getOutgoingByteRate()

Provides the total number of outgoing bytes per second.

Return: the total number of outgoing bytes per second

function getConnectRateRecoverySuccess

double getConnectRateRecoverySuccess()

Provides the total number of clients per second successfully reconnected after a fail-over recovery.

Return: the total number of clients per second successfully reconnected after a fail-over recovery

function getConnectRateRecoveryFail

double getConnectRateRecoveryFail()

Provides the total number of failed attempts per second to recover clients after fail-over reconnection.

Return: the total number of failed attempts per second to recover clients after fail-over reconnection

For example, a client which reconnects to a server after a long period of computer hibernation, might fail to recover its messages, as the cache of the MigratoryData server is limited to a configurable number of historical messages, valid a configurable period of time.

function getAdditionalInfo

Map< String, Object > getAdditionalInfo()

Get additional attributes of as key/value pairs.

Return: a map with additional attributes

No additional attributes are currently available.