Class SetTraceLevelTask
- java.lang.Object
-
- com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
-
- com.opencloud.slee.mlet.ant.tasks.ComponentBasedTask
-
- com.opencloud.slee.mlet.ant.tasks.SetTraceLevelTask
-
- All Implemented Interfaces:
SubTask
public class SetTraceLevelTask extends ComponentBasedTask
A Rhino management sub task for setting the trace level of components.
WarningThis ant task has been deprecated, since it uses a ComponentIDto identify a notification source (which is not compatible with the changes made to the tracing subsystem in SLEE 1.1). It has been replaced withSetTracerLevelTask.Ant Parameters Attribute Description Required failonerror
Flag to control failure behaviour. If 'true', the sub task will throw a
BuildExceptionwhen an error is encountered. If 'false', the sub task will throw aNonFatalBuildExceptioninstead of aBuildExceptionunder specific circumstances. See below for conditions (if any) which will cause aNonFatalBuildException.No. default value is taken from the Rhino management parent task.
componentid
Canonical name of the component.
Only required/allowed if the
componentnested element is not present.type
Indicates the type of component referenced by
componentid. See below for allowable component types.Only required/allowed if
componentidparameter 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 optionaltypeattribute ofcomponentis required.)Only required/allowed if the
serviceidattribute is not present.Component Types
The following names are valid identifiers for a component type in the
typeattribute of the settracelevel task or acomponentnested 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 aBuildException) on errors.
-
-
Field Summary
-
Fields inherited from class com.opencloud.slee.mlet.ant.tasks.ComponentBasedTask
component
-
Fields inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
client, failOnError
-
-
Constructor Summary
Constructors Constructor Description SetTraceLevelTask()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecute()static LevelgetTraceLevelFromString(String level)voidsetComponentID(String componentID)voidsetLevel(String level)voidsetType(String type)protected voidvalidateParameters()-
Methods inherited from class com.opencloud.slee.mlet.ant.tasks.ComponentBasedTask
addComponent, findComponent
-
Methods inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
-
-
-
-
Method Detail
-
execute
protected void execute() throws org.apache.tools.ant.BuildException- Specified by:
executein classAbstractBaseTask- Throws:
org.apache.tools.ant.BuildException
-
validateParameters
protected void validateParameters() throws org.apache.tools.ant.BuildException- Specified by:
validateParametersin classAbstractBaseTask- Throws:
org.apache.tools.ant.BuildException
-
getTraceLevelFromString
public static Level getTraceLevelFromString(String level) throws InvalidArgumentException
- Throws:
InvalidArgumentException
-
setComponentID
public void setComponentID(String componentID)
-
setLevel
public void setLevel(String level)
-
setType
public void setType(String type)
-
-