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 22:12:02 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
94bb4a4103cba463358676c6aed3562250c9d6e1
94bb4a41
1 parent
6488812d
Added onlab-misc module and renamed onos-util-* modules to onlab-*.
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
65 additions
and
14 deletions
features/features.xml
net/core/trivial/src/main/java/org/onlab/onos/event/impl/SimpleEventDispatcher.java
utils/misc/src/main/java/org/onlab/util/Foo.java
utils/osgi/pom.xml
utils/pom.xml
utils/rest/pom.xml
web/pom.xml
features/features.xml
View file @
94bb4a4
...
...
@@ -23,8 +23,9 @@
description=
"ONOS services and model API"
>
<feature>
scr
</feature>
<feature>
onos-thirdparty-base
</feature>
<bundle>
mvn:org.onlab.onos/onos-utils-osgi/1.0.0-SNAPSHOT
</bundle>
<bundle>
mvn:org.onlab.onos/onos-utils-rest/1.0.0-SNAPSHOT
</bundle>
<bundle>
mvn:org.onlab.onos/onlab-misc/1.0.0-SNAPSHOT
</bundle>
<bundle>
mvn:org.onlab.onos/onlab-osgi/1.0.0-SNAPSHOT
</bundle>
<bundle>
mvn:org.onlab.onos/onlab-rest/1.0.0-SNAPSHOT
</bundle>
<bundle>
mvn:org.onlab.onos/onos-api/1.0.0-SNAPSHOT
</bundle>
</feature>
...
...
net/core/trivial/src/main/java/org/onlab/onos/event/impl/SimpleEventDispatcher.java
0 → 100644
View file @
94bb4a4
package
org
.
onlab
.
onos
.
event
.
impl
;
import
org.apache.felix.scr.annotations.Component
;
import
org.apache.felix.scr.annotations.Service
;
import
org.onlab.onos.event.Event
;
import
org.onlab.onos.event.EventDispatchService
;
import
org.onlab.onos.event.EventSink
;
import
java.util.Set
;
import
java.util.concurrent.ExecutorService
;
import
java.util.concurrent.Executors
;
/**
* Simple implementation of an event dispatching service.
*/
@Component
(
immediate
=
true
)
@Service
public
class
SimpleEventDispatcher
implements
EventDispatchService
{
private
final
ExecutorService
executor
=
Executors
.
newSingleThreadExecutor
();
@Override
public
void
post
(
Event
event
)
{
}
@Override
public
<
E
extends
Event
>
void
addSink
(
Class
<
E
>
eventClass
,
EventSink
<
E
>
sink
)
{
}
@Override
public
<
E
extends
Event
>
void
removeSink
(
Class
<
E
>
eventClass
)
{
}
@Override
public
<
E
extends
Event
>
EventSink
<
E
>
getSink
(
Class
<
E
>
eventClass
)
{
return
null
;
}
@Override
public
Set
<
Class
<?
extends
Event
>>
getSinks
()
{
return
null
;
}
}
utils/misc/src/main/java/org/onlab/util/Foo.java
0 → 100644
View file @
94bb4a4
package
org
.
onlab
.
util
;
public
class
Foo
{
}
utils/osgi/pom.xml
View file @
94bb4a4
...
...
@@ -6,15 +6,15 @@
<parent>
<groupId>
org.onlab.onos
</groupId>
<artifactId>
on
os
-utils
</artifactId>
<artifactId>
on
lab
-utils
</artifactId>
<version>
1.0.0-SNAPSHOT
</version>
<relativePath>
../pom.xml
</relativePath>
</parent>
<artifactId>
on
os-utils
-osgi
</artifactId>
<artifactId>
on
lab
-osgi
</artifactId>
<packaging>
bundle
</packaging>
<description>
OSGI utilities
</description>
<description>
O
N.Lab O
SGI utilities
</description>
<dependencies>
<dependency>
...
...
utils/pom.xml
View file @
94bb4a4
...
...
@@ -11,12 +11,13 @@
<relativePath>
../pom.xml
</relativePath>
</parent>
<artifactId>
on
os
-utils
</artifactId>
<artifactId>
on
lab
-utils
</artifactId>
<packaging>
pom
</packaging>
<description>
Domain agnostic utilities
</description>
<description>
Domain agnostic
ON.Lab
utilities
</description>
<modules>
<module>
misc
</module>
<module>
osgi
</module>
<module>
rest
</module>
</modules>
...
...
@@ -28,7 +29,6 @@
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
...
...
utils/rest/pom.xml
View file @
94bb4a4
...
...
@@ -6,15 +6,15 @@
<parent>
<groupId>
org.onlab.onos
</groupId>
<artifactId>
on
os
-utils
</artifactId>
<artifactId>
on
lab
-utils
</artifactId>
<version>
1.0.0-SNAPSHOT
</version>
<relativePath>
../pom.xml
</relativePath>
</parent>
<artifactId>
on
os-utils
-rest
</artifactId>
<artifactId>
on
lab
-rest
</artifactId>
<packaging>
bundle
</packaging>
<description>
JAX-RS utilities
</description>
<description>
ON.Lab
JAX-RS utilities
</description>
<dependencies>
<dependency>
...
...
@@ -36,7 +36,7 @@
<dependency>
<groupId>
org.onlab.onos
</groupId>
<artifactId>
on
os-utils
-osgi
</artifactId>
<artifactId>
on
lab
-osgi
</artifactId>
<version>
${project.version}
</version>
</dependency>
</dependencies>
...
...
web/pom.xml
View file @
94bb4a4
...
...
@@ -33,13 +33,13 @@
<dependency>
<groupId>
org.onlab.onos
</groupId>
<artifactId>
on
os-utils
-osgi
</artifactId>
<artifactId>
on
lab
-osgi
</artifactId>
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
org.onlab.onos
</groupId>
<artifactId>
on
os-utils
-rest
</artifactId>
<artifactId>
on
lab
-rest
</artifactId>
<version>
${project.version}
</version>
</dependency>
...
...
Please
register
or
login
to post a comment