gbp-ise-adapter proposal
[groupbasedpolicy.git] / groupbasedpolicy-ise-adapter / src / main / java / org / opendaylight / groupbasedpolicy / gbp_ise_adapter / impl / SgtInfoProcessor.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.groupbasedpolicy.gbp_ise_adapter.impl;
10
11 import com.google.common.util.concurrent.CheckedFuture;
12 import java.util.List;
13 import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.common.rev140421.TenantId;
15
16 /**
17  * Purpose: process given sgt+name
18  */
19 public interface SgtInfoProcessor {
20
21     /**
22      * @param tenant   shared by all processed epgs
23      * @param sgtInfos list of sgts to process
24      * @return outcome of dataStore write operation
25      */
26     CheckedFuture<Void, TransactionCommitFailedException> processSgtInfo(final TenantId tenant, List<SgtInfo> sgtInfos);
27 }