net.i2p.router.tunnel.pool
Class RequestTunnelJob

java.lang.Object
  extended bynet.i2p.router.JobImpl
      extended bynet.i2p.router.tunnel.pool.RequestTunnelJob
All Implemented Interfaces:
Job

public class RequestTunnelJob
extends JobImpl

queue up a job to request the endpoint to join the tunnel, which then requeues up another job for earlier hops, etc, until it reaches the gateway. after the gateway is confirmed, onCreated is fired.


Field Summary
(package private) static int HOP_REQUEST_TIMEOUT
           
 
Constructor Summary
RequestTunnelJob(RouterContext ctx, TunnelCreatorConfig cfg, Job onCreated, Job onFailed, int hop, boolean isFake, boolean isExploratory)
           
 
Method Summary
 java.lang.String getName()
          Descriptive name of the task
 void runJob()
          Actually perform the task.
 
Methods inherited from class net.i2p.router.JobImpl
dropped, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HOP_REQUEST_TIMEOUT

static final int HOP_REQUEST_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

RequestTunnelJob

public RequestTunnelJob(RouterContext ctx,
                        TunnelCreatorConfig cfg,
                        Job onCreated,
                        Job onFailed,
                        int hop,
                        boolean isFake,
                        boolean isExploratory)
Method Detail

getName

public java.lang.String 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.