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-08-27 18:10:33 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5ac5188d08c6748eec86e087bb0919db2c3c7e6b
5ac5188d
1 parent
db0d03fe
Moved the samples to a separate package.
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
14 additions
and
15 deletions
cli/src/main/java/org/onlab/onos/cli/GreetCommand.java
cli/src/main/java/org/onlab/onos/cli/NameCompleter.java
net/api/src/main/java/org/onlab/onos/net/GreetService.java → net/api/src/main/java/org/onlab/onos/GreetService.java
net/core/trivial/src/main/java/org/onlab/onos/net/trivial/impl/GreetManager.java → net/core/trivial/src/main/java/org/onlab/onos/impl/GreetManager.java
net/core/trivial/src/main/java/org/onlab/onos/net/trivial/impl/SomeOtherComponent.java → net/core/trivial/src/main/java/org/onlab/onos/impl/SomeOtherComponent.java
net/core/trivial/src/test/java/org/onlab/onos/net/trivial/impl/GreetManagerTest.java → net/core/trivial/src/test/java/org/onlab/onos/impl/GreetManagerTest.java
web/api/src/main/java/org/onlab/onos/rest/GreetResource.java
web/api/src/test/java/org/onlab/onos/rest/GreetResourceTest.java
web/gui/src/main/java/org/onlab/onos/gui/GreetResource.java
web/pom.xml
cli/src/main/java/org/onlab/onos/cli/GreetCommand.java
View file @
5ac5188
...
...
@@ -3,7 +3,7 @@ package org.onlab.onos.cli;
import
org.apache.karaf.shell.commands.Argument
;
import
org.apache.karaf.shell.commands.Command
;
import
org.apache.karaf.shell.console.OsgiCommandSupport
;
import
org.onlab.onos.
net.
GreetService
;
import
org.onlab.onos.GreetService
;
/**
* Simple command example to demonstrate use of Karaf shell extensions; shows
...
...
cli/src/main/java/org/onlab/onos/cli/NameCompleter.java
View file @
5ac5188
...
...
@@ -2,7 +2,7 @@ package org.onlab.onos.cli;
import
org.apache.karaf.shell.console.Completer
;
import
org.apache.karaf.shell.console.completer.StringsCompleter
;
import
org.onlab.onos.
net.
GreetService
;
import
org.onlab.onos.GreetService
;
import
java.util.Iterator
;
import
java.util.List
;
...
...
net/api/src/main/java/org/onlab/onos/
net/
GreetService.java
→
net/api/src/main/java/org/onlab/onos/GreetService.java
View file @
5ac5188
package
org
.
onlab
.
onos
.
net
;
package
org
.
onlab
.
onos
;
/**
* Example of a simple service that provides greetings and it
...
...
net/core/trivial/src/main/java/org/onlab/onos/
net/trivial/
impl/GreetManager.java
→
net/core/trivial/src/main/java/org/onlab/onos/impl/GreetManager.java
View file @
5ac5188
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
impl
;
import
com.google.common.collect.ImmutableSet
;
import
org.apache.felix.scr.annotations.Activate
;
import
org.apache.felix.scr.annotations.Component
;
import
org.apache.felix.scr.annotations.Deactivate
;
import
org.apache.felix.scr.annotations.Service
;
import
org.onlab.onos.
net.
GreetService
;
import
org.onlab.onos.GreetService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
net/core/trivial/src/main/java/org/onlab/onos/
net/trivial/
impl/SomeOtherComponent.java
→
net/core/trivial/src/main/java/org/onlab/onos/impl/SomeOtherComponent.java
View file @
5ac5188
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
impl
;
import
org.apache.felix.scr.annotations.Activate
;
import
org.apache.felix.scr.annotations.Component
;
import
org.apache.felix.scr.annotations.Deactivate
;
import
org.apache.felix.scr.annotations.Reference
;
import
org.apache.felix.scr.annotations.ReferenceCardinality
;
import
org.onlab.onos.
net.
GreetService
;
import
org.onlab.onos.GreetService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
net/core/trivial/src/test/java/org/onlab/onos/
net/trivial/
impl/GreetManagerTest.java
→
net/core/trivial/src/test/java/org/onlab/onos/impl/GreetManagerTest.java
View file @
5ac5188
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
impl
;
import
org.junit.Test
;
import
org.onlab.onos.
net.
GreetService
;
import
org.onlab.onos.GreetService
;
import
java.util.Iterator
;
...
...
web/api/src/main/java/org/onlab/onos/rest/GreetResource.java
View file @
5ac5188
...
...
@@ -2,7 +2,7 @@ package org.onlab.onos.rest;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.node.ObjectNode
;
import
org.onlab.onos.
net.
GreetService
;
import
org.onlab.onos.GreetService
;
import
org.onlab.rest.BaseResource
;
import
javax.ws.rs.DefaultValue
;
...
...
web/api/src/test/java/org/onlab/onos/rest/GreetResourceTest.java
View file @
5ac5188
...
...
@@ -4,8 +4,8 @@ import com.sun.jersey.api.client.WebResource;
import
com.sun.jersey.test.framework.JerseyTest
;
import
org.junit.BeforeClass
;
import
org.junit.Test
;
import
org.onlab.onos.
net.
GreetService
;
import
org.onlab.onos.
net.trivial.
impl.GreetManager
;
import
org.onlab.onos.GreetService
;
import
org.onlab.onos.impl.GreetManager
;
import
org.onlab.osgi.ServiceDirectory
;
import
org.onlab.osgi.TestServiceDirectory
;
...
...
web/gui/src/main/java/org/onlab/onos/gui/GreetResource.java
View file @
5ac5188
package
org
.
onlab
.
onos
.
gui
;
import
org.onlab.onos.
net.
GreetService
;
import
org.onlab.onos.GreetService
;
import
org.onlab.rest.BaseResource
;
import
javax.ws.rs.DefaultValue
;
...
...
web/pom.xml
View file @
5ac5188
...
...
@@ -100,9 +100,8 @@
com.sun.jersey.server.impl.container.servlet,
com.fasterxml.jackson.databind,
com.fasterxml.jackson.databind.node,
org.onlab.osgi.*,
org.onlab.rest.*,
org.onlab.onos.
net.
*
org.onlab.onos.*
</Import-Package>
<Web-ContextPath>
${web.context}
</Web-ContextPath>
</instructions>
...
...
Please
register
or
login
to post a comment