Class SetTraceLevelTask

  • All Implemented Interfaces:
    SubTask

    public class SetTraceLevelTask
    extends ComponentBasedTask

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

    Warning
    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

    failonerror

    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.

    componentid

    Canonical name of the component.

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

    type

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

    Only required/allowed if componentid parameter is present.

    level

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

    Yes.

    Parameters available as nested elements
    Element Description Required

    component

    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()
                        throws org.apache.tools.ant.BuildException
        Specified by:
        execute in class AbstractBaseTask
        Throws:
        org.apache.tools.ant.BuildException
      • validateParameters

        protected void validateParameters()
                                   throws org.apache.tools.ant.BuildException
        Specified by:
        validateParameters in class AbstractBaseTask
        Throws:
        org.apache.tools.ant.BuildException
      • setComponentID

        public void setComponentID​(String componentID)
      • setLevel

        public void setLevel​(String level)
      • setType

        public void setType​(String type)