BUG-191: provide a way for executors to provide scheduling feedback 12/3712/1
authorRobert Varga <rovarga@cisco.com>
Sat, 9 Nov 2013 08:08:45 +0000 (09:08 +0100)
committerRobert Varga <rovarga@cisco.com>
Fri, 13 Dec 2013 16:44:19 +0000 (17:44 +0100)
commit8b68ac817071960679eafbf909e5b02dfd770966
tree6cf781db8e93999f58acf0b695f5e9e4cf8c70d3
parent2e8c76bedea254dbb7a513f1196d61161d169b87
BUG-191: provide a way for executors to provide scheduling feedback

The idea is that the executor is hooked onto the ListenableFuture,
kicking in if it succeeds. Should the insn be cancelled, the future
will be, too.

The notification part is handled internally until the Future succeeds --
once it does, the executor can either start immediately executing, after
checking with the Instruction, or inform it why it delayed execution.

Once execution completes, the executor pushes the appropriate details
into the instruction.

Change-Id: I9dd9c29c876b890cadf842941c1e59e0f394cf84
Signed-off-by: Robert Varga <rovarga@cisco.com>
pcep/topology-provider/src/main/java/org/opendaylight/bgpcep/pcep/topology/provider/TopologyProgramming.java
pcep/topology-spi/src/main/java/org/opendaylight/bgpcep/pcep/topology/spi/AbstractInstructionExecutor.java [new file with mode: 0644]
pcep/topology-spi/src/main/java/org/opendaylight/bgpcep/pcep/topology/spi/AbstractTopologyProgrammingExecutor.java [deleted file]
pcep/tunnel-provider/src/main/java/org/opendaylight/bgpcep/pcep/tunnel/provider/TunnelProgramming.java
programming/impl-config/src/main/java/org/opendaylight/controller/config/yang/programming/impl/InstructionSchedulerImplModule.java
programming/impl/src/main/java/org/opendaylight/bgpcep/programming/impl/Instruction.java [deleted file]
programming/impl/src/main/java/org/opendaylight/bgpcep/programming/impl/InstructionImpl.java [new file with mode: 0644]
programming/impl/src/main/java/org/opendaylight/bgpcep/programming/impl/ProgrammingServiceImpl.java
programming/spi/src/main/java/org/opendaylight/bgpcep/programming/spi/Instruction.java [new file with mode: 0644]
programming/spi/src/main/java/org/opendaylight/bgpcep/programming/spi/InstructionScheduler.java
programming/spi/src/main/java/org/opendaylight/bgpcep/programming/spi/SchedulerException.java [moved from programming/spi/src/main/java/org/opendaylight/bgpcep/programming/spi/InstructionExecutor.java with 50% similarity]