Class SetTraceLevelTask

  • All Implemented Interfaces:

    public class SetTraceLevelTask
    extends ComponentBasedTask

    A Rhino management sub task for setting the trace level of components.

    This ant task has been deprecated, since it uses a ComponentID to identify a notification source (which is not compatible with the changes made to the tracing subsystem in SLEE 1.1). It has been replaced with SetTracerLevelTask.
    Ant Parameters
    Attribute Description Required


    Flag to control failure behaviour. If 'true', the sub task will throw a BuildException when an error is encountered. If 'false', the sub task will throw a NonFatalBuildException instead of a BuildException under specific circumstances. See below for conditions (if any) which will cause a NonFatalBuildException.

    No. default value is taken from the Rhino management parent task.


    Canonical name of the component.

    Only required/allowed if the component nested element is not present.


    Indicates the type of component referenced by componentid. See below for allowable component types.

    Only required/allowed if componentid parameter is present.


    Requested trace level, can be one of 'finest', 'finer', 'fine', 'config', 'info', 'warning', 'severe', 'off'.


    Parameters available as nested elements
    Element Description Required


    Identifies the component. See SleeComponentElement (Note that for the settracelevel sub task the optional type attribute of component is required.)

    Only required/allowed if the serviceid attribute is not present.

    Component Types

    The following names are valid identifiers for a component type in the type attribute of the settracelevel task or a component nested element.

    • pspec - profile specification

    • ra - resource adaptor

    • service - service

    • sbb - sbb

    NonFatalBuildException throw conditions
    • This task will never throw a NonFatalBuildException. It will always fail (throw a BuildException) on errors.

    • Constructor Detail

      • SetTraceLevelTask

        public SetTraceLevelTask()
    • Method Detail

      • execute

        protected void execute()
        Specified by:
        execute in class AbstractBaseTask
      • validateParameters

        protected void validateParameters()
        Specified by:
        validateParameters in class AbstractBaseTask
      • setComponentID

        public void setComponentID​(String componentID)
      • setLevel

        public void setLevel​(String level)
      • setType

        public void setType​(String type)