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.ClusterSingletonService
public 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 ProgrammingService
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<CleanInstructionsOutput>> cleanInstructions(CleanInstructionsInput input)
ProgrammingService
cleanInstructions
in interface ProgrammingService
public com.google.common.util.concurrent.ListenableFuture<Instruction> scheduleInstruction(SubmitInstructionInput input) throws SchedulerException
InstructionScheduler
Instruction
contract.scheduleInstruction
in interface InstructionScheduler
input
- Instruction scheduling informationSchedulerException
- if a failure to schedule the instruction occurs.public String getInstructionID()
InstructionScheduler
getInstructionID
in interface InstructionScheduler
public com.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo> closeServiceInstance()
closeServiceInstance
in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
public void close()
close
in interface AutoCloseable
Copyright © 2019 OpenDaylight. All rights reserved.