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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Application
getApplication(ApplicationId appId)
Returns the application with the supplied application identifier.default java.io.InputStream
getApplicationArchive(ApplicationId appId)
Returns stream that contains the application OAR/JAR file contents.java.util.Set<Application>
getApplications()
Returns the set of all installed applications.ApplicationId
getId(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.ApplicationState
getState(ApplicationId appId)
Return the application state.void
registerDeactivateHook(ApplicationId appId, java.lang.Runnable hook)
Registers application pre-deactivation processing hook.-
Methods inherited from interface org.onosproject.event.ListenerService
addListener, removeListener
-
-
-
-
Method Detail
-
getApplications
java.util.Set<Application> getApplications()
Returns the set of all installed applications.- Returns:
- set of installed apps
-
getId
ApplicationId getId(java.lang.String name)
Returns the registered id of the application with the given name.- Parameters:
name
- application name- Returns:
- registered application id
-
getApplication
Application getApplication(ApplicationId appId)
Returns the application with the supplied application identifier.- Parameters:
appId
- application identifier- Returns:
- application descriptor
-
getState
ApplicationState getState(ApplicationId appId)
Return the application state.- Parameters:
appId
- application identifier- Returns:
- application state
-
getPermissions
java.util.Set<Permission> getPermissions(ApplicationId appId)
Returns the permissions currently granted to the applications.- Parameters:
appId
- application identifier- Returns:
- set of granted permissions
-
registerDeactivateHook
void registerDeactivateHook(ApplicationId appId, java.lang.Runnable hook)
Registers application pre-deactivation processing hook.- Parameters:
appId
- application identifierhook
- pre-deactivation hook
-
getApplicationArchive
default 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
-
getRegisteredApplications
default java.util.Set<Application> getRegisteredApplications()
Returns the set of all installed applications.- Returns:
- set of apps putside the build/core environment
-
-