Andrew Brown | fe6c21c | 2016-08-24 16:28:54 -0700 | [diff] [blame] | 1 | /* |
| 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 Brown | 3647d1d | 2016-08-24 16:23:43 -0700 | [diff] [blame] | 15 | package com.intel.jndn.mock; |
| 16 | |
| 17 | import net.named_data.jndn.Data; |
| 18 | import net.named_data.jndn.Interest; |
| 19 | |
| 20 | import java.util.Collection; |
| 21 | |
| 22 | /** |
Andrew Brown | 4b28865 | 2016-08-25 09:38:57 -0700 | [diff] [blame] | 23 | * Provide API for measuring packet use on a given face |
| 24 | * |
Andrew Brown | 3647d1d | 2016-08-24 16:23:43 -0700 | [diff] [blame] | 25 | * @author Andrew Brown, andrew.brown@intel.com |
| 26 | */ |
| 27 | public interface MeasurableFace { |
Andrew Brown | 4b28865 | 2016-08-25 09:38:57 -0700 | [diff] [blame] | 28 | /** |
| 29 | * @return all interest packets sent by the measured face |
| 30 | */ |
Andrew Brown | 3647d1d | 2016-08-24 16:23:43 -0700 | [diff] [blame] | 31 | Collection<Interest> sentInterests(); |
Andrew Brown | 4b28865 | 2016-08-25 09:38:57 -0700 | [diff] [blame] | 32 | |
| 33 | /** |
| 34 | * @return all data packets sent by the measured face |
| 35 | */ |
Andrew Brown | 3647d1d | 2016-08-24 16:23:43 -0700 | [diff] [blame] | 36 | Collection<Data> sentDatas(); |
Andrew Brown | 4b28865 | 2016-08-25 09:38:57 -0700 | [diff] [blame] | 37 | |
| 38 | /** |
| 39 | * @return all interest packets received by the measured face |
| 40 | */ |
Andrew Brown | 3647d1d | 2016-08-24 16:23:43 -0700 | [diff] [blame] | 41 | Collection<Interest> receivedInterests(); |
Andrew Brown | 4b28865 | 2016-08-25 09:38:57 -0700 | [diff] [blame] | 42 | |
| 43 | /** |
| 44 | * @return all data packets received by the measured face |
| 45 | */ |
Andrew Brown | 3647d1d | 2016-08-24 16:23:43 -0700 | [diff] [blame] | 46 | Collection<Data> receivedDatas(); |
| 47 | } |