Package net.i2p.router.tasks
Class ReadConfigJob
java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.tasks.ReadConfigJob
- All Implemented Interfaces:
Job
public class ReadConfigJob extends JobImpl
Simply read the router config periodically,
so that the user may make config changes externally.
This isn't advertised as a feature,
but it could be used, for example, to change bandwidth limits
at certain times of day.
Unfortunately it will also read the file back in every time the
router writes it.
We must keep this enabled, as it's the only way for people
to set routerconsole.advanced=true without restarting.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ReadConfigJob(RouterContext ctx)
-
Method Summary
Modifier and Type Method Description String
getName()
Descriptive name of the taskboolean
isAdvanced()
void
runJob()
Actually perform the task.Methods inherited from class net.i2p.router.JobImpl
dropped, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toString
-
Constructor Details
-
Method Details
-
isAdvanced
public boolean isAdvanced() -
getName
Description copied from interface:Job
Descriptive name of the task -
runJob
public void runJob()Description copied from interface:Job
Actually perform the task. This call blocks until the Job is complete.
-