Package net.i2p.router.startup
Class LoadRouterInfoJob
java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.startup.LoadRouterInfoJob
- All Implemented Interfaces:
Job
class LoadRouterInfoJob extends JobImpl
Run once or twice at startup by StartupJob,
and then runs BootCommSystemJob
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LoadRouterInfoJob.KeyData
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LoadRouterInfoJob(RouterContext ctx)
-
Method Summary
Modifier and Type Method Description String
getName()
Descriptive name of the taskstatic LoadRouterInfoJob.KeyData
readKeyData(File rkf1, File rkf2)
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
-
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. -
readKeyData
public static LoadRouterInfoJob.KeyData readKeyData(File rkf1, File rkf2) throws DataFormatException, IOException- Parameters:
rkf1
- in router.keys format, tried secondrkf2
- in eepPriv.dat format, tried first- Returns:
- non-null, throws IOE if neither exisits
- Throws:
DataFormatException
IOException
- Since:
- 0.9.16
-