org.apache.tools.ant.taskdefs
Class Nice
A task to provide "nice-ness" to the current thread, and/or to
query the current value.
Examples:
<nice currentPriority="current.value" >
Set
currentPriority to the current priority
<nice newPriority="10" >
Raise the priority of the build process (But not forked programs)
<nice currentPriority="old" newPriority="3" >
Lower the priority of the build process (But not forked programs), and save
the old value to the property
old.
void | execute()- Execute the task
|
void | setCurrentPriority(String currentPriority)- The name of a property to set to the value of the current
thread priority.
|
void | setNewPriority(int newPriority)- the new priority, in the range 1-10.
|
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
setCurrentPriority
public void setCurrentPriority(String currentPriority)
The name of a property to set to the value of the current
thread priority. Optional
currentPriority - the property name.
setNewPriority
public void setNewPriority(int newPriority)
the new priority, in the range 1-10.
newPriority - the new priority value.
Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.