com.metamatrix.admin.objects
Class MMLogConfiguration

java.lang.Object
  extended by com.metamatrix.admin.objects.MMAdminObject
      extended by com.metamatrix.admin.objects.MMLogConfiguration
All Implemented Interfaces:
AdminObject, LogConfiguration, java.io.Serializable

public class MMLogConfiguration
extends MMAdminObject
implements LogConfiguration

Since:
4.3
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.metamatrix.admin.objects.MMAdminObject
deployed, enabled, identifier, identifierParts, name, OBJECT_TYPE_CACHE, OBJECT_TYPE_CONNECTOR_BINDING, OBJECT_TYPE_CONNECTOR_TYPE, OBJECT_TYPE_DQP, OBJECT_TYPE_ENTITLEMENT, OBJECT_TYPE_EXTENSION_MODULE, OBJECT_TYPE_GROUP, OBJECT_TYPE_HOST, OBJECT_TYPE_LOG_CONFIGURATION, OBJECT_TYPE_MODEL, OBJECT_TYPE_PROCESS_OBJECT, OBJECT_TYPE_PROPERTY_DEFINITION, OBJECT_TYPE_QUEUE_WORKER_POOL, OBJECT_TYPE_REQUEST, OBJECT_TYPE_RESOURCE, OBJECT_TYPE_ROLE, OBJECT_TYPE_SESSION, OBJECT_TYPE_SOURCE_REQUEST, OBJECT_TYPE_SYSTEM_OBJECT, OBJECT_TYPE_USER, OBJECT_TYPE_VDB, OBJECTS_PACKAGE, registered, serialVersionUID
 
Fields inherited from interface com.metamatrix.admin.api.objects.LogConfiguration
CONTEXT_DELIMETER, CRITICAL, CTX_ALL, DETAIL, ERROR, INFO, LOG_CONTEXT_PROPERTY_NAME, LOG_LEVEL_PROPERTY_NAME, NONE, TRACE, WARNING
 
Fields inherited from interface com.metamatrix.admin.api.objects.AdminObject
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD
 
Constructor Summary
MMLogConfiguration()
          xtor for Log Configuration
 
Method Summary
 java.util.Set getDiscardedContexts()
          Obtain the set of contexts for messages that are to be discarded.
 java.util.Set getIncludedContexts()
          Obtain the set of message contexts that are currently used.
 int getLogLevel()
          Get the current configured Log Level TODO: An int log level is of little use to clients.
 void setDiscardedContexts(java.util.Set discardedContexts)
          Direct the log configuration to discard the given contexts and not record them.
 void setIncludedContexts(java.util.Set includedContexts)
          Direct the log configuration to record only these contexts.
 void setLogLevel(int logLevel)
          Set the Log Level
 java.lang.String toString()
          Get MetaMatrix Object as a String
 
Methods inherited from class com.metamatrix.admin.objects.MMAdminObject
buildIdentifier, buildIdentifierArray, buildIdentifierList, getCreated, getCreatedBy, getCreatedDate, getIdentifier, getIdentifierArray, getLastChangedBy, getLastChangedDate, getLastUpdated, getLastUpdatedBy, getName, getNameFromIdentifier, getObjectType, getParentName, getProperties, getPropertiesAsString, getPropertyValue, getProps, isDeployed, isEnabled, isRegistered, setCreated, setCreatedBy, setDeployed, setEnabled, setIdentifier, setLastUpdated, setLastUpdatedBy, setProperties, setRegistered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.metamatrix.admin.api.objects.AdminObject
getIdentifier, getName, getProperties, getPropertyValue
 

Constructor Detail

MMLogConfiguration

public MMLogConfiguration()
xtor for Log Configuration

Since:
4.3
Method Detail

toString

public java.lang.String toString()
Description copied from class: MMAdminObject
Get MetaMatrix Object as a String

Specified by:
toString in class MMAdminObject
Since:
4.3
See Also:
MMAdminObject.toString()

getLogLevel

public int getLogLevel()
Description copied from interface: LogConfiguration
Get the current configured Log Level TODO: An int log level is of little use to clients. Need to get log level descriptions too.

Specified by:
getLogLevel in interface LogConfiguration
Returns:
int value
Since:
4.3
See Also:
LogConfiguration.getLogLevel()

setLogLevel

public void setLogLevel(int logLevel)
Set the Log Level

Specified by:
setLogLevel in interface LogConfiguration
Parameters:
logLevel - The logLevel to set.
Since:
4.3

getDiscardedContexts

public java.util.Set getDiscardedContexts()
Description copied from interface: LogConfiguration
Obtain the set of contexts for messages that are to be discarded. If this method returns an empty set, then messages in all contexts are being recorded; if not empty, then messages with a context in the returned set are discarded and messages for all other contexts recorded.

Specified by:
getDiscardedContexts in interface LogConfiguration
Returns:
Returns the discardedContexts.
Since:
4.3

setDiscardedContexts

public void setDiscardedContexts(java.util.Set discardedContexts)
Description copied from interface: LogConfiguration
Direct the log configuration to discard the given contexts and not record them. Note: Must call setLogConfiguration(LogConfiguration) for log level to take affect on the server.

Specified by:
setDiscardedContexts in interface LogConfiguration
Parameters:
discardedContexts - The discardedContexts to set.
Since:
4.3

getIncludedContexts

public java.util.Set getIncludedContexts()
Description copied from interface: LogConfiguration
Obtain the set of message contexts that are currently used.

Specified by:
getIncludedContexts in interface LogConfiguration
Returns:
Returns the includedContexts.
Since:
4.3

setIncludedContexts

public void setIncludedContexts(java.util.Set includedContexts)
Description copied from interface: LogConfiguration
Direct the log configuration to record only these contexts. Note: Must call setLogConfiguration(LogConfiguration) for log level to take affect on the server.

Specified by:
setIncludedContexts in interface LogConfiguration
Parameters:
includedContexts - The includedContexts to set.
Since:
4.3


Copyright © 2009. All Rights Reserved.