public class EnableRampUpTask extends AbstractBaseTask
A Rhino management sub task that configures and enables ramp up of limiter rate for the system input limiter.
Attribute | Description | Required |
---|---|---|
startrate |
The initial number of events per second for the system input limiter (a double). |
Yes. |
rateincrement |
The incremental number of events per second added to the allowed rate if Rhino is successfully processing work (a double). |
Yes. |
eventsperincrement |
The number of events processed before Rhino will add rateincrement events to the allowed rate (an integer). |
Yes. |
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. |
client, failOnError
Constructor and Description |
---|
EnableRampUpTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute() |
void |
setEventsPerIncrement(int eventsPerIncrement) |
void |
setRateIncrement(double rateIncrement) |
void |
setStartRate(double startRate) |
protected void |
validateParameters() |
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
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
public void setStartRate(double startRate)
public void setRateIncrement(double rateIncrement)
public void setEventsPerIncrement(int eventsPerIncrement)