java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.client.CreateSessionJob
- All Implemented Interfaces:
Job
Given an established connection, walk through the process of establishing the leaseset. This requests the TunnelManagerFacade to build tunnels for the client and then once thats done (asynchronously) it requests a lease set from the client.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SessionConfigOptions for the session being created.private final LogLogger for this class.Constructor Summary
ConstructorsConstructorDescriptionCreateSessionJob(RouterContext context, SessionConfig config) Create a job to request tunnels and then a LeaseSet for one client session.Method Summary
All MethodsMethods inherited from class JobImpl
dropped, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toStringModifier and TypeMethodDescriptionvoiddropped()Default implementation does nothing.final RouterContextThe router context that this job belongs to.longgetJobId()The unique job ID for this job.longThe timestamp when this job was last made ready for execution.The timing object for this job.voidmadeReady(long now) For JobQueue only, not for external use.protected voidrequeue(long delayMs) Requeue this job to run after the specified delay.toString()
Field Details
_log
Logger for this class._config
Options for the session being created.
Constructor Details
CreateSessionJob
Create a job to request tunnels and then a LeaseSet for one client session.- Parameters:
context- the router context, used for the log and the tunnel facadeconfig- the session config naming the destination to build tunnels for
Method Details
getName
runJob
public void runJob()Execute the job.