final AtomicInteger cancelCount = new AtomicInteger(0);
final CountDownLatch latch1 = new CountDownLatch(1);
final CountDownLatch latch2 = new CountDownLatch(1);
//
BaseProcessFactory factory = new BaseProcessFactory() {
@Override
public BaseProcess create(String request) {
return new BaseProcess(request) {
@Override
protected ShellResponse execute(String request) {