Package tigase.licence
Class LicenceCheckerUpdater
java.lang.Object
tigase.licence.LicenceCheckerUpdater
- Author:
- Wojciech Kapcia
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstantCLUSTER_MODEsets the cluster mode to eithertrueorfalse.protected static SessionManagerHoldsSessionManagerprotected static VHostManagerIfcHoldsVHostManagerIfcimplementation which manages all virtual host related funcionality in Tigase -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intprotected static ElementReturns Component Information about all system componentsprotected static longReturns Maxim Heap Memory usage, either OLD memory pool size as this is what is the most interesting to us or if this is not possible then total Heap size.protected static longReturns Heap Memory usage, either OLD memory pool size as this is what is the most interesting to us or if this is not possible then total Heap size.protected static BareJIDReturn default hostname of the node (i.e. machine hostname)protected static longprotected static longstatic Optional<StatisticsCollector>getStats()protected static longReturns uptime of the instance.protected static longReturns number of all active users connections (i.e. which session wasn't idle more than 5 minutes) on given node.protected static longReturns number of all online users connections on given node.Returns list of all Virtual Hosts on that particular Tigase instance.protected static voidinit()static tigase.stats.collector.StatisticsDataConstructs default implementation of handling updates of statistics data on per-component basis providing most basic statistics data about system.
-
Field Details
-
CLUSTER_MODE
ConstantCLUSTER_MODEsets the cluster mode to eithertrueorfalse. By default cluster mode is set tofalse.- See Also:
-
sess
HoldsSessionManager -
vhost
HoldsVHostManagerIfcimplementation which manages all virtual host related funcionality in Tigase
-
-
Constructor Details
-
LicenceCheckerUpdater
public LicenceCheckerUpdater()
-
-
Method Details
-
getClusterNodesCount
public static int getClusterNodesCount() -
getComponentInfo
Returns Component Information about all system components- Returns:
- an
representation of all system Components informationElement
-
getHeapMax
protected static long getHeapMax()Returns Maxim Heap Memory usage, either OLD memory pool size as this is what is the most interesting to us or if this is not possible then total Heap size.- Returns:
- maximum heap memory usage
-
getHeapUsed
protected static long getHeapUsed()Returns Heap Memory usage, either OLD memory pool size as this is what is the most interesting to us or if this is not possible then total Heap size.- Returns:
- heap memory usage
-
getHostname
Return default hostname of the node (i.e. machine hostname)- Returns:
- hostname of the machine
-
getMaxSessionsToday
protected static long getMaxSessionsToday() -
getMaxSessionsYesterday
protected static long getMaxSessionsYesterday() -
getStats
-
getUptime
protected static long getUptime()Returns uptime of the instance.- Returns:
- a
longvalue of the uptime in milisenconds
-
getUserActive
protected static long getUserActive()Returns number of all active users connections (i.e. which session wasn't idle more than 5 minutes) on given node.- Returns:
- a
longvalue representing all online users connection on given node.
-
getUserOnline
protected static long getUserOnline()Returns number of all online users connections on given node.- Returns:
- a
longvalue representing all online users connection on given node.
-
getVHosts
Returns list of all Virtual Hosts on that particular Tigase instance.- Returns:
- a
BareJIDlist containing all Virtual Hosts on that particular instance
-
init
protected static void init() -
updateData
public static tigase.stats.collector.StatisticsData updateData()Constructs default implementation of handling updates of statistics data on per-component basis providing most basic statistics data about system.- Returns:
- constructed
StatisticsDataobject
-
getMissingLicenseWarning
-