public final class LoggingImpl extends AMXImplBase
Logging
. The following is a GlassFish V2
comment, and needs work for v3:
AMX Logging MBean is hooked directly into
the logging subsystem via
com.sun.enterprise.server.logging.FileandSyslogHandler which uses
com.sun.enterprise.server.logging.AMXLoggingHook to instantiate and call an
instance of LoggingImpl.
EMPTY_OBJECT_NAMES, GET, GET_PREFIX, mMBeanInfo, OBJECT_NAME_SUFFIX, SET
EMPTY_STRING_ARRAY, mSelfObjectName, mServer
Constructor and Description |
---|
LoggingImpl(ObjectName parent,
String serverName) |
attributeNameToType, attributeTypeMatches, cdebug, child, child, child, findGetter, findMethod, findSetter, getAncestorByType, getAttribute, getAttributeByMethod, getAttributeInfo, getAttributeInfos, getAttributeInternal, getAttributeManually, getAttributeNames, getAttributeNoThrow, getAttributes, getAttributeType, getChildren, getChildren, getChildren, getChildren, getChildrenMap, getDomainRoot, getDomainRootProxy, getLogger, getMBeanInfo, getMBeanTracker, getName, getObjectNameAttribute, getObjectNames, getObjectNamesForAttribute, getParent, getParentProxy, getProxy, getProxyFactory, getSelf, getSelf, getterNameMatches, handleException, handleGetAttributeException, handleInvokeThrowable, impossible, invoke, invokeManually, isReadOnlyAttribute, isUtilityMBean, java, operationNameMatches, postRegisterHook, postRegisterModifyMBeanInfo, preDeregisterHook, preRegister, preRegisterHook, preRegisterModifyName, registerChild, registerChildren, sendAttributeChangeNotification, setAttribute, setAttributeByMethod, setAttributeInternal, setAttributeManually, setAttributes, shouldEmitNotifications, stringify, supportsChildren, toString, unimplementedAttribute, unimplementedOperation, unregisterChildren
_getMBeanLogLevel, addNotificationListener, addNotificationListener, createNotificationBuilder, debug, debug, debugMethod, debugMethod, enableAMXDebug, getAMXDebug, getDebugID, getDebugOutput, getJMXDomain, getListenerCount, getMBeanLogger, getMBeanLoggerName, getMBeanLogLevel, getMBeanLogLevelInt, getMBeanServer, getNotificationBuilder, getNotificationEmitter, getNotificationTypeListenerCount, getObjectName, logFine, logFiner, logFinest, logInfo, logSevere, logWarning, postDeregister, postDeregisterHook, postRegister, preDeregister, quote, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, setAMXDebug, setMBeanLogLevel, shouldOmitObjectNameForDebug, sleepMillis, toString, trace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
removeNotificationListener
addNotificationListener, removeNotificationListener
public LoggingImpl(ObjectName parent, String serverName)
public static ObjectName getObjectName(String serverName)
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
getNotificationInfo
in class AMXImplBase
public int getLogLevelListenerCount(Level logLevel)
public String[] getLogFileKeys()
public void rotateAllLogFiles()
public void rotateLogFile(String key)
public List<Serializable[]> queryServerLog(String name, long startIndex, boolean searchForward, int maximumNumberOfResults, Long fromTime, Long toTime, String logLevel, Set<String> modules, List<Attribute> nameValuePairs, String anySearch)
public void setKeepErrorStatisticsForIntervals(int num)
public int getKeepErrorStatisticsForIntervals()
public void setErrorStatisticsIntervalMinutes(long minutes)
public long getErrorStatisticsIntervalMinutes()
public String[] getLoggerNames()
protected void preRegisterDone() throws Exception
preRegisterDone
in class AMXImplBase
Exception
public void privateLoggingHook(LogRecord logRecord, Formatter formatter)
Copyright © 2018. All rights reserved.