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-09-11 11:12:51 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
578ebdca2e3c1fca191b8effcaa8b61c94ac1912
578ebdca
1 parent
e615ee42
Moved host core stuff to its own package.
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
8 deletions
core/trivial/src/main/java/org/onlab/onos/net/trivial/impl/SimpleHostManager.java → core/trivial/src/main/java/org/onlab/onos/net/trivial/host/impl/SimpleHostManager.java
core/trivial/src/main/java/org/onlab/onos/net/trivial/impl/SimpleHostStore.java → core/trivial/src/main/java/org/onlab/onos/net/trivial/host/impl/SimpleHostStore.java
core/trivial/src/main/java/org/onlab/onos/net/trivial/topology/impl/DefaultTopologyProvider.java
core/trivial/src/main/java/org/onlab/onos/net/trivial/topology/impl/PathKey.java
pom.xml
providers/of/device/src/main/java/org/onlab/onos/provider/of/device/impl/OpenFlowDeviceProvider.java
providers/of/host/src/main/java/org/onlab/onos/provider/of/host/impl/OpenFlowHostProvider.java
providers/of/link/src/main/java/org/onlab/onos/provider/of/link/impl/OpenFlowLinkProvider.java
core/trivial/src/main/java/org/onlab/onos/net/trivial/impl/SimpleHostManager.java
→
core/trivial/src/main/java/org/onlab/onos/net/trivial/
host/
impl/SimpleHostManager.java
View file @
578ebdc
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
net
.
trivial
.
host
.
impl
;
import
org.apache.felix.scr.annotations.Activate
;
import
org.apache.felix.scr.annotations.Component
;
...
...
core/trivial/src/main/java/org/onlab/onos/net/trivial/impl/SimpleHostStore.java
→
core/trivial/src/main/java/org/onlab/onos/net/trivial/
host/
impl/SimpleHostStore.java
View file @
578ebdc
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
net
.
trivial
.
host
.
impl
;
import
org.onlab.onos.net.ConnectPoint
;
import
org.onlab.onos.net.DefaultHost
;
...
...
core/trivial/src/main/java/org/onlab/onos/net/trivial/topology/impl/DefaultTopologyProvider.java
View file @
578ebdc
...
...
@@ -32,7 +32,9 @@ import static org.onlab.util.Tools.namedThreads;
import
static
org
.
slf4j
.
LoggerFactory
.
getLogger
;
/**
* Simple implementation of a network topology provider/computor.
* Default implementation of a network topology provider that feeds off
* device and link subsystem events to trigger assembly and computation of
* new topology snapshots.
*/
@Component
(
immediate
=
true
)
public
class
DefaultTopologyProvider
extends
AbstractProvider
...
...
@@ -76,7 +78,7 @@ public class DefaultTopologyProvider extends AbstractProvider
@Activate
public
synchronized
void
activate
()
{
executor
=
newFixedThreadPool
(
MAX_THREADS
,
namedThreads
(
"topo-
compute
-%d"
));
executor
=
newFixedThreadPool
(
MAX_THREADS
,
namedThreads
(
"topo-
build
-%d"
));
accumulator
=
new
TopologyChangeAccumulator
();
providerService
=
providerRegistry
.
register
(
this
);
...
...
core/trivial/src/main/java/org/onlab/onos/net/trivial/topology/impl/PathKey.java
View file @
578ebdc
...
...
@@ -5,7 +5,7 @@ import org.onlab.onos.net.DeviceId;
import
java.util.Objects
;
/**
* Key for filing
src/dst path
s.
* Key for filing
pre-computed paths between source and destination device
s.
*/
class
PathKey
{
private
final
DeviceId
src
;
...
...
pom.xml
View file @
578ebdc
...
...
@@ -320,6 +320,7 @@
<artifactId>
maven-javadoc-plugin
</artifactId>
<version>
2.9.1
</version>
<configuration>
<show>
package
</show>
<docfilessubdirs>
true
</docfilessubdirs>
<doctitle>
ONOS Java API
</doctitle>
<groups>
...
...
providers/of/device/src/main/java/org/onlab/onos/provider/of/device/impl/OpenFlowDeviceProvider.java
View file @
578ebdc
...
...
@@ -60,7 +60,7 @@ public class OpenFlowDeviceProvider extends AbstractProvider implements DevicePr
* Creates an OpenFlow device provider.
*/
public
OpenFlowDeviceProvider
()
{
super
(
new
ProviderId
(
"org.onlab.onos.provider.o
f.device
"
));
super
(
new
ProviderId
(
"org.onlab.onos.provider.o
penflow
"
));
}
@Activate
...
...
providers/of/host/src/main/java/org/onlab/onos/provider/of/host/impl/OpenFlowHostProvider.java
View file @
578ebdc
...
...
@@ -37,7 +37,7 @@ public class OpenFlowHostProvider extends AbstractProvider implements HostProvid
* Creates an OpenFlow host provider.
*/
public
OpenFlowHostProvider
()
{
super
(
new
ProviderId
(
"org.onlab.onos.provider.o
f.host
"
));
super
(
new
ProviderId
(
"org.onlab.onos.provider.o
penflow
"
));
}
@Activate
...
...
providers/of/link/src/main/java/org/onlab/onos/provider/of/link/impl/OpenFlowLinkProvider.java
View file @
578ebdc
...
...
@@ -55,7 +55,7 @@ public class OpenFlowLinkProvider extends AbstractProvider implements LinkProvid
* Creates an OpenFlow link provider.
*/
public
OpenFlowLinkProvider
()
{
super
(
new
ProviderId
(
"org.onlab.onos.provider.o
f.link
"
));
super
(
new
ProviderId
(
"org.onlab.onos.provider.o
penflow
"
));
}
@Activate
...
...
Please
register
or
login
to post a comment