Class HttpPoster.DeleteThread
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.manifoldcf.agents.output.solr.HttpPoster.DeleteThread
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- HttpPoster
protected class HttpPoster.DeleteThread extends java.lang.Thread
Killable thread that does deletions. 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 deletion.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
activityCode
protected java.lang.String
activityDetails
protected java.lang.Long
activityStart
protected java.lang.String
documentURI
protected java.lang.Throwable
exception
-
Constructor Summary
Constructors Constructor Description DeleteThread(java.lang.String documentURI)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finishUp()
java.lang.String
getActivityCode()
java.lang.String
getActivityDetails()
java.lang.Long
getActivityStart()
void
run()
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
finishUp
public void finishUp() throws java.lang.InterruptedException, org.apache.solr.client.solrj.SolrServerException, java.io.IOException
- Throws:
java.lang.InterruptedException
org.apache.solr.client.solrj.SolrServerException
java.io.IOException
-
getActivityStart
public java.lang.Long getActivityStart()
-
getActivityCode
public java.lang.String getActivityCode()
-
getActivityDetails
public java.lang.String getActivityDetails()
-
-