Package org.onosproject.app
Interface ApplicationIdStore
-
- All Known Implementing Classes:
ApplicationIdStoreAdapter
public interface ApplicationIdStoreManages application IDs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApplicationIdgetAppId(Short id)Returns an existing application id from a given id.ApplicationIdgetAppId(String name)Returns registered application id from the given name.Set<ApplicationId>getAppIds()Returns the set of currently registered application identifiers.ApplicationIdregisterApplication(String identifier)Registers a new application by its name, which is expected to follow the reverse DNS convention, e.g.
-
-
-
Method Detail
-
getAppIds
Set<ApplicationId> getAppIds()
Returns the set of currently registered application identifiers.- Returns:
- set of application ids
-
getAppId
ApplicationId getAppId(Short id)
Returns an existing application id from a given id.- Parameters:
id- the short value of the id- Returns:
- an application id; null if no such app registered
-
getAppId
ApplicationId getAppId(String name)
Returns registered application id from the given name.- Parameters:
name- application name- Returns:
- an application id; null if no such app registered
-
registerApplication
ApplicationId registerApplication(String identifier)
Registers a new application by its name, which is expected to follow the reverse DNS convention, e.g.org.flying.circus.app- Parameters:
identifier- string identifier- Returns:
- the application id
-
-