Package org.onosproject.app
Interface ApplicationService
- 
- All Superinterfaces:
- ListenerService<ApplicationEvent,ApplicationListener>
 - All Known Subinterfaces:
- ApplicationAdminService
 
 public interface ApplicationService extends ListenerService<ApplicationEvent,ApplicationListener> Service for inspecting inventory of network control applications.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ApplicationgetApplication(ApplicationId appId)Returns the application with the supplied application identifier.default java.io.InputStreamgetApplicationArchive(ApplicationId appId)Returns stream that contains the application OAR/JAR file contents.java.util.Set<Application>getApplications()Returns the set of all installed applications.ApplicationIdgetId(java.lang.String name)Returns the registered id of the application with the given name.java.util.Set<Permission>getPermissions(ApplicationId appId)Returns the permissions currently granted to the applications.default java.util.Set<Application>getRegisteredApplications()Returns the set of all installed applications.ApplicationStategetState(ApplicationId appId)Return the application state.voidregisterDeactivateHook(ApplicationId appId, java.lang.Runnable hook)Registers application pre-deactivation processing hook.- 
Methods inherited from interface org.onosproject.event.ListenerServiceaddListener, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
getApplicationsjava.util.Set<Application> getApplications() Returns the set of all installed applications.- Returns:
- set of installed apps
 
 - 
getIdApplicationId getId(java.lang.String name) Returns the registered id of the application with the given name.- Parameters:
- name- application name
- Returns:
- registered application id
 
 - 
getApplicationApplication getApplication(ApplicationId appId) Returns the application with the supplied application identifier.- Parameters:
- appId- application identifier
- Returns:
- application descriptor
 
 - 
getStateApplicationState getState(ApplicationId appId) Return the application state.- Parameters:
- appId- application identifier
- Returns:
- application state
 
 - 
getPermissionsjava.util.Set<Permission> getPermissions(ApplicationId appId) Returns the permissions currently granted to the applications.- Parameters:
- appId- application identifier
- Returns:
- set of granted permissions
 
 - 
registerDeactivateHookvoid registerDeactivateHook(ApplicationId appId, java.lang.Runnable hook) Registers application pre-deactivation processing hook.- Parameters:
- appId- application identifier
- hook- pre-deactivation hook
 
 - 
getApplicationArchivedefault java.io.InputStream getApplicationArchive(ApplicationId appId) Returns stream that contains the application OAR/JAR file contents.- Parameters:
- appId- application identifier
- Returns:
- input stream containing the app OAR/JAR file
 
 - 
getRegisteredApplicationsdefault java.util.Set<Application> getRegisteredApplications() Returns the set of all installed applications.- Returns:
- set of apps putside the build/core environment
 
 
- 
 
-