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 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 withSetTracerLevelTask
.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 aNonFatalBuildException
instead of aBuildException
under 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
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 optionaltype
attribute ofcomponent
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 acomponent
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 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 void
execute()
static Level
getTraceLevelFromString(String level)
void
setComponentID(String componentID)
void
setLevel(String level)
void
setType(String type)
protected void
validateParameters()
-
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:
execute
in classAbstractBaseTask
- Throws:
org.apache.tools.ant.BuildException
-
validateParameters
protected void validateParameters() throws org.apache.tools.ant.BuildException
- Specified by:
validateParameters
in 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)
-
-