org.apache.manifoldcf.agents.output.solr
Class HttpPoster.IngestThread
java.lang.Object
java.lang.Thread
org.apache.manifoldcf.agents.output.solr.HttpPoster.IngestThread
- All Implemented Interfaces:
- java.lang.Runnable
- Enclosing class:
- HttpPoster
protected class HttpPoster.IngestThread
- extends java.lang.Thread
Killable thread that does ingestions.
Java 1.5 stopped permitting thread interruptions to abort socket waits. As a result, it is impossible to get threads to shutdown cleanly that are doing
such waits. So, the places where this happens are segregated in their own threads so that they can be just abandoned.
This thread does a single document ingestion.
| Nested classes/interfaces inherited from class java.lang.Thread |
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
|
Constructor Summary |
HttpPoster.IngestThread(java.lang.String documentURI,
org.apache.manifoldcf.agents.interfaces.RepositoryDocument document,
java.util.Map arguments,
java.util.Map sourceTargets,
java.lang.String[] shareAcls,
java.lang.String[] shareDenyAcls,
java.lang.String[] acls,
java.lang.String[] denyAcls)
|
| 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 |
documentURI
protected java.lang.String documentURI
document
protected org.apache.manifoldcf.agents.interfaces.RepositoryDocument document
arguments
protected java.util.Map arguments
sourceTargets
protected java.util.Map sourceTargets
shareAcls
protected java.lang.String[] shareAcls
shareDenyAcls
protected java.lang.String[] shareDenyAcls
acls
protected java.lang.String[] acls
denyAcls
protected java.lang.String[] denyAcls
activityStart
protected java.lang.Long activityStart
activityBytes
protected java.lang.Long activityBytes
activityCode
protected java.lang.String activityCode
activityDetails
protected java.lang.String activityDetails
exception
protected java.lang.Throwable exception
readFromDocumentStreamYet
protected boolean readFromDocumentStreamYet
rval
protected boolean rval
HttpPoster.IngestThread
public HttpPoster.IngestThread(java.lang.String documentURI,
org.apache.manifoldcf.agents.interfaces.RepositoryDocument document,
java.util.Map arguments,
java.util.Map sourceTargets,
java.lang.String[] shareAcls,
java.lang.String[] shareDenyAcls,
java.lang.String[] acls,
java.lang.String[] denyAcls)
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()
getActivityStart
public java.lang.Long getActivityStart()
getActivityBytes
public java.lang.Long getActivityBytes()
getActivityCode
public java.lang.String getActivityCode()
getActivityDetails
public java.lang.String getActivityDetails()
getReadFromDocumentStreamYet
public boolean getReadFromDocumentStreamYet()
getRval
public boolean getRval()