tom | 5ac5188 | 2014-08-27 18:10:33 -0700 | [diff] [blame] | 1 | package org.onlab.onos; |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 2 | |
| 3 | /** |
| 4 | * Example of a simple service that provides greetings and it |
| 5 | * remembers the names which were greeted. |
| 6 | */ |
| 7 | public interface GreetService { |
| 8 | |
| 9 | /** |
| 10 | * Returns a greeting tailored to the specified name. |
| 11 | * |
| 12 | * @param name some name |
| 13 | * @return greeting |
| 14 | */ |
| 15 | String yo(String name); |
| 16 | |
| 17 | /** |
| 18 | * Returns an iterable of names encountered thus far. |
| 19 | * |
| 20 | * @return iterable of names |
| 21 | */ |
| 22 | Iterable<String> names(); |
| 23 | } |