Interface InstructionScheduler
-
- All Superinterfaces:
AutoCloseable,org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>,org.opendaylight.yangtools.concepts.Registration
public interface InstructionScheduler extends org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>, org.opendaylight.yangtools.concepts.Registration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull StringgetInstructionID()Returns InstructionID.com.google.common.util.concurrent.ListenableFuture<Instruction>scheduleInstruction(SubmitInstructionInput input)Schedule a new instruction for execution.
-
-
-
Method Detail
-
scheduleInstruction
com.google.common.util.concurrent.ListenableFuture<Instruction> scheduleInstruction(SubmitInstructionInput input) throws SchedulerException
Schedule a new instruction for execution. This method tries to enqueue an instruction. It will return a Future which represents the scheduling progress. When the future becomes successful, the requestor is expected to start executing on the instruction, as specified by theInstructioncontract.- Parameters:
input- Instruction scheduling information- Returns:
- Scheduling future.
- Throws:
SchedulerException- if a failure to schedule the instruction occurs.
-
getInstructionID
@NonNull String getInstructionID()
Returns InstructionID.- Returns:
- Instruction ID
-
-