BGPCEP-580: Implement PCEP stats DS rendering
[bgpcep.git] / bmp / bmp-impl / src / main / java / org / opendaylight / protocol / bmp / impl / api / BmpDeployer.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies s.r.o. 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 package org.opendaylight.protocol.bmp.impl.api;
9
10 import com.google.common.annotations.Beta;
11 import javax.annotation.Nonnull;
12 import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.monitor.config.rev170517.odl.bmp.monitors.BmpMonitorConfig;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bmp.monitor.rev150512.MonitorId;
15
16 @Beta
17 public interface BmpDeployer {
18     /**
19      * Writes BmpMonitorConfig to Config DS
20      *
21      * @param bmpConfig containing bmp Monitor configuration
22      */
23     void writeBmpMonitor(@Nonnull BmpMonitorConfig bmpConfig) throws TransactionCommitFailedException;
24
25     /**
26      * Removes BmpMonitorConfig from Config DS
27      *
28      * @param monitorId Bmp monitor Id
29      */
30     void deleteBmpMonitor(@Nonnull MonitorId monitorId) throws TransactionCommitFailedException;
31 }