Search in sources :

Example 1 with PendingCommandSubmitter

use of org.openkilda.floodlight.command.PendingCommandSubmitter in project open-kilda by telstra.

the class CommandProcessorService method verifyPendingStatus.

private void verifyPendingStatus() {
    LinkedList<ProcessorTask> checkList = rotatePendingCommands();
    if (checkList.size() == 0) {
        return;
    }
    try {
        CommandContext context = commandContextFactory.produce();
        VerifyBatch verifyBatch = new VerifyBatch(this, checkList);
        PendingCommandSubmitter checkCommands = new PendingCommandSubmitter(context, verifyBatch);
        processLazy(checkCommands);
    } catch (Throwable e) {
        synchronized (this) {
            tasks.addAll(checkList);
        }
        throw e;
    }
}
Also used : PendingCommandSubmitter(org.openkilda.floodlight.command.PendingCommandSubmitter) CommandContext(org.openkilda.floodlight.command.CommandContext)

Aggregations

CommandContext (org.openkilda.floodlight.command.CommandContext)1 PendingCommandSubmitter (org.openkilda.floodlight.command.PendingCommandSubmitter)1