Class LoggingImpl
- java.lang.Object
-
- org.glassfish.admin.amx.impl.mbean.MBeanImplBase
-
- org.glassfish.admin.amx.impl.mbean.AMXImplBase
-
- org.glassfish.admin.amx.impl.mbean.LoggingImpl
-
- All Implemented Interfaces:
DynamicMBean,MBeanRegistration,NotificationBroadcaster,NotificationEmitter,AMX_SPI,NotificationSender
public final class LoggingImpl extends AMXImplBase
Deprecated.from Payara 5.193 as does not appear to be usedImplementation ofLogging.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.
-
-
Field Summary
-
Fields inherited from class org.glassfish.admin.amx.impl.mbean.AMXImplBase
EMPTY_OBJECT_NAMES, GET, GET_PREFIX, mMBeanInfo, OBJECT_NAME_SUFFIX, SET
-
Fields inherited from class org.glassfish.admin.amx.impl.mbean.MBeanImplBase
EMPTY_STRING_ARRAY, mSelfObjectName, mServer
-
-
Constructor Summary
Constructors Constructor Description LoggingImpl(ObjectName parent, String serverName)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String[]getDiagnosticCauses(String messageID, String moduleName)Deprecated.String[]getDiagnosticChecks(String messageID, String moduleName)Deprecated.StringgetDiagnosticURI(String messageID)Deprecated.Map<String,Integer>getErrorDistribution(long timestamp, String level)Deprecated.Map<String,Number>[]getErrorInfo()Deprecated.This method will always throw an exceptionlonggetErrorStatisticsIntervalMinutes()Deprecated.intgetKeepErrorStatisticsForIntervals()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.intgetLogLevelListenerCount(Level logLevel)Deprecated.StringgetModuleLogLevel(String module)Deprecated.MBeanNotificationInfo[]getNotificationInfo()Deprecated.static ObjectNamegetObjectName(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 voidpreRegisterDone()Deprecated.voidprivateLoggingHook(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.voidrotateAllLogFiles()Deprecated.voidrotateLogFile(String key)Deprecated.voidsetErrorStatisticsIntervalMinutes(long minutes)Deprecated.voidsetKeepErrorStatisticsForIntervals(int num)Deprecated.voidsetModuleLogLevel(String module, String level)Deprecated.voidtestEmitLogMessage(String level, String message)Deprecated.voidupdateLoggingAttributes(Map<String,String> properties)Deprecated.voidupdateLoggingProperties(Map<String,String> properties)Deprecated.-
Methods inherited from class org.glassfish.admin.amx.impl.mbean.AMXImplBase
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
-
Methods inherited from class org.glassfish.admin.amx.impl.mbean.MBeanImplBase
_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, trace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, removeNotificationListener
-
Methods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
-
-
-
-
Constructor Detail
-
LoggingImpl
public LoggingImpl(ObjectName parent, String serverName)
Deprecated.
-
-
Method Detail
-
getObjectName
public 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.
-
getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()
Deprecated.- Specified by:
getNotificationInfoin interfaceNotificationBroadcaster- Overrides:
getNotificationInfoin classAMXImplBase
-
updateLoggingProperties
public void updateLoggingProperties(Map<String,String> properties)
Deprecated.
-
getLogLevelListenerCount
public int getLogLevelListenerCount(Level logLevel)
Deprecated.
-
getLogFileKeys
public String[] getLogFileKeys()
Deprecated.
-
updateLoggingAttributes
public void updateLoggingAttributes(Map<String,String> properties)
Deprecated.
-
rotateAllLogFiles
public void rotateAllLogFiles()
Deprecated.
-
rotateLogFile
public void rotateLogFile(String key)
Deprecated.
-
queryServerLog
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)
Deprecated.
-
getErrorInfo
public Map<String,Number>[] getErrorInfo()
Deprecated.This method will always throw an exception- Throws:
UnsupportedOperationException
-
getErrorDistribution
public Map<String,Integer> getErrorDistribution(long timestamp, String level)
Deprecated.
-
setKeepErrorStatisticsForIntervals
public void setKeepErrorStatisticsForIntervals(int num)
Deprecated.
-
getKeepErrorStatisticsForIntervals
public int getKeepErrorStatisticsForIntervals()
Deprecated.
-
setErrorStatisticsIntervalMinutes
public void setErrorStatisticsIntervalMinutes(long minutes)
Deprecated.
-
getErrorStatisticsIntervalMinutes
public long getErrorStatisticsIntervalMinutes()
Deprecated.
-
getLoggerNames
public String[] getLoggerNames()
Deprecated.
-
getDiagnosticCauses
public String[] getDiagnosticCauses(String messageID, String moduleName)
Deprecated.
-
getDiagnosticChecks
public String[] getDiagnosticChecks(String messageID, String moduleName)
Deprecated.
-
preRegisterDone
protected void preRegisterDone() throws ExceptionDeprecated.- Overrides:
preRegisterDonein classAMXImplBase- Throws:
Exception
-
privateLoggingHook
public void privateLoggingHook(LogRecord logRecord, Formatter formatter)
Deprecated.Internal use only, called by com.sun.enterprise.server.logging.AMXLoggingHook.
-
-