public class CCheckManager
extends java.util.concurrent.ThreadPoolExecutor
Modifier and Type | Class and Description |
---|---|
static class |
CCheckManager.CCheckStatus
ccheckQueue keeps track of the KBs that are currently being checked.
|
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy
Constructor and Description |
---|
CCheckManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterExecute(CCheck r,
java.lang.Throwable t)
Removes the KB from the list of kbs currently being checked, and add it to the checkedKBs list.
|
java.lang.String |
ccheckResults(java.lang.String kbName)
This method returns full or partial results of the consistency checks.
|
CCheckManager.CCheckStatus |
ccheckStatus(java.lang.String kbName)
Returns the current status of a KB
|
java.sql.Timestamp |
lastCCheck(java.lang.String kbName)
Returns the timestamp of when the last consistency check was run on this KB.
|
CCheckManager.CCheckStatus |
performConsistencyCheck(KB kb,
java.lang.String chosenEngine,
java.lang.String systemChosen,
java.lang.String location,
java.lang.String language,
int timeout)
Main code that performs the consistency check on the KB.
|
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, execute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated, toString
public java.sql.Timestamp lastCCheck(java.lang.String kbName)
kbName
- - name of the KBpublic java.lang.String ccheckResults(java.lang.String kbName)
kbName
- - name of the KB that we want the results ofpublic CCheckManager.CCheckStatus ccheckStatus(java.lang.String kbName)
kbName
- - the name of the KB to be checkedpublic CCheckManager.CCheckStatus performConsistencyCheck(KB kb, java.lang.String chosenEngine, java.lang.String systemChosen, java.lang.String location, java.lang.String language, int timeout)
kb
- - KB to be checkedprotected void afterExecute(CCheck r, java.lang.Throwable t)
r
- t
-