ed023d601454652500d5db2cf0fc33bf01ff5249
[groupbasedpolicy.git] / groupbasedpolicy / src / main / java / org / opendaylight / groupbasedpolicy / api / StatisticsManager.java
1 /*
2  * Copyright (c) 2015 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.api;
10
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.statistics.rev151215.statistic.records.StatRecords;
12
13 public interface StatisticsManager {
14
15     /**
16      * Write Record into the datastore
17      * @param record record to write to datastore
18      * @return wheater the write operation was successfull or not
19      */
20     boolean writeStat(StatRecords record);
21
22     /**
23      * Returns all records stored in datastore
24      * @return all records from datastore
25      */
26     StatRecords readStats();
27 }