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
Thomas Vachuska
2015-04-30 18:13:25 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
266b4433a55208f81036e1ac0cab99d6fd699d3c
266b4433
1 parent
f0e1faea
Fixed javadocs and descriptions.
Change-Id: I92147b858d8012c957cc03fab2d306740161e2f3
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
31 additions
and
4 deletions
apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/RoutingRulePopulator.java
docs/pom.xml
exp/api/src/main/java/org/onosproject/exp/net/config/Config.java
exp/api/src/main/java/org/onosproject/exp/net/config/NetworkConfigRegistry.java
exp/api/src/main/java/org/onosproject/exp/net/config/NetworkConfigService.java
providers/netconf/device/src/main/java/org/onosproject/provider/netconf/device/impl/NetconfDevice.java
providers/null/pom.xml
utils/jdvue/src/main/java/org/onlab/jdvue/Catalog.java
utils/jdvue/src/main/java/org/onlab/jdvue/JavaSource.java
apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/RoutingRulePopulator.java
View file @
266b443
...
...
@@ -74,6 +74,8 @@ public class RoutingRulePopulator {
/**
* Returns the number of rules populated.
*
* @return number of rules
*/
public
long
getCounter
()
{
return
rulePopulationCounter
.
get
();
...
...
docs/pom.xml
View file @
266b443
...
...
@@ -89,6 +89,12 @@
</packages>
</group>
<group>
<title>
NetConf Providers
</title>
<packages>
org.onosproject.provider.netconf:org.onosproject.provider.netconf*
</packages>
</group>
<group>
<title>
Null Providers
</title>
<packages>
org.onosproject.provider.nil:org.onosproject.provider.nil.*
...
...
exp/api/src/main/java/org/onosproject/exp/net/config/Config.java
View file @
266b443
...
...
@@ -45,9 +45,10 @@ public abstract class Config<S> {
/**
* Initializes the configuration behaviour with necessary context.
*
* @param subject configuration subject
* @param node JSON object node where configuration data is stored
* @param mapper JSON object mapper
* @param subject configuration subject
* @param node JSON object node where configuration data is stored
* @param mapper JSON object mapper
* @param delegate delegate context
*/
public
void
init
(
S
subject
,
ObjectNode
node
,
ObjectMapper
mapper
,
ConfigApplyDelegate
<
S
>
delegate
)
{
...
...
exp/api/src/main/java/org/onosproject/exp/net/config/NetworkConfigRegistry.java
View file @
266b443
...
...
@@ -41,6 +41,8 @@ public interface NetworkConfigRegistry {
* class of subject.
*
* @param subjectClass subject class
* @param <T> type of subject
* @return set of config factories
*/
<
T
>
Set
<
ConfigFactory
<
T
>>
getConfigFactories
(
Class
<
T
>
subjectClass
);
...
...
@@ -49,6 +51,9 @@ public interface NetworkConfigRegistry {
* subject type and key.
*
* @param subjectClass subject class
* @param configKey configuration key
* @param <T> type of subject
* @return config factory
*/
<
T
>
ConfigFactory
<
T
>
getConfigFactory
(
Class
<
T
>
subjectClass
,
String
configKey
);
...
...
@@ -57,6 +62,8 @@ public interface NetworkConfigRegistry {
* configuration class.
*
* @param configClass configuration class
* @param <T> type of subject
* @return config factory
*/
<
T
>
ConfigFactory
<
T
>
getConfigFactory
(
Class
<
Config
<
T
>>
configClass
);
...
...
exp/api/src/main/java/org/onosproject/exp/net/config/NetworkConfigService.java
View file @
266b443
...
...
@@ -28,6 +28,7 @@ public interface NetworkConfigService {
* Returns the set of subjects for which some configuration is available.
*
* @param subjectClass subject class
* @param <T> type of subject
* @return set of configured subjects
*/
<
T
>
Set
<
T
>
getSubjects
(
Class
<
T
>
subjectClass
);
...
...
@@ -38,6 +39,7 @@ public interface NetworkConfigService {
*
* @param subjectClass subject class
* @param configClass configuration class
* @param <T> type of subject
* @return set of configured subjects
*/
<
T
>
Set
<
T
>
getSubjects
(
Class
<
T
>
subjectClass
,
Class
<
Config
<
T
>>
configClass
);
...
...
@@ -47,6 +49,7 @@ public interface NetworkConfigService {
* Returns all configurations for the specified subject.
*
* @param subject configuration subject
* @param <T> type of subject
* @return set of configurations
*/
<
T
>
Set
<
Config
<
T
>>
getConfigs
(
T
subject
);
...
...
@@ -57,6 +60,7 @@ public interface NetworkConfigService {
*
* @param subject configuration subject
* @param configClass configuration class
* @param <T> type of subject
* @return configuration or null if one is not available
*/
<
T
>
Config
<
T
>
getConfig
(
T
subject
,
Class
<
Config
<
T
>>
configClass
);
...
...
providers/netconf/device/src/main/java/org/onosproject/provider/netconf/device/impl/NetconfDevice.java
View file @
266b443
...
...
@@ -90,7 +90,10 @@ public class NetconfDevice {
/**
* This will try to connect to NETCONF device and find all the capabilities.
*
* @throws Exception if unable to connect to the device
*/
// FIXME: this should not be a generic Exception; perhaps wrap in some RuntimeException
public
void
init
()
throws
Exception
{
try
{
if
(
sshConnection
==
null
)
{
...
...
providers/null/pom.xml
View file @
266b443
...
...
@@ -29,7 +29,7 @@
<artifactId>
onos-null-provider
</artifactId>
<packaging>
bundle
</packaging>
<description>
Null southbound providers
application
</description>
<description>
Null southbound providers
</description>
<properties>
<onos.app.name>
org.onosproject.null
</onos.app.name>
...
...
utils/jdvue/src/main/java/org/onlab/jdvue/Catalog.java
View file @
266b443
...
...
@@ -41,6 +41,7 @@ public class Catalog {
* Loads the catalog from the specified catalog file.
*
* @param catalogPath catalog file path
* @throws IOException if unable to read the catalog file
*/
public
void
load
(
String
catalogPath
)
throws
IOException
{
InputStream
is
=
new
FileInputStream
(
catalogPath
);
...
...
utils/jdvue/src/main/java/org/onlab/jdvue/JavaSource.java
View file @
266b443
...
...
@@ -22,6 +22,7 @@ public class JavaSource extends JavaEntity {
* Creates a new Java source entity.
*
* @param name java source file name
* @param path source file path
*/
JavaSource
(
String
name
,
String
path
)
{
super
(
name
);
...
...
@@ -50,6 +51,7 @@ public class JavaSource extends JavaEntity {
/**
* Returns the set of resolved imports for this Java source
*
* @return set of imports
*/
public
Set
<
JavaEntity
>
getImports
()
{
...
...
@@ -78,6 +80,7 @@ public class JavaSource extends JavaEntity {
/**
* Returns the set of imported, but unresolved, Java entity names.
*
* @return set of imported Java entity names
*/
Set
<
String
>
getImportNames
()
{
...
...
Please
register
or
login
to post a comment