blob: 3302888a7f352b39c260e4703e3e7ce0ff6c7a2a [file] [log] [blame]
tom53efab52014-10-07 17:43:48 -07001package org.onlab.onos;
2
3/**
4 * Service for interacting with the core system of the controller.
5 */
6public interface CoreService {
7
8 /**
9 * Returns the product version.
10 *
11 * @return product version
12 */
13 Version version();
14
alshabib92c65ad2014-10-08 21:56:05 -070015 /**
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
tom53efab52014-10-07 17:43:48 -070032}