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, SETEMPTY_STRING_ARRAY, mSelfObjectName, mServer| Constructor and Description |
|---|
LoggingImpl(ObjectName parent,
String serverName)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getDiagnosticCauses(String messageID,
String moduleName)
Deprecated.
|
String[] |
getDiagnosticChecks(String messageID,
String moduleName)
Deprecated.
|
String |
getDiagnosticURI(String messageID)
Deprecated.
|
Map<String,Integer> |
getErrorDistribution(long timestamp,
String level)
Deprecated.
|
Map<String,Number>[] |
getErrorInfo()
Deprecated.
This method will always throw an exception
|
long |
getErrorStatisticsIntervalMinutes()
Deprecated.
|
int |
getKeepErrorStatisticsForIntervals()
Deprecated.
|
String[] |
getLogFileKeys()
Deprecated.
|
String[] |
getLogFileNames(String key)
Deprecated.
|
String[] |
getLoggerNames()
Deprecated.
|
String[] |
getLoggerNamesUnder(String loggerName)
Deprecated.
|
Map<String,String> |
getLoggingAttributes()
Deprecated.
|
Map<String,String> |
getLoggingProperties()
Deprecated.
|
int |
getLogLevelListenerCount(Level logLevel)
Deprecated.
|
String |
getModuleLogLevel(String module)
Deprecated.
|
MBeanNotificationInfo[] |
getNotificationInfo()
Deprecated.
|
static ObjectName |
getObjectName(String serverName)
Deprecated.
Used internally to get the Logging ObjectName for a particular server
Logging MBean is a special-case because it needs to load as early as
possible.
|
protected void |
preRegisterDone()
Deprecated.
|
void |
privateLoggingHook(LogRecord logRecord,
Formatter formatter)
Deprecated.
Internal use only, called by
com.sun.enterprise.server.logging.AMXLoggingHook.
|
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)
Deprecated.
|
void |
rotateAllLogFiles()
Deprecated.
|
void |
rotateLogFile(String key)
Deprecated.
|
void |
setErrorStatisticsIntervalMinutes(long minutes)
Deprecated.
|
void |
setKeepErrorStatisticsForIntervals(int num)
Deprecated.
|
void |
setModuleLogLevel(String module,
String level)
Deprecated.
|
void |
testEmitLogMessage(String level,
String message)
Deprecated.
|
void |
updateLoggingAttributes(Map<String,String> properties)
Deprecated.
|
void |
updateLoggingProperties(Map<String,String> properties)
Deprecated.
|
attributeNameToType, attributeTypeMatches, 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, toString, traceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitremoveNotificationListeneraddNotificationListener, removeNotificationListenerpublic LoggingImpl(ObjectName parent, String serverName)
public static ObjectName getObjectName(String serverName)
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcastergetNotificationInfo in class AMXImplBasepublic void updateLoggingProperties(Map<String,String> properties)
public int getLogLevelListenerCount(Level logLevel)
public String[] getLogFileKeys()
public void updateLoggingAttributes(Map<String,String> properties)
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 Map<String,Number>[] getErrorInfo()
UnsupportedOperationExceptionpublic Map<String,Integer> getErrorDistribution(long timestamp, String level)
public void setKeepErrorStatisticsForIntervals(int num)
public int getKeepErrorStatisticsForIntervals()
public void setErrorStatisticsIntervalMinutes(long minutes)
public long getErrorStatisticsIntervalMinutes()
public String[] getLoggerNames()
public String[] getDiagnosticCauses(String messageID, String moduleName)
public String[] getDiagnosticChecks(String messageID, String moduleName)
protected void preRegisterDone()
throws Exception
preRegisterDone in class AMXImplBaseExceptionpublic void privateLoggingHook(LogRecord logRecord, Formatter formatter)
Copyright © 2019. All rights reserved.