public final class ProgrammingServiceImpl extends Object implements org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService, InstructionScheduler, ProgrammingService
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<CancelInstructionOutput>> |
cancelInstruction(CancelInstructionInput input) |
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<CleanInstructionsOutput>> |
cleanInstructions(CleanInstructionsInput input)
Attempt to clean out a certain set of instructions.Instructions flushed this way
need to be in a terminalstate, e.g.
|
void |
close() |
com.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo> |
closeServiceInstance() |
org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier |
getIdentifier() |
String |
getInstructionID()
Returns InstructionID.
|
void |
instantiateServiceInstance() |
com.google.common.util.concurrent.ListenableFuture<Instruction> |
scheduleInstruction(SubmitInstructionInput input)
Schedule a new instruction for execution.
|
public void instantiateServiceInstance()
instantiateServiceInstance in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServicepublic org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier getIdentifier()
getIdentifier in interface org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<CancelInstructionOutput>> cancelInstruction(CancelInstructionInput input)
cancelInstruction in interface ProgrammingServicepublic com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<CleanInstructionsOutput>> cleanInstructions(CleanInstructionsInput input)
ProgrammingServicecleanInstructions in interface ProgrammingServicepublic com.google.common.util.concurrent.ListenableFuture<Instruction> scheduleInstruction(SubmitInstructionInput input) throws SchedulerException
InstructionSchedulerInstruction contract.scheduleInstruction in interface InstructionSchedulerinput - Instruction scheduling informationSchedulerException - if a failure to schedule the instruction occurs.public String getInstructionID()
InstructionSchedulergetInstructionID in interface InstructionSchedulerpublic com.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo> closeServiceInstance()
closeServiceInstance in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServicepublic void close()
close in interface AutoCloseableCopyright © 2019 OpenDaylight. All rights reserved.