Package tigase.licence

## Class LicenceCheckerUpdater

- java.lang.Object
- - tigase.licence.LicenceCheckerUpdater

-     public class LicenceCheckerUpdater
      extends java.lang.Object

  Author:
    Wojciech Kapcia

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `static java.lang.String` | `CLUSTER_MODE` | Constant `CLUSTER_MODE` sets the cluster mode to either `true` or `false`.
    `protected static SessionManager` | `sess` | Holds `SessionManager`
    `protected static VHostManagerIfc` | `vhost` | Holds `VHostManagerIfc` implementation which manages all virtual host related funcionality in Tigase

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `LicenceCheckerUpdater()` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static int` | `getClusterNodesCount()` |
    `protected static Element` | `getComponentInfo()` | Returns Component Information about all system components
    `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.
    `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.
    `protected static BareJID` | `getHostname()` | Return default hostname of the node (i.e. machine hostname)
    `protected static long` | `getMaxSessionsToday()` |
    `protected static long` | `getMaxSessionsYesterday()` |
    `java.lang.String` | `getMissingLicenseWarning()` |
    `static java.util.Optional<StatisticsCollector>` | `getStats()` |
    `protected static long` | `getUptime()` | Returns uptime of the instance.
    `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.
    `protected static long` | `getUserOnline()` | Returns number of all online users connections on given node.
    `protected static java.util.List<BareJID>` | `getVHosts()` | Returns list of all Virtual Hosts on that particular Tigase instance.
    `protected static void` | `init()` |
    `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.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### CLUSTER_MODE

          public static final java.lang.String CLUSTER_MODE

      Constant `CLUSTER_MODE` sets the cluster mode to either `true` or `false`. By default cluster mode is set to `false`.
      See Also:
        Constant Field Values

    - #### sess

          protected static SessionManager sess

      Holds `SessionManager`

    - #### vhost

          protected static VHostManagerIfc vhost

      Holds `VHostManagerIfc` implementation which manages all virtual host related funcionality in Tigase

  - ### Constructor Detail

    - #### LicenceCheckerUpdater

          public LicenceCheckerUpdater()

  - ### Method Detail

    - #### getClusterNodesCount

          public static int getClusterNodesCount()

    - #### getComponentInfo

          protected static Element getComponentInfo()

      Returns Component Information about all system components
      Returns:
        an ``Element`` representation of all system Components information

    - #### 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

          protected static BareJID 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

          public static java.util.Optional<StatisticsCollector> getStats()

    - #### getUptime

          protected static long getUptime()

      Returns uptime of the instance.
      Returns:
        a `long` value 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 `long` value 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 `long` value representing all online users connection on given node.

    - #### getVHosts

          protected static java.util.List<BareJID> getVHosts()

      Returns list of all Virtual Hosts on that particular Tigase instance.
      Returns:
        a `BareJID` list 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 `StatisticsData` object

    - #### getMissingLicenseWarning

          public java.lang.String getMissingLicenseWarning()