com.metamatrix.admin.objects
Class MMLogConfiguration
java.lang.Object
com.metamatrix.admin.objects.MMLogConfiguration
- All Implemented Interfaces:
- LogConfiguration
public class MMLogConfiguration
- extends java.lang.Object
- implements LogConfiguration
- Since:
- 4.3
Constructor Summary |
MMLogConfiguration(java.util.Map<java.lang.String,java.lang.Integer> contextMap)
|
Method Summary |
java.util.Set<java.lang.String> |
getContexts()
Obtain the set of message contexts that are currently used. |
int |
getLogLevel(java.lang.String context)
Get the current configured Log Level for supplied context |
void |
setLogLevel(java.lang.String context,
int logLevel)
Set the Log Level
Note: Must call setLogConfiguration(LogConfiguration) for log level to take
affect on the server. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MMLogConfiguration
public MMLogConfiguration(java.util.Map<java.lang.String,java.lang.Integer> contextMap)
getContexts
public java.util.Set<java.lang.String> getContexts()
- Description copied from interface:
LogConfiguration
- Obtain the set of message contexts that are currently used.
- Specified by:
getContexts
in interface LogConfiguration
- Returns:
- the unmodifiable set of context Strings; never null
getLogLevel
public int getLogLevel(java.lang.String context)
- Description copied from interface:
LogConfiguration
- Get the current configured Log Level for supplied context
- Specified by:
getLogLevel
in interface LogConfiguration
- Returns:
- int value
- See Also:
MessageLevel
setLogLevel
public void setLogLevel(java.lang.String context,
int logLevel)
- Description copied from interface:
LogConfiguration
- Set the Log Level
Note: Must call setLogConfiguration(LogConfiguration) for log level to take
affect on the server.
- Specified by:
setLogLevel
in interface LogConfiguration
- Parameters:
context
- log context namelogLevel
- The logLevel to set.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2009. All Rights Reserved.