BUG-6650: ep-ip/sgt, move groupbasedpolicy-ise-adapter into sxp-integration
[groupbasedpolicy.git] / sxp-integration / groupbasedpolicy-ise-adapter / src / main / java / org / opendaylight / groupbasedpolicy / gbp_ise_adapter / impl / GbpIseSgtHarvester.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.ListenableFuture;
12 import javax.annotation.Nonnull;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.groupbasedpolicy.gbp.ise.adapter.model.rev160630.gbp.ise.adapter.IseHarvestConfig;
14
15 /**
16  * Purpose: read sgts and naming from ISE via rest-API and have apropriate templates generated and stored
17  */
18 public interface GbpIseSgtHarvester {
19
20     /**
21      * @param configuration user given
22      * @return amount of successfully written items
23      */
24     ListenableFuture<Integer> harvest(@Nonnull IseHarvestConfig configuration);
25 }