public class CCheckManager extends ThreadPoolExecutor
| Modifier and Type | Class and Description |
|---|---|
static class |
CCheckManager.CCheckStatus
ccheckQueue keeps track of the KBs that are currently being checked.
|
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
CCheckManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterExecute(CCheck r,
Throwable t)
Removes the KB from the list of kbs currently being checked, and add it to the checkedKBs list.
|
String |
ccheckResults(String kbName)
This method returns full or partial results of the consistency checks.
|
CCheckManager.CCheckStatus |
ccheckStatus(String kbName)
Returns the current status of a KB
|
Timestamp |
lastCCheck(String kbName)
Returns the timestamp of when the last consistency check was run on this KB.
|
CCheckManager.CCheckStatus |
performConsistencyCheck(KB kb,
String chosenEngine,
String systemChosen,
String location,
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, toStringinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitpublic Timestamp lastCCheck(String kbName)
kbName - - name of the KBpublic String ccheckResults(String kbName)
kbName - - name of the KB that we want the results ofpublic CCheckManager.CCheckStatus ccheckStatus(String kbName)
kbName - - the name of the KB to be checkedpublic CCheckManager.CCheckStatus performConsistencyCheck(KB kb, String chosenEngine, String systemChosen, String location, String language, int timeout)
kb - - KB to be checkedCopyright © 2015. All rights reserved.