flex.management.runtime.messaging.log
Class LogControl

java.lang.Object
  extended by flex.management.BaseControl
      extended by flex.management.runtime.messaging.log.LogControl
All Implemented Interfaces:
BaseControlMBean, LogControlMBean, MBeanRegistration

public class LogControl
extends BaseControl
implements LogControlMBean

The LogControl class is the MBean implemenation for monitoring and managing a Log at runtime through the LogManager.


Field Summary
 
Fields inherited from class flex.management.BaseControl
DOMAIN_PREFIX
 
Constructor Summary
LogControl(BaseControl parent, LogManager manager)
          Creates the mbean and registers it with the mbean server.
 
Method Summary
 void addFilterForTarget(String targetId, String filter)
          Adds a filter for the target.
 void changeTargetLevel(String searchId, String level)
          Sets the logging level for the target associated with the unique ID searchId.
 String[] getCategories()
          Returns the array of log categories.
 String getId()
          Returns the id for this MBean.
 String[] getLoggers()
           
 String[] getTargetFilters(String targetId)
          Returns the array of log target filters.
 Integer getTargetLevel(String searchId)
          Returns the target level.
 String[] getTargets()
          Returns the array of log targets.
 String getType()
          Returns the type for this MBean.
 void removeFilterForTarget(String targetId, String filter)
          Removes a filter from the target.
 
Methods inherited from class flex.management.BaseControl
getApplicationId, getMBeanServer, getObjectName, getParent, getParentControl, getRegistrar, postDeregister, postRegister, preDeregister, preRegister, register, setStartTimestamp, unregister
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface flex.management.BaseControlMBean
getParent
 

Constructor Detail

LogControl

public LogControl(BaseControl parent,
                  LogManager manager)
Creates the mbean and registers it with the mbean server.

Parameters:
parent - BaseControl
manager - A reference to the LogManager
Method Detail

changeTargetLevel

public void changeTargetLevel(String searchId,
                              String level)
Sets the logging level for the target associated with the unique ID searchId.

Specified by:
changeTargetLevel in interface LogControlMBean
Parameters:
searchId -
level -

getId

public String getId()
Description copied from interface: BaseControlMBean
Returns the id for this MBean. This is the value that is set for the id key in the ObjectName for this MBean.

Specified by:
getId in interface BaseControlMBean
Specified by:
getId in class BaseControl
Returns:
The MBean instance id.

getType

public String getType()
Description copied from interface: BaseControlMBean
Returns the type for this MBean. This is the value that is set for the type key in the ObjectName for this MBean.

Specified by:
getType in interface BaseControlMBean
Specified by:
getType in class BaseControl
Returns:
The MBean instance type.

getLoggers

public String[] getLoggers()
Returns:
a string array of loggers

getTargets

public String[] getTargets()
Description copied from interface: LogControlMBean
Returns the array of log targets.

Specified by:
getTargets in interface LogControlMBean
Returns:
The array of log targets.

addFilterForTarget

public void addFilterForTarget(String targetId,
                               String filter)
Description copied from interface: LogControlMBean
Adds a filter for the target.

Specified by:
addFilterForTarget in interface LogControlMBean
Parameters:
targetId - The filter.
filter - The target id.

getTargetFilters

public String[] getTargetFilters(String targetId)
Description copied from interface: LogControlMBean
Returns the array of log target filters.

Specified by:
getTargetFilters in interface LogControlMBean
Parameters:
targetId - The target id.
Returns:
The array of log target filters.

removeFilterForTarget

public void removeFilterForTarget(String targetId,
                                  String filter)
Description copied from interface: LogControlMBean
Removes a filter from the target.

Specified by:
removeFilterForTarget in interface LogControlMBean
Parameters:
targetId - The filter.
filter - The target id.

getCategories

public String[] getCategories()
Description copied from interface: LogControlMBean
Returns the array of log categories.

Specified by:
getCategories in interface LogControlMBean
Returns:
The array of log categories.

getTargetLevel

public Integer getTargetLevel(String searchId)
Description copied from interface: LogControlMBean
Returns the target level.

Specified by:
getTargetLevel in interface LogControlMBean
Parameters:
searchId - The target id.
Returns:
The target level.


Copyright © 2008 Adobe Systems Inc. All Rights Reserved.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/management/runtime/messaging/log/LogControl.html