tigase.sys

## Class TigaseRuntime

- java.lang.Object
- - tigase.sys.TigaseRuntime

- Direct Known Subclasses:
    MonitorRuntime

      public abstract class TigaseRuntime
      extends Object

  Created: Feb 19, 2009 12:15:02 PM
  Version:
    $Rev$
  Author:
    Artur Hefczyc

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected static long` | `HOUR`
    `protected static long` | `MINUTE`
    `protected static long` | `SECOND`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `TigaseRuntime()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract void` | `addCPULoadListener(CPULoadListener cpuListener)`
    `abstract void` | `addMemoryChangeListener(MemoryChangeListener memListener)`
    `abstract void` | `addOnlineJidsReporter(OnlineJidsReporter onlineReporter)`
    `abstract void` | `addShutdownHook(ShutdownHook hook)`
    `abstract tigase.xmpp.JID[]` | `getConnectionIdsForJid(tigase.xmpp.JID jid)`
    `int` | `getCPUsNumber()`
    `ResourceState` | `getCPUState()`
    `float` | `getCPUUsage()`
    `long` | `getHeapMemMax()` We try to return OLD memory pool size as this is what is the most interesting to us.
    `float` | `getHeapMemUsage()`
    `long` | `getHeapMemUsed()` We try to return OLD memory pool size as this is what is the most interesting to us.
    `double` | `getLoadAverage()`
    `ResourceState` | `getMemoryState()`
    `long` | `getNonHeapMemMax()`
    `float` | `getNonHeapMemUsage()`
    `long` | `getNonHeapMemUsed()`
    `long` | `getProcessCPUTime()`
    `int` | `getThreadsNumber()`
    `static TigaseRuntime` | `getTigaseRuntime()`
    `long` | `getUptime()`
    `String` | `getUptimeString()`
    `abstract boolean` | `hasCompleteJidsInfo()`
    `abstract boolean` | `isJidOnline(tigase.xmpp.JID jid)`

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

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

- - ### Field Detail

    - #### SECOND

          protected static final long SECOND

      See Also:
        Constant Field Values

    - #### MINUTE

          protected static final long MINUTE

      See Also:
        Constant Field Values

    - #### HOUR

          protected static final long HOUR

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### TigaseRuntime

          protected TigaseRuntime()

  - ### Method Detail

    - #### getTigaseRuntime

          public static TigaseRuntime getTigaseRuntime()

    - #### addShutdownHook

          public abstract void addShutdownHook(ShutdownHook hook)

    - #### addMemoryChangeListener

          public abstract void addMemoryChangeListener(MemoryChangeListener memListener)

    - #### addCPULoadListener

          public abstract void addCPULoadListener(CPULoadListener cpuListener)

    - #### addOnlineJidsReporter

          public abstract void addOnlineJidsReporter(OnlineJidsReporter onlineReporter)

    - #### hasCompleteJidsInfo

          public abstract boolean hasCompleteJidsInfo()

    - #### isJidOnline

          public abstract boolean isJidOnline(tigase.xmpp.JID jid)

    - #### getConnectionIdsForJid

          public abstract tigase.xmpp.JID[] getConnectionIdsForJid(tigase.xmpp.JID jid)

    - #### getMemoryState

          public ResourceState getMemoryState()

    - #### getCPUState

          public ResourceState getCPUState()

    - #### getProcessCPUTime

          public long getProcessCPUTime()

    - #### getUptime

          public long getUptime()

    - #### getUptimeString

          public String getUptimeString()

    - #### getCPUsNumber

          public int getCPUsNumber()

    - #### getCPUUsage

          public float getCPUUsage()

    - #### getLoadAverage

          public double getLoadAverage()

    - #### getThreadsNumber

          public int getThreadsNumber()

    - #### getHeapMemMax

          public long getHeapMemMax()

      We try to return OLD memory pool size as this is what is the most interesting to us. If this is not possible then we return total Heap size.
      Returns:

    - #### getHeapMemUsed

          public long getHeapMemUsed()

      We try to return OLD memory pool size as this is what is the most interesting to us. If this is not possible then we return total Heap used.
      Returns:

    - #### getHeapMemUsage

          public float getHeapMemUsage()

    - #### getNonHeapMemMax

          public long getNonHeapMemMax()

    - #### getNonHeapMemUsed

          public long getNonHeapMemUsed()

    - #### getNonHeapMemUsage

          public float getNonHeapMemUsage()

Copyright © 2013 Tigase. All rights reserved.