Class SCServer

    • Field Detail

      • logger

        public static final Logger logger
    • Constructor Detail

      • SCServer

        public SCServer()
    • Method Detail

      • dumpServerState

        public static void dumpServerState​(String path,
                                           String cause)
      • getHeapMaxMemory

        public long getHeapMaxMemory()
        Description copied from interface: SCServerMBean
        Returns the maximum amount of memory that can be used for memory management. Its value may be undefined. The maximum amount of memory may change over time if defined. The amount of used and committed memory will always be less than or equal to max if max is defined. A memory allocation may fail if it attempts to increase the used memory such that used > committed even if used <= max would still be true (for example, when the system is low on virtual memory).
        Specified by:
        getHeapMaxMemory in interface SCServerMBean
        Returns:
      • getHeapTotalMemory

        public long getHeapTotalMemory()
        Description copied from interface: SCServerMBean
        Returns the amount of memory that is guaranteed to be available for use by the JVM. The amount of committed memory may change over time (increase or decrease). The Java virtual machine may release memory to the system and committed could be less than init. committed will always be greater than or equal to used.
        Specified by:
        getHeapTotalMemory in interface SCServerMBean
        Returns:
        the amount of memory (in bytes) that is guaranteed to be available for use by the JVM.
      • getHeapUsedMemory

        public long getHeapUsedMemory()
        Description copied from interface: SCServerMBean
        Return the amount of memory currently used in the JVM.
        Specified by:
        getHeapUsedMemory in interface SCServerMBean
        Returns:
        the amount of memory currently used in the JVM.
      • getHeapFreeMemory

        public long getHeapFreeMemory()
        Description copied from interface: SCServerMBean
        Returns the amount of free memory in the JVM.
        Specified by:
        getHeapFreeMemory in interface SCServerMBean
        Returns:
        the amount of free memory in the JVM.
      • debug

        public void debug​(String classname)
        Description copied from interface: SCServerMBean
        Sets the DEBUG level for the specified logger.
        Specified by:
        debug in interface SCServerMBean
        Parameters:
        classname - The logger name.
      • info

        public void info​(String classname)
        Description copied from interface: SCServerMBean
        Sets the INFO level for the specified logger.
        Specified by:
        info in interface SCServerMBean
        Parameters:
        classname - The logger name.
      • warn

        public void warn​(String classname)
        Description copied from interface: SCServerMBean
        Sets the WARN level for the specified logger.
        Specified by:
        warn in interface SCServerMBean
        Parameters:
        classname - The logger name.
      • error

        public void error​(String classname)
        Description copied from interface: SCServerMBean
        Sets the ERROR level for the specified logger.
        Specified by:
        error in interface SCServerMBean
        Parameters:
        classname - The logger name.
      • fatal

        public void fatal​(String classname)
        Description copied from interface: SCServerMBean
        Sets the FATAL level for the specified logger.
        Specified by:
        fatal in interface SCServerMBean
        Parameters:
        classname - The logger name.
      • setLoggerLevel

        public void setLoggerLevel​(String classname,
                                   String level)
        Description copied from interface: SCServerMBean
        Set the given level for the specified logger.
        Specified by:
        setLoggerLevel in interface SCServerMBean
        Parameters:
        classname - The logger name.
        level - The level name
      • clearLoggerLevel

        public void clearLoggerLevel​(String classname)
        Description copied from interface: SCServerMBean
        Sets the INHERIT level for the specified logger.
        Specified by:
        clearLoggerLevel in interface SCServerMBean
        Parameters:
        classname - The logger name.
      • backup

        public String backup​(String path)
                      throws Exception
        Backups the content of Transaction module. Produces a generic Backup/Restore file containing all living objects.
        Specified by:
        backup in interface SCServerMBean
        Parameters:
        path - Directory path to store the backup.
        Returns:
        the name of created backup file.
        Throws:
        Exception - An error occurs during backup.