tom | 53efab5 | 2014-10-07 17:43:48 -0700 | [diff] [blame] | 1 | package org.onlab.onos; |
| 2 | |
| 3 | /** |
| 4 | * Service for interacting with the core system of the controller. |
| 5 | */ |
| 6 | public interface CoreService { |
| 7 | |
| 8 | /** |
| 9 | * Returns the product version. |
| 10 | * |
| 11 | * @return product version |
| 12 | */ |
| 13 | Version version(); |
| 14 | |
alshabib | 92c65ad | 2014-10-08 21:56:05 -0700 | [diff] [blame] | 15 | /** |
| 16 | * Registers a new application by its name, which is expected |
| 17 | * to follow the reverse DNS convention, e.g. |
| 18 | * {@code org.flying.circus.app} |
| 19 | * |
| 20 | * @param identifier string identifier |
| 21 | * @return the application id |
| 22 | */ |
| 23 | ApplicationId registerApplication(String identifier); |
| 24 | |
| 25 | /** |
| 26 | * Returns an existing application id from a given id. |
| 27 | * @param id the short value of the id |
| 28 | * @return an application id |
| 29 | */ |
| 30 | ApplicationId getAppId(Short id); |
| 31 | |
tom | 53efab5 | 2014-10-07 17:43:48 -0700 | [diff] [blame] | 32 | } |