/** * Issue an remove-flow RPC request. * * @param w The node RPC watcher. * @param sfs MD-SAL flow service. * @param in The RPC input. */ public RemoveFlowRpc(NodeRpcWatcher w, SalFlowService sfs, RemoveFlowInput in) { super(w, in, in.getNode(), sfs.removeFlow(in), false); }
@Override public FlowUpdated compose(TransactionId tXid) { FlowUpdatedBuilder updFlow = new FlowUpdatedBuilder(input.getUpdatedFlow()); updFlow.setTransactionId(tXid); updFlow.setFlowRef(input.getFlowRef()); return updFlow.build(); } };
@Override public FlowAdded compose(TransactionId tXid) { FlowAddedBuilder newFlow = new FlowAddedBuilder((Flow) input); newFlow.setTransactionId(tXid); newFlow.setFlowRef(input.getFlowRef()); return newFlow.build(); } };
/** * Issue an add-flow RPC request. * * @param w The node RPC watcher. * @param sfs MD-SAL flow service. * @param in The RPC input. * @param discon Determine whether an error caused by disconnection of * OpenFlow secure channel should be logged or not. */ public AddFlowRpc(NodeRpcWatcher w, SalFlowService sfs, AddFlowInput in, boolean discon) { super(w, in, in.getNode(), sfs.addFlow(in), discon); }
@Override public FlowRemoved compose(TransactionId tXid) { FlowRemovedBuilder removedFlow = new FlowRemovedBuilder((Flow) input); removedFlow.setTransactionId(tXid); removedFlow.setFlowRef(input.getFlowRef()); return removedFlow.build(); } };
public SwitchFlowRemovedBuilder setDurationNsec(final java.lang.Long value) { if (value != null) { checkDurationNsecRange(value); } this._durationNsec = value; return this; }
public SwitchFlowRemovedBuilder setHardTimeout(final java.lang.Integer value) { if (value != null) { checkHardTimeoutRange(value); } this._hardTimeout = value; return this; }
public SwitchFlowRemovedBuilder setTableId(final java.lang.Short value) { if (value != null) { checkTableIdRange(value); } this._tableId = value; return this; }
public FlowAddedBuilder setPriority(final java.lang.Integer value) { if (value != null) { checkPriorityRange(value); } this._priority = value; return this; }
public NodeErrorNotificationBuilder setCode(final java.lang.Integer value) { if (value != null) { checkCodeRange(value); } this._code = value; return this; }
public RemoveFlowInputBuilder setIdleTimeout(final java.lang.Integer value) { if (value != null) { checkIdleTimeoutRange(value); } this._idleTimeout = value; return this; }
public RemoveFlowInputBuilder setPriority(final java.lang.Integer value) { if (value != null) { checkPriorityRange(value); } this._priority = value; return this; }
public AddFlowInputBuilder setHardTimeout(final java.lang.Integer value) { if (value != null) { checkHardTimeoutRange(value); } this._hardTimeout = value; return this; }
public AddFlowInputBuilder setOutPort(final BigInteger value) { if (value != null) { checkOutPortRange(value); } this._outPort = value; return this; }
public AddFlowInputBuilder setTableId(final java.lang.Short value) { if (value != null) { checkTableIdRange(value); } this._tableId = value; return this; }
public FlowRemovedBuilder setOutGroup(final java.lang.Long value) { if (value != null) { checkOutGroupRange(value); } this._outGroup = value; return this; }
public FlowAddedBuilder setBufferId(final java.lang.Long value) { if (value != null) { checkBufferIdRange(value); } this._bufferId = value; return this; }
public AddFlowInputBuilder setIdleTimeout(final java.lang.Integer value) { if (value != null) { checkIdleTimeoutRange(value); } this._idleTimeout = value; return this; }
public FlowRemovedBuilder setIdleTimeout(final java.lang.Integer value) { if (value != null) { checkIdleTimeoutRange(value); } this._idleTimeout = value; return this; }
public FlowRemovedBuilder setPriority(final java.lang.Integer value) { if (value != null) { checkPriorityRange(value); } this._priority = value; return this; }