Package fr.dyade.aaa.agent
Interface SCServerMBean
-
- All Known Implementing Classes:
SCServer
public interface SCServerMBean
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringbackup(String path)Backups the content of Transaction module.voidclearLoggerLevel(String classname)Sets the INHERIT level for the specified logger.voiddebug(String classname)Sets the DEBUG level for the specified logger.voiddumpAttributes(String name, String path, boolean threaddump)voiddumpServerState(String path)voiderror(String classname)Sets the ERROR level for the specified logger.voidfatal(String classname)Sets the FATAL level for the specified logger.StringgetConfigurationProperty(String name)longgetHeapFreeMemory()Returns the amount of free memory in the JVM.longgetHeapMaxMemory()Returns the maximum amount of memory that can be used for memory management.longgetHeapTotalMemory()Returns the amount of memory that is guaranteed to be available for use by the JVM.longgetHeapUsedMemory()Return the amount of memory currently used in the JVM.StringgetName()shortgetServerId()String[]getServers()intgetStatus()StringgetStatusInfo()voidinfo(String classname)Sets the INFO level for the specified logger.voidsetLoggerLevel(String classname, String level)Set the given level for the specified logger.voidshutdown()voidstart()voidstop()voidwarn(String classname)Sets the WARN level for the specified logger.
-
-
-
Method Detail
-
getServerId
short getServerId()
-
getName
String getName()
-
start
void start()
-
stop
void stop()
-
shutdown
void shutdown()
-
getStatus
int getStatus()
-
getStatusInfo
String getStatusInfo()
-
getServers
String[] getServers()
-
dumpServerState
void dumpServerState(String path)
-
getHeapMaxMemory
long getHeapMaxMemory()
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).- Returns:
-
getHeapTotalMemory
long getHeapTotalMemory()
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.- Returns:
- the amount of memory (in bytes) that is guaranteed to be available for use by the JVM.
-
getHeapUsedMemory
long getHeapUsedMemory()
Return the amount of memory currently used in the JVM.- Returns:
- the amount of memory currently used in the JVM.
-
getHeapFreeMemory
long getHeapFreeMemory()
Returns the amount of free memory in the JVM.- Returns:
- the amount of free memory in the JVM.
-
debug
void debug(String classname)
Sets the DEBUG level for the specified logger.- Parameters:
classname- The logger name.
-
info
void info(String classname)
Sets the INFO level for the specified logger.- Parameters:
classname- The logger name.
-
warn
void warn(String classname)
Sets the WARN level for the specified logger.- Parameters:
classname- The logger name.
-
error
void error(String classname)
Sets the ERROR level for the specified logger.- Parameters:
classname- The logger name.
-
fatal
void fatal(String classname)
Sets the FATAL level for the specified logger.- Parameters:
classname- The logger name.
-
setLoggerLevel
void setLoggerLevel(String classname, String level)
Set the given level for the specified logger.- Parameters:
classname- The logger name.level- The level name
-
clearLoggerLevel
void clearLoggerLevel(String classname)
Sets the INHERIT level for the specified logger.- Parameters:
classname- The logger name.
-
backup
String backup(String path) throws Exception
Backups the content of Transaction module. Produces a generic Backup/Restore file containing all living objects.- Parameters:
path- Directory path to store the backup.- Returns:
- the name of created backup file.
- Throws:
Exception- An error occurs during backup.
-
-