Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ftp: Refactor command queue into sequential executor
The FTP door uses a custom CommandQueue to provide the ability to sequentially process commands using a shared thread pool. This patch refactors this code into a more generic SequntialExecutor class. It implements the ExecutorService interface and is semantically similar to a single thread executor. However the thread used for processing tasks is allocated on demands from a shared Executor. The selective enabling of interrupts has been removed from the FTP door. This was a workaround for bad exception handling in old versions of the door. The workaround is not easily ported to SequentialExecutor and is therefore removed. Target: trunk Require-notes: no Require-book: no Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de> Patch: http://rb.dcache.org/r/6325/
- Loading branch information
Showing
5 changed files
with
223 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.