org.apache.manifoldcf.crawler.connectors.webcrawler
Class ThrottledFetcher.SocketCreateThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.apache.manifoldcf.crawler.connectors.webcrawler.ThrottledFetcher.SocketCreateThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ThrottledFetcher

protected static class ThrottledFetcher.SocketCreateThread
extends java.lang.Thread

Create a secure socket in a thread, so that we can "give up" after a while if the socket fails to connect.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  java.net.InetAddress clientHost
           
protected  int clientPort
           
protected  java.lang.String host
           
protected  int port
           
protected  java.net.Socket rval
           
protected  javax.net.ssl.SSLSocketFactory socketFactory
           
protected  java.lang.Throwable throwable
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ThrottledFetcher.SocketCreateThread(javax.net.ssl.SSLSocketFactory socketFactory, java.lang.String host, int port, java.net.InetAddress clientHost, int clientPort)
          Create the thread
 
Method Summary
 java.lang.Throwable getException()
           
 java.net.Socket getResult()
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

socketFactory

protected javax.net.ssl.SSLSocketFactory socketFactory

host

protected java.lang.String host

port

protected int port

clientHost

protected java.net.InetAddress clientHost

clientPort

protected int clientPort

rval

protected java.net.Socket rval

throwable

protected java.lang.Throwable throwable
Constructor Detail

ThrottledFetcher.SocketCreateThread

public ThrottledFetcher.SocketCreateThread(javax.net.ssl.SSLSocketFactory socketFactory,
                                           java.lang.String host,
                                           int port,
                                           java.net.InetAddress clientHost,
                                           int clientPort)
Create the thread

Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

getException

public java.lang.Throwable getException()

getResult

public java.net.Socket getResult()