blob: c862756ac0c4128334bc401ca7844f9b80715a13 [file] [log] [blame]
Andrew Brownfe6c21c2016-08-24 16:28:54 -07001/*
2 * jndn-mock
3 * Copyright (c) 2016, Intel Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU Lesser General Public License,
7 * version 3, as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope it will be useful, but WITHOUT ANY
10 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
12 * more details.
13 */
14
Andrew Brown3647d1d2016-08-24 16:23:43 -070015package com.intel.jndn.mock;
16
17import net.named_data.jndn.Data;
18import net.named_data.jndn.Interest;
19
20import java.util.Collection;
21
22/**
Andrew Brown4b288652016-08-25 09:38:57 -070023 * Provide API for measuring packet use on a given face
24 *
Andrew Brown3647d1d2016-08-24 16:23:43 -070025 * @author Andrew Brown, andrew.brown@intel.com
26 */
27public interface MeasurableFace {
Andrew Brown4b288652016-08-25 09:38:57 -070028 /**
29 * @return all interest packets sent by the measured face
30 */
Andrew Brown3647d1d2016-08-24 16:23:43 -070031 Collection<Interest> sentInterests();
Andrew Brown4b288652016-08-25 09:38:57 -070032
33 /**
34 * @return all data packets sent by the measured face
35 */
Andrew Brown3647d1d2016-08-24 16:23:43 -070036 Collection<Data> sentDatas();
Andrew Brown4b288652016-08-25 09:38:57 -070037
38 /**
39 * @return all interest packets received by the measured face
40 */
Andrew Brown3647d1d2016-08-24 16:23:43 -070041 Collection<Interest> receivedInterests();
Andrew Brown4b288652016-08-25 09:38:57 -070042
43 /**
44 * @return all data packets received by the measured face
45 */
Andrew Brown3647d1d2016-08-24 16:23:43 -070046 Collection<Data> receivedDatas();
47}