Package org.onosproject.app
Class ApplicationIdStoreAdapter
- java.lang.Object
- 
- org.onosproject.app.ApplicationIdStoreAdapter
 
- 
- All Implemented Interfaces:
- ApplicationIdStore
 
 public class ApplicationIdStoreAdapter extends Object implements ApplicationIdStore Adapter for testing against app id store.
- 
- 
Constructor SummaryConstructors Constructor Description ApplicationIdStoreAdapter()
 - 
Method SummaryAll Methods Instance Methods Concrete 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- 
getAppIdspublic Set<ApplicationId> getAppIds() Description copied from interface:ApplicationIdStoreReturns the set of currently registered application identifiers.- Specified by:
- getAppIdsin interface- ApplicationIdStore
- Returns:
- set of application ids
 
 - 
getAppIdpublic ApplicationId getAppId(Short id) Description copied from interface:ApplicationIdStoreReturns an existing application id from a given id.- Specified by:
- getAppIdin interface- ApplicationIdStore
- Parameters:
- id- the short value of the id
- Returns:
- an application id; null if no such app registered
 
 - 
getAppIdpublic ApplicationId getAppId(String name) Description copied from interface:ApplicationIdStoreReturns registered application id from the given name.- Specified by:
- getAppIdin interface- ApplicationIdStore
- Parameters:
- name- application name
- Returns:
- an application id; null if no such app registered
 
 - 
registerApplicationpublic ApplicationId registerApplication(String identifier) Description copied from interface:ApplicationIdStoreRegisters a new application by its name, which is expected to follow the reverse DNS convention, e.g.org.flying.circus.app- Specified by:
- registerApplicationin interface- ApplicationIdStore
- Parameters:
- identifier- string identifier
- Returns:
- the application id
 
 
- 
 
-