public class SetTracerLevelTask extends NotificationSourceBasedTask
A Rhino management sub task for setting the trace level of notification sources.
Attribute | Description | Required |
---|---|---|
failonerror |
Flag to control failure behaviour.
If 'true', the sub task will throw a |
No. default value is taken from the Rhino management parent task. |
tracerName |
Name of the tracer whose level is to be set. |
Yes. |
level |
Requested trace level, can be one of 'finest', 'finer', 'fine', 'config', 'info', 'warning', 'severe', 'off'. |
Yes. |
Element | Description | Required |
---|---|---|
sbbNotificationSource |
Identifies an SBB notification source.
See |
One and only one of |
raEntityNotificationSource |
Identifies a resource adaptor entity notification source.
See |
One and only one of |
profileTableNotificationSource |
Identifies a profile table notification source.
See |
One and only one of |
subsystemNotificationSource |
Identifies a subsystem notification source.
See |
One and only one of |
This task will never throw a NonFatalBuildException
. It will always fail (throw a BuildException
) on errors.
client, failOnError
Constructor and Description |
---|
SetTracerLevelTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute() |
String |
getLevel() |
String |
getTracerName() |
void |
setLevel(String level) |
void |
setTracerName(String tracerName) |
protected void |
validateParameters() |
addProfileTableNotificationSource, addRAEntityNotificationSource, addSbbNotificationSource, addSubsystemNotificationSource, createNotificationSource, getNotificationSource
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
public String getTracerName()
public void setTracerName(String tracerName)
public String getLevel()
public void setLevel(String level)
protected void execute() throws org.apache.tools.ant.BuildException
execute
in class AbstractBaseTask
org.apache.tools.ant.BuildException
protected void validateParameters() throws org.apache.tools.ant.BuildException
validateParameters
in class AbstractBaseTask
org.apache.tools.ant.BuildException