cbcommons

Class JVMUtils

railo-context.Component
        extended by cbcommons.JVMUtils
Class Attributes:
  • singleton
  •  
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  

    This is a JVM Utilities CFC

    Method Summary
    string getInetHost()
         Get the hostname of the executing machine.
    string getIPAddress()
         Get the ip address of the executing hostname machine.
    string getJavaRuntime()
         Get the java runtime version.
    string getJavaVersion()
         Get the java version.
    string getJVMFreeMemory()
         Returns the amount of free memory in the Java Virtual Machine.
    string getJVMMaxMemory()
         Returns the maximum amount of memory that the Java virtual machine will attempt to use.
    string getJVMTotalMemory()
         Returns the total amount of memory in the Java virtual machine.
    string getOSFileSeparator()
         Get the operating system's file separator character.
    string getOSName()
         Get the operating system's name.
    string getOSPathSeparator()
         Get the operating system's path separator character.
    numeric getProcessors()
         Returns the number of processors available to the Java virtual machine.
    void runGC()
         Runs the garbage collector.
     
    Methods inherited from class railo-context.Component
    None

    Method Detail

    getInetHost

    public string getInetHost()

    Get the hostname of the executing machine.


    getIPAddress

    public string getIPAddress()

    Get the ip address of the executing hostname machine.


    getJavaRuntime

    public string getJavaRuntime()

    Get the java runtime version


    getJavaVersion

    public string getJavaVersion()

    Get the java version.


    getJVMFreeMemory

    public string getJVMFreeMemory()

    Returns the amount of free memory in the Java Virtual Machine.


    getJVMMaxMemory

    public string getJVMMaxMemory()

    Returns the maximum amount of memory that the Java virtual machine will attempt to use..


    getJVMTotalMemory

    public string getJVMTotalMemory()

    Returns the total amount of memory in the Java virtual machine.


    getOSFileSeparator

    public string getOSFileSeparator()

    Get the operating system's file separator character


    getOSName

    public string getOSName()

    Get the operating system's name


    getOSPathSeparator

    public string getOSPathSeparator()

    Get the operating system's path separator character.


    getProcessors

    public numeric getProcessors()

    Returns the number of processors available to the Java virtual machine


    runGC

    public void runGC()

    Runs the garbage collector.