@Component(value="cuba_JmxRemoteLogging") public class JmxRemoteLoggingBean extends java.lang.Object implements JmxRemoteLoggingAPI
JmxRemoteLoggingAPI.LoggingHostInfoNAME| Constructor and Description |
|---|
JmxRemoteLoggingBean() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getAppenders(JmxInstance instance)
Get current appenders.
|
java.lang.String |
getAppenderThreshold(JmxInstance instance,
java.lang.String appenderName)
Reads current threshold of the appender.
|
java.util.List<java.lang.String> |
getAvailableContexts(JmxInstance instance) |
JmxRemoteLoggingAPI.LoggingHostInfo |
getHostInfo(JmxInstance instance) |
java.lang.String |
getLogFileLink(JmxInstance instance,
java.lang.String fileName)
Get URL for log file downloading.
|
java.lang.String |
getLogFileLink(JmxInstance instance,
java.lang.String remoteContext,
java.lang.String fileName)
Get URL for log file downloading.
|
java.util.List<java.lang.String> |
getLogFileNames(JmxInstance instance)
Returns the list of titles of logs.
|
long |
getLogFileSize(JmxInstance instance,
java.lang.String fileName)
Get size for log file downloading.
|
java.lang.String |
getLoggerLevel(JmxInstance instance,
java.lang.String loggerName)
Reads current level of the logger.
|
java.util.List<java.lang.String> |
getLoggerNames(JmxInstance instance)
Get current loggers names.
|
java.util.Map<java.lang.String,java.lang.String> |
getLoggersLevels(JmxInstance instance) |
java.lang.String |
getTail(JmxInstance instance,
java.lang.String fileName)
Reads a log tail equal 50Kb at line.
|
void |
setAppenderThreshold(JmxInstance instance,
java.lang.String appenderName,
java.lang.String threshold)
Writes threshold for the specified logger.
|
void |
setLoggerLevel(JmxInstance instance,
java.lang.String loggerName,
java.lang.String level)
Writes down level for the specified logger.
|
void |
setLoggersLevels(JmxInstance instance,
java.util.Map<java.lang.String,java.lang.String> updates) |
public java.util.List<java.lang.String> getLogFileNames(JmxInstance instance)
JmxRemoteLoggingAPIgetLogFileNames in interface JmxRemoteLoggingAPIinstance - jmx connectionpublic java.lang.String getTail(JmxInstance instance, java.lang.String fileName) throws LogControlException
JmxRemoteLoggingAPIgetTail in interface JmxRemoteLoggingAPIinstance - jmx connectionfileName - name of a readable fileLogControlExceptionpublic java.lang.String getLogFileLink(JmxInstance instance, java.lang.String fileName) throws LogControlException
JmxRemoteLoggingAPIgetLogFileLink in interface JmxRemoteLoggingAPIinstance - jmx connectionfileName - name of a log fileLogControlExceptionpublic java.lang.String getLogFileLink(JmxInstance instance, java.lang.String remoteContext, java.lang.String fileName) throws LogControlException
JmxRemoteLoggingAPIgetLogFileLink in interface JmxRemoteLoggingAPIinstance - jmx connectionremoteContext - remote web contextfileName - name of a log fileLogControlExceptionpublic long getLogFileSize(JmxInstance instance, java.lang.String fileName) throws LogControlException
JmxRemoteLoggingAPIgetLogFileSize in interface JmxRemoteLoggingAPIinstance - jmx connectionfileName - name of a log fileLogControlExceptionpublic java.util.List<java.lang.String> getLoggerNames(JmxInstance instance)
JmxRemoteLoggingAPIgetLoggerNames in interface JmxRemoteLoggingAPIinstance - jmx connectionpublic java.util.Map<java.lang.String,java.lang.String> getLoggersLevels(JmxInstance instance)
getLoggersLevels in interface JmxRemoteLoggingAPIinstance - jmx connectionpublic java.lang.String getLoggerLevel(JmxInstance instance, java.lang.String loggerName) throws LogControlException
JmxRemoteLoggingAPIgetLoggerLevel in interface JmxRemoteLoggingAPIinstance - jmx connectionloggerName - logger nameLogControlExceptionpublic void setLoggerLevel(JmxInstance instance, java.lang.String loggerName, java.lang.String level) throws LogControlException
JmxRemoteLoggingAPIsetLoggerLevel in interface JmxRemoteLoggingAPIinstance - jmx connectionloggerName - logger namelevel - levelLogControlExceptionpublic void setLoggersLevels(JmxInstance instance, java.util.Map<java.lang.String,java.lang.String> updates) throws LogControlException
setLoggersLevels in interface JmxRemoteLoggingAPILogControlExceptionpublic java.util.List<java.lang.String> getAppenders(JmxInstance instance)
JmxRemoteLoggingAPIgetAppenders in interface JmxRemoteLoggingAPIinstance - jmx connectionpublic java.lang.String getAppenderThreshold(JmxInstance instance, java.lang.String appenderName) throws LogControlException
JmxRemoteLoggingAPIgetAppenderThreshold in interface JmxRemoteLoggingAPIinstance - jmx connectionappenderName - appender nameLogControlExceptionpublic void setAppenderThreshold(JmxInstance instance, java.lang.String appenderName, java.lang.String threshold) throws LogControlException
JmxRemoteLoggingAPIsetAppenderThreshold in interface JmxRemoteLoggingAPIinstance - jmx connectionappenderName - logger namethreshold - threshold levelLogControlExceptionpublic JmxRemoteLoggingAPI.LoggingHostInfo getHostInfo(JmxInstance instance)
getHostInfo in interface JmxRemoteLoggingAPIinstance - jmx connectionpublic java.util.List<java.lang.String> getAvailableContexts(JmxInstance instance)
getAvailableContexts in interface JmxRemoteLoggingAPIinstance - jmx connection