Merge "Bug 6088 - Threads problem on gathering statistics"
[openflowplugin.git] / applications / forwardingrules-sync / src / main / java / org / opendaylight / openflowplugin / applications / frsync / util / ZipQueueEntry.java
1 /**
2  * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.openflowplugin.applications.frsync.util;
10
11 import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNode;
13
14 /**
15  * Simple compression queue entry for {@link org.opendaylight.openflowplugin.applications.frsync.impl.SyncReactorFutureZipDecorator}.
16  */
17 public class ZipQueueEntry {
18     private FlowCapableNode after;
19     private FlowCapableNode before;
20     private LogicalDatastoreType dsTypeBefore;
21
22     public ZipQueueEntry(final FlowCapableNode after, final FlowCapableNode before, final LogicalDatastoreType dsTypeBefore) {
23         this.after = after;
24         this.before = before;
25         this.dsTypeBefore = dsTypeBefore;
26
27     }
28
29     public FlowCapableNode getLeft() {
30         return after;
31     }
32
33     public FlowCapableNode getRight() {
34         return before;
35     }
36
37     public LogicalDatastoreType getDsType() {
38         return dsTypeBefore;
39     }
40
41 }