Package org.onosproject.core
Interface Application
-
- All Known Implementing Classes:
DefaultApplication
public interface ApplicationAbstraction of a network control/management application.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringcategory()Returns category of the application.java.lang.Stringdescription()Returns description of the application.java.util.List<java.lang.String>features()Returns the list of features comprising the application.java.util.Optional<java.net.URI>featuresRepo()Returns the feature repository URI.byte[]icon()Returns icon of the application.ApplicationIdid()Returns the application name id.java.net.URLimageUrl()Returns binary image URL.java.lang.Stringorigin()Returns the name of the application origin, group or company.java.util.Set<Permission>permissions()Returns the permissions requested by the application.java.lang.Stringreadme()Returns readme of the application.java.util.List<java.lang.String>requiredApps()Returns list of required application names.ApplicationRolerole()Returns the role of the application.java.lang.Stringtitle()Returns the title of the application.java.lang.Stringurl()Returns url of the application.Versionversion()Returns the application version.
-
-
-
Method Detail
-
id
ApplicationId id()
Returns the application name id.- Returns:
- application identifier
-
version
Version version()
Returns the application version.- Returns:
- application version
-
title
java.lang.String title()
Returns the title of the application. This should be a short, human-readable string, as opposed to the unique identifier returned byid().- Returns:
- application title text
-
description
java.lang.String description()
Returns description of the application.- Returns:
- application description text
-
category
java.lang.String category()
Returns category of the application. The application developer can choose one of the category from the following examples to easily discern the high-level purpose of the application. (Security, Traffic Steering, Monitoring, Drivers, Provider, Utility)- Returns:
- application category text
-
url
java.lang.String url()
Returns url of the application.- Returns:
- application url
-
readme
java.lang.String readme()
Returns readme of the application.- Returns:
- application readme
-
icon
byte[] icon()
Returns icon of the application.- Returns:
- application icon
-
origin
java.lang.String origin()
Returns the name of the application origin, group or company.- Returns:
- application origin
-
role
ApplicationRole role()
Returns the role of the application.- Returns:
- application role
-
permissions
java.util.Set<Permission> permissions()
Returns the permissions requested by the application.- Returns:
- requested permissions
-
featuresRepo
java.util.Optional<java.net.URI> featuresRepo()
Returns the feature repository URI. Null value signifies that the application did not provide its own features repository.- Returns:
- optional feature repo URL
-
features
java.util.List<java.lang.String> features()
Returns the list of features comprising the application. At least one feature must be given.- Returns:
- application features
-
requiredApps
java.util.List<java.lang.String> requiredApps()
Returns list of required application names.- Returns:
- list of application names
-
imageUrl
java.net.URL imageUrl()
Returns binary image URL.- Returns:
- URL of binary image
-
-