Package uk.ac.gda.vmxi.match
Class ImageMatchServiceBase
java.lang.Object
gda.factory.FindableBase
uk.ac.gda.vmxi.match.ImageMatchServiceBase
- All Implemented Interfaces:
Findable,ImageMatchService
- Direct Known Subclasses:
ImageMatchServiceVmxi,ImageMatchServiceWrapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncacheRequest(ImageMatchRequest request) voidcacheResult(ImageMatchResult result) voidClear all pending requests and ignore any asynchronously returned resultvoidClear specified request and ignore any asynchronously returned resultFactory to create empty request, to be configured before submittinggetRequest(String requestId) Check for pending requestintCount the pending requestsCheck list of pending requestsIf result present, remove from cache and return it.intCount the available completed resultsisComplete(String requestId) Check for presence of specified resultMethods inherited from class gda.factory.FindableBase
equals, getName, hashCode, setNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface uk.ac.gda.vmxi.match.api.ImageMatchService
executeMatch, requestMatch, stackImages
-
Constructor Details
-
ImageMatchServiceBase
public ImageMatchServiceBase()
-
-
Method Details
-
cacheRequest
-
cacheResult
-
clearAllTasks
public void clearAllTasks()Description copied from interface:ImageMatchServiceClear all pending requests and ignore any asynchronously returned result- Specified by:
clearAllTasksin interfaceImageMatchService
-
clearTask
Description copied from interface:ImageMatchServiceClear specified request and ignore any asynchronously returned result- Specified by:
clearTaskin interfaceImageMatchService
-
createRequest
Description copied from interface:ImageMatchServiceFactory to create empty request, to be configured before submitting- Specified by:
createRequestin interfaceImageMatchService
-
getRequest
Description copied from interface:ImageMatchServiceCheck for pending request- Specified by:
getRequestin interfaceImageMatchService
-
getRequestCount
public int getRequestCount()Description copied from interface:ImageMatchServiceCount the pending requests- Specified by:
getRequestCountin interfaceImageMatchService
-
getRequestList
Description copied from interface:ImageMatchServiceCheck list of pending requests- Specified by:
getRequestListin interfaceImageMatchService
-
getResult
If result present, remove from cache and return it.- Specified by:
getResultin interfaceImageMatchService
-
getResultCount
public int getResultCount()Description copied from interface:ImageMatchServiceCount the available completed results- Specified by:
getResultCountin interfaceImageMatchService
-
isComplete
Description copied from interface:ImageMatchServiceCheck for presence of specified result- Specified by:
isCompletein interfaceImageMatchService
-