blob: d252e6a674eab0fbdc0be8bf5bdda9ed1d0d546e [file] [log] [blame]
Thomas Vachuska83e090e2014-10-22 14:25:35 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2014-present Open Networking Foundation
Thomas Vachuska83e090e2014-10-22 14:25:35 -07003 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07004 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
Thomas Vachuska83e090e2014-10-22 14:25:35 -07007 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07008 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
Thomas Vachuska83e090e2014-10-22 14:25:35 -070015 */
Ray Milkey7bf273c2017-09-27 16:15:15 -070016package org.onosproject.net.flow.oldbatch;
alshabib902d41b2014-10-07 16:52:05 -070017
Brian O'Connor72cb19a2015-01-16 16:14:41 -080018import org.onosproject.net.DeviceId;
Ray Milkey7bf273c2017-09-27 16:15:15 -070019import org.onosproject.net.flow.BatchOperation;
Brian O'Connor72cb19a2015-01-16 16:14:41 -080020
alshabib902d41b2014-10-07 16:52:05 -070021import java.util.Collection;
22
Ray Milkeyc4dd7262015-08-21 09:33:42 -070023@Deprecated
Brian O'Connor72cb19a2015-01-16 16:14:41 -080024/**
25 * Class used with the flow subsystem to process per device
26 * batches.
Ray Milkeyc4dd7262015-08-21 09:33:42 -070027 *
28 * @deprecated in Drake release - no longer a public API
Brian O'Connor72cb19a2015-01-16 16:14:41 -080029 */
alshabib902d41b2014-10-07 16:52:05 -070030public class FlowRuleBatchOperation
31 extends BatchOperation<FlowRuleBatchEntry> {
32
Brian O'Connor72cb19a2015-01-16 16:14:41 -080033 /**
34 * This id is used to cary to id of the original
35 * FlowOperations and track where this batch operation
36 * came from. The id is unique cluster wide.
37 */
38 private final long id;
39 private final DeviceId deviceId;
40
41 public FlowRuleBatchOperation(Collection<FlowRuleBatchEntry> operations,
42 DeviceId deviceId, long flowOperationId) {
alshabib902d41b2014-10-07 16:52:05 -070043 super(operations);
Brian O'Connor72cb19a2015-01-16 16:14:41 -080044 this.id = flowOperationId;
45 this.deviceId = deviceId;
46 }
47
48 public DeviceId deviceId() {
49 return this.deviceId;
50 }
51
52 public long id() {
53 return id;
alshabib902d41b2014-10-07 16:52:05 -070054 }
55}