Class ProgrammingServiceImpl

  • All Implemented Interfaces:
    AutoCloseable, InstructionScheduler, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService, ProgrammingService, org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>, org.opendaylight.yangtools.yang.binding.RpcService

    public final class ProgrammingServiceImpl
    extends Object
    implements org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService, InstructionScheduler, ProgrammingService
    • Method Detail

      • instantiateServiceInstance

        public void instantiateServiceInstance()
        Specified by:
        instantiateServiceInstance in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
      • getIdentifier

        public org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier getIdentifier()
        Specified by:
        getIdentifier in interface org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>
      • cleanInstructions

        public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<CleanInstructionsOutput>> cleanInstructions​(CleanInstructionsInput input)
        Description copied from interface: ProgrammingService
        Invoke clean-instructions RPC.
             
                 Attempt to clean out a certain set of instructions. Instructions flushed this
                 way need to be in a terminal state, e.g. Successful, Failed or Cancelled.
                 Instructions which were not cleaned are reported in the output of this RPC.
             
         
        Specified by:
        cleanInstructions in interface ProgrammingService
        Parameters:
        input - of clean-instructions
        Returns:
        output of clean-instructions
      • scheduleInstruction

        public com.google.common.util.concurrent.ListenableFuture<Instruction> scheduleInstruction​(SubmitInstructionInput input)
                                                                                            throws SchedulerException
        Description copied from interface: InstructionScheduler
        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 the Instruction contract.
        Specified by:
        scheduleInstruction in interface InstructionScheduler
        Parameters:
        input - Instruction scheduling information
        Returns:
        Scheduling future.
        Throws:
        SchedulerException - if a failure to schedule the instruction occurs.
      • closeServiceInstance

        public com.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo> closeServiceInstance()
        Specified by:
        closeServiceInstance in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService