use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.topology.pcep.programming.rev181109.SubmitTriggerSyncOutput in project bgpcep by opendaylight.
the class TopologyProgramming method submitTriggerSync.
@Override
public ListenableFuture<RpcResult<SubmitTriggerSyncOutput>> submitTriggerSync(final SubmitTriggerSyncInput input) {
Preconditions.checkArgument(input.getNode() != null);
final SubmitTriggerSyncOutputBuilder b = new SubmitTriggerSyncOutputBuilder();
b.setResult(AbstractInstructionExecutor.schedule(this.scheduler, new AbstractInstructionExecutor(input) {
@Override
protected ListenableFuture<OperationResult> invokeOperation() {
return TopologyProgramming.this.manager.triggerSync(input);
}
}));
final RpcResult<SubmitTriggerSyncOutput> res = SuccessfulRpcResult.create(b.build());
return Futures.immediateFuture(res);
}
Aggregations