Package org.onosproject.app
Interface ApplicationIdStore
-
- All Known Implementing Classes:
ApplicationIdStoreAdapter
public interface ApplicationIdStore
Manages application IDs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApplicationId
getAppId(java.lang.Short id)
Returns an existing application id from a given id.ApplicationId
getAppId(java.lang.String name)
Returns registered application id from the given name.java.util.Set<ApplicationId>
getAppIds()
Returns the set of currently registered application identifiers.ApplicationId
registerApplication(java.lang.String identifier)
Registers a new application by its name, which is expected to follow the reverse DNS convention, e.g.
-
-
-
Method Detail
-
getAppIds
java.util.Set<ApplicationId> getAppIds()
Returns the set of currently registered application identifiers.- Returns:
- set of application ids
-
getAppId
ApplicationId getAppId(java.lang.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(java.lang.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(java.lang.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
-
-