Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
tom
2014-10-01 21:30:17 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
db6c3f8cee79dc20ab9859d3e09bc0bca8a0a93a
db6c3f8c
1 parent
27ae0e60
Adding javadocs for ProviderId changes.
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
core/api/src/main/java/org/onlab/onos/net/provider/ProviderId.java
core/api/src/main/java/org/onlab/onos/net/provider/ProviderId.java
View file @
db6c3f8
...
...
@@ -5,7 +5,17 @@ import java.util.Objects;
import
static
com
.
google
.
common
.
base
.
MoreObjects
.
toStringHelper
;
/**
* Notion of provider identity.
* External identity of a {@link org.onlab.onos.net.provider.Provider} family.
* It also carriers two designations of external characteristics, the URI
* scheme and primary/ancillary indicator.
* <p/>
* The device URI scheme is used to determine applicability of a provider to
* operations on a specific device. The ancillary indicator serves to designate
* a provider as a primary or ancillary.
*
* A {@link org.onlab.onos.net.provider.ProviderRegistry} uses this designation
* to permit only one primary provider per device URI scheme. Multiple
* ancillary providers can register with the same device URI scheme however.
*/
public
class
ProviderId
{
...
...
@@ -14,7 +24,7 @@ public class ProviderId {
private
final
boolean
ancillary
;
/**
* Creates a new provider identifier from the specified string.
* Creates a new pr
imary pr
ovider identifier from the specified string.
* The providers are expected to follow the reverse DNS convention, e.g.
* {@code org.onlab.onos.provider.of.device}
*
...
...
@@ -50,21 +60,21 @@ public class ProviderId {
}
/**
*
Indicates whether the provider id belongs to an ancillary provider
.
*
Returns the device URI scheme specific id portion
.
*
* @return
true for ancillary; false for primary provider
* @return
id
*/
public
boolean
isAncillary
()
{
return
ancillary
;
public
String
id
()
{
return
id
;
}
/**
*
Returns the device URI scheme specific id portion
.
*
Indicates whether this identifier designates an ancillary providers
.
*
* @return
id
* @return
true if the provider is ancillary; false if primary
*/
public
String
id
()
{
return
id
;
public
boolean
isAncillary
()
{
return
ancillary
;
}
@Override
...
...
Please
register
or
login
to post a comment