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 12:45:15 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ea961ffc828a8743fc77878eeaffc5a5b56abf4d
ea961ffc
1 parent
a5368868
Moved trivial from net to store.
Fixed some javadocs.
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
39 additions
and
27 deletions
core/net/src/test/java/org/onlab/onos/cluster/impl/MastershipManagerTest.java
core/net/src/test/java/org/onlab/onos/net/device/impl/DeviceManagerTest.java
core/net/src/test/java/org/onlab/onos/net/flow/impl/FlowRuleManagerTest.java
core/net/src/test/java/org/onlab/onos/net/host/impl/HostManagerTest.java
core/net/src/test/java/org/onlab/onos/net/link/impl/LinkManagerTest.java
core/net/src/test/java/org/onlab/onos/net/topology/impl/TopologyManagerTest.java
core/store/hz/net/src/main/java/org/onlab/onos/store/flow/impl/DistributedFlowRuleStore.java
core/store/hz/net/src/main/java/org/onlab/onos/store/flow/impl/package-info.java
core/store/hz/net/src/main/java/org/onlab/onos/store/host/impl/DistributedHostStore.java
core/store/hz/net/src/main/java/org/onlab/onos/store/host/impl/package-info.java
core/store/hz/net/src/main/java/org/onlab/onos/store/topology/impl/DistributedTopologyStore.java
core/store/hz/net/src/main/java/org/onlab/onos/store/topology/impl/package-info.java
core/store/trivial/src/main/java/org/onlab/onos/net/trivial/impl/DefaultTopology.java → core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/DefaultTopology.java
core/store/trivial/src/main/java/org/onlab/onos/net/trivial/impl/DefaultTopologyGraph.java → core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/DefaultTopologyGraph.java
core/store/trivial/src/main/java/org/onlab/onos/net/trivial/impl/NoOpClockService.java → core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/NoOpClockService.java
core/store/trivial/src/main/java/org/onlab/onos/net/trivial/impl/PathKey.java → core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/PathKey.java
core/store/trivial/src/main/java/org/onlab/onos/net/trivial/impl/SimpleClusterStore.java → core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/SimpleClusterStore.java
core/store/trivial/src/main/java/org/onlab/onos/net/trivial/impl/SimpleDeviceStore.java → core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/SimpleDeviceStore.java
core/store/trivial/src/main/java/org/onlab/onos/net/trivial/impl/SimpleFlowRuleStore.java → core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/SimpleFlowRuleStore.java
core/store/trivial/src/main/java/org/onlab/onos/net/trivial/impl/SimpleHostStore.java → core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/SimpleHostStore.java
core/store/trivial/src/main/java/org/onlab/onos/net/trivial/impl/SimpleLinkStore.java → core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/SimpleLinkStore.java
core/store/trivial/src/main/java/org/onlab/onos/net/trivial/impl/SimpleMastershipStore.java → core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/SimpleMastershipStore.java
core/store/trivial/src/main/java/org/onlab/onos/net/trivial/impl/SimpleTopologyStore.java → core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/SimpleTopologyStore.java
core/store/trivial/src/main/java/org/onlab/onos/net/trivial/impl/package-info.java → core/store/trivial/src/main/java/org/onlab/onos/store/trivial/impl/package-info.java
core/store/trivial/src/test/java/org/onlab/onos/net/trivial/impl/DefaultTopologyTest.java → core/store/trivial/src/test/java/org/onlab/onos/store/trivial/impl/DefaultTopologyTest.java
core/store/trivial/src/test/java/org/onlab/onos/net/trivial/impl/SimpleDeviceStoreTest.java → core/store/trivial/src/test/java/org/onlab/onos/store/trivial/impl/SimpleDeviceStoreTest.java
core/store/trivial/src/test/java/org/onlab/onos/net/trivial/impl/SimpleLinkStoreTest.java → core/store/trivial/src/test/java/org/onlab/onos/store/trivial/impl/SimpleLinkStoreTest.java
core/store/trivial/src/test/java/org/onlab/onos/net/trivial/impl/SimpleMastershipStoreTest.java → core/store/trivial/src/test/java/org/onlab/onos/store/trivial/impl/SimpleMastershipStoreTest.java
pom.xml
core/net/src/test/java/org/onlab/onos/cluster/impl/MastershipManagerTest.java
View file @
ea961ff
...
...
@@ -15,7 +15,7 @@ import org.onlab.onos.cluster.MastershipTermService;
import
org.onlab.onos.cluster.NodeId
;
import
org.onlab.onos.event.impl.TestEventDispatcher
;
import
org.onlab.onos.net.DeviceId
;
import
org.onlab.onos.
net
.trivial.impl.SimpleMastershipStore
;
import
org.onlab.onos.
store
.trivial.impl.SimpleMastershipStore
;
import
org.onlab.packet.IpPrefix
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
...
...
core/net/src/test/java/org/onlab/onos/net/device/impl/DeviceManagerTest.java
View file @
ea961ff
...
...
@@ -27,7 +27,7 @@ import org.onlab.onos.net.device.DeviceService;
import
org.onlab.onos.net.device.PortDescription
;
import
org.onlab.onos.net.provider.AbstractProvider
;
import
org.onlab.onos.net.provider.ProviderId
;
import
org.onlab.onos.
net
.trivial.impl.SimpleDeviceStore
;
import
org.onlab.onos.
store
.trivial.impl.SimpleDeviceStore
;
import
java.util.ArrayList
;
import
java.util.Iterator
;
...
...
core/net/src/test/java/org/onlab/onos/net/flow/impl/FlowRuleManagerTest.java
View file @
ea961ff
...
...
@@ -40,7 +40,7 @@ import org.onlab.onos.net.flow.criteria.Criterion;
import
org.onlab.onos.net.flow.instructions.Instruction
;
import
org.onlab.onos.net.provider.AbstractProvider
;
import
org.onlab.onos.net.provider.ProviderId
;
import
org.onlab.onos.
net
.trivial.impl.SimpleFlowRuleStore
;
import
org.onlab.onos.
store
.trivial.impl.SimpleFlowRuleStore
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Sets
;
...
...
core/net/src/test/java/org/onlab/onos/net/host/impl/HostManagerTest.java
View file @
ea961ff
...
...
@@ -34,7 +34,7 @@ import org.onlab.onos.net.host.HostProviderService;
import
org.onlab.onos.net.host.PortAddresses
;
import
org.onlab.onos.net.provider.AbstractProvider
;
import
org.onlab.onos.net.provider.ProviderId
;
import
org.onlab.onos.
net
.trivial.impl.SimpleHostStore
;
import
org.onlab.onos.
store
.trivial.impl.SimpleHostStore
;
import
org.onlab.packet.IpPrefix
;
import
org.onlab.packet.MacAddress
;
import
org.onlab.packet.VlanId
;
...
...
core/net/src/test/java/org/onlab/onos/net/link/impl/LinkManagerTest.java
View file @
ea961ff
...
...
@@ -23,7 +23,7 @@ import org.onlab.onos.net.provider.AbstractProvider;
import
org.onlab.onos.net.provider.ProviderId
;
import
org.onlab.onos.event.impl.TestEventDispatcher
;
import
org.onlab.onos.net.device.impl.DeviceManager
;
import
org.onlab.onos.
net
.trivial.impl.SimpleLinkStore
;
import
org.onlab.onos.
store
.trivial.impl.SimpleLinkStore
;
import
java.util.ArrayList
;
import
java.util.Iterator
;
...
...
core/net/src/test/java/org/onlab/onos/net/topology/impl/TopologyManagerTest.java
View file @
ea961ff
...
...
@@ -24,7 +24,7 @@ import org.onlab.onos.net.topology.TopologyProvider;
import
org.onlab.onos.net.topology.TopologyProviderRegistry
;
import
org.onlab.onos.net.topology.TopologyProviderService
;
import
org.onlab.onos.net.topology.TopologyService
;
import
org.onlab.onos.
net
.trivial.impl.SimpleTopologyStore
;
import
org.onlab.onos.
store
.trivial.impl.SimpleTopologyStore
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
core/store/hz/net/src/main/java/org/onlab/onos/store/flow/impl/DistributedFlowRuleStore.java
View file @
ea961ff
...
...
@@ -28,7 +28,7 @@ import com.google.common.collect.ImmutableSet;
import
com.google.common.collect.Multimap
;
/**
*
Manages inventory of flow rules using trivial in-memory
implementation.
*
TEMPORARY: Manages inventory of flow rules using distributed store
implementation.
*/
//FIXME: I LIE I AM NOT DISTRIBUTED
@Component
(
immediate
=
true
)
...
...
core/store/hz/net/src/main/java/org/onlab/onos/store/flow/impl/package-info.java
0 → 100644
View file @
ea961ff
/**
* Implementation of flow store using Hazelcast distributed structures.
*/
package
org
.
onlab
.
onos
.
store
.
flow
.
impl
;
core/store/hz/net/src/main/java/org/onlab/onos/store/host/impl/DistributedHostStore.java
View file @
ea961ff
...
...
@@ -39,8 +39,8 @@ import com.google.common.collect.Multimap;
import
com.google.common.collect.Sets
;
/**
*
Manages inventory of end-station hosts using trivial in-memory
* implementation.
*
TEMPORARY: Manages inventory of end-station hosts using distributed
*
structures
implementation.
*/
//FIXME: I LIE I AM NOT DISTRIBUTED
@Component
(
immediate
=
true
)
...
...
core/store/hz/net/src/main/java/org/onlab/onos/store/host/impl/package-info.java
0 → 100644
View file @
ea961ff
/**
* Implementation of host store using Hazelcast distributed structures.
*/
package
org
.
onlab
.
onos
.
store
.
host
.
impl
;
core/store/hz/net/src/main/java/org/onlab/onos/store/topology/impl/DistributedTopologyStore.java
View file @
ea961ff
...
...
@@ -28,7 +28,7 @@ import org.onlab.onos.store.AbstractStore;
import
org.slf4j.Logger
;
/**
*
Manages inventory of topology snapshots using trivial in-memory
*
TEMPORARY: Manages inventory of topology snapshots using distributed
* structures implementation.
*/
//FIXME: I LIE I AM NOT DISTRIBUTED
...
...
core/store/hz/net/src/main/java/org/onlab/onos/store/topology/impl/package-info.java
0 → 100644
View file @
ea961ff
/**
* Implementation of topology store using Hazelcast distributed structures.
*/
package
org
.
onlab
.
onos
.
store
.
topology
.
impl
;
core/store/trivial/src/main/java/org/onlab/onos/
net
/trivial/impl/DefaultTopology.java
→
core/store/trivial/src/main/java/org/onlab/onos/
store
/trivial/impl/DefaultTopology.java
View file @
ea961ff
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
store
.
trivial
.
impl
;
import
com.google.common.collect.ImmutableMap
;
import
com.google.common.collect.ImmutableSet
;
...
...
core/store/trivial/src/main/java/org/onlab/onos/
net
/trivial/impl/DefaultTopologyGraph.java
→
core/store/trivial/src/main/java/org/onlab/onos/
store
/trivial/impl/DefaultTopologyGraph.java
View file @
ea961ff
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
store
.
trivial
.
impl
;
import
org.onlab.graph.AdjacencyListsGraph
;
import
org.onlab.onos.net.topology.TopologyEdge
;
...
...
core/store/trivial/src/main/java/org/onlab/onos/
net
/trivial/impl/NoOpClockService.java
→
core/store/trivial/src/main/java/org/onlab/onos/
store
/trivial/impl/NoOpClockService.java
View file @
ea961ff
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
store
.
trivial
.
impl
;
import
org.apache.felix.scr.annotations.Component
;
import
org.apache.felix.scr.annotations.Service
;
...
...
core/store/trivial/src/main/java/org/onlab/onos/
net
/trivial/impl/PathKey.java
→
core/store/trivial/src/main/java/org/onlab/onos/
store
/trivial/impl/PathKey.java
View file @
ea961ff
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
store
.
trivial
.
impl
;
import
org.onlab.onos.net.DeviceId
;
...
...
core/store/trivial/src/main/java/org/onlab/onos/
net
/trivial/impl/SimpleClusterStore.java
→
core/store/trivial/src/main/java/org/onlab/onos/
store
/trivial/impl/SimpleClusterStore.java
View file @
ea961ff
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
store
.
trivial
.
impl
;
import
com.google.common.collect.ImmutableSet
;
import
org.apache.felix.scr.annotations.Activate
;
...
...
core/store/trivial/src/main/java/org/onlab/onos/
net
/trivial/impl/SimpleDeviceStore.java
→
core/store/trivial/src/main/java/org/onlab/onos/
store
/trivial/impl/SimpleDeviceStore.java
View file @
ea961ff
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
store
.
trivial
.
impl
;
import
com.google.common.collect.FluentIterable
;
import
com.google.common.collect.ImmutableList
;
...
...
core/store/trivial/src/main/java/org/onlab/onos/
net
/trivial/impl/SimpleFlowRuleStore.java
→
core/store/trivial/src/main/java/org/onlab/onos/
store
/trivial/impl/SimpleFlowRuleStore.java
View file @
ea961ff
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
store
.
trivial
.
impl
;
import
static
org
.
onlab
.
onos
.
net
.
flow
.
FlowRuleEvent
.
Type
.
RULE_ADDED
;
import
static
org
.
onlab
.
onos
.
net
.
flow
.
FlowRuleEvent
.
Type
.
RULE_REMOVED
;
...
...
core/store/trivial/src/main/java/org/onlab/onos/
net
/trivial/impl/SimpleHostStore.java
→
core/store/trivial/src/main/java/org/onlab/onos/
store
/trivial/impl/SimpleHostStore.java
View file @
ea961ff
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
store
.
trivial
.
impl
;
import
static
org
.
onlab
.
onos
.
net
.
host
.
HostEvent
.
Type
.
HOST_ADDED
;
import
static
org
.
onlab
.
onos
.
net
.
host
.
HostEvent
.
Type
.
HOST_MOVED
;
...
...
core/store/trivial/src/main/java/org/onlab/onos/
net
/trivial/impl/SimpleLinkStore.java
→
core/store/trivial/src/main/java/org/onlab/onos/
store
/trivial/impl/SimpleLinkStore.java
View file @
ea961ff
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
store
.
trivial
.
impl
;
import
com.google.common.collect.HashMultimap
;
import
com.google.common.collect.ImmutableSet
;
...
...
core/store/trivial/src/main/java/org/onlab/onos/
net
/trivial/impl/SimpleMastershipStore.java
→
core/store/trivial/src/main/java/org/onlab/onos/
store
/trivial/impl/SimpleMastershipStore.java
View file @
ea961ff
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
store
.
trivial
.
impl
;
import
static
org
.
slf4j
.
LoggerFactory
.
getLogger
;
...
...
core/store/trivial/src/main/java/org/onlab/onos/
net
/trivial/impl/SimpleTopologyStore.java
→
core/store/trivial/src/main/java/org/onlab/onos/
store
/trivial/impl/SimpleTopologyStore.java
View file @
ea961ff
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
store
.
trivial
.
impl
;
import
org.apache.felix.scr.annotations.Activate
;
import
org.apache.felix.scr.annotations.Component
;
...
...
core/store/trivial/src/main/java/org/onlab/onos/
net
/trivial/impl/package-info.java
→
core/store/trivial/src/main/java/org/onlab/onos/
store
/trivial/impl/package-info.java
View file @
ea961ff
...
...
@@ -2,4 +2,4 @@
* Implementations of in-memory stores suitable for unit testing and
* experimentation; not for production use.
*/
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
store
.
trivial
.
impl
;
...
...
core/store/trivial/src/test/java/org/onlab/onos/
net
/trivial/impl/DefaultTopologyTest.java
→
core/store/trivial/src/test/java/org/onlab/onos/
store
/trivial/impl/DefaultTopologyTest.java
View file @
ea961ff
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
store
.
trivial
.
impl
;
import
org.junit.Before
;
import
org.junit.Test
;
...
...
core/store/trivial/src/test/java/org/onlab/onos/
net
/trivial/impl/SimpleDeviceStoreTest.java
→
core/store/trivial/src/test/java/org/onlab/onos/
store
/trivial/impl/SimpleDeviceStoreTest.java
View file @
ea961ff
/**
*
*/
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
store
.
trivial
.
impl
;
import
static
org
.
junit
.
Assert
.*;
import
static
org
.
onlab
.
onos
.
net
.
Device
.
Type
.
SWITCH
;
...
...
core/store/trivial/src/test/java/org/onlab/onos/
net
/trivial/impl/SimpleLinkStoreTest.java
→
core/store/trivial/src/test/java/org/onlab/onos/
store
/trivial/impl/SimpleLinkStoreTest.java
View file @
ea961ff
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
store
.
trivial
.
impl
;
import
static
org
.
junit
.
Assert
.*;
import
static
org
.
onlab
.
onos
.
net
.
DeviceId
.
deviceId
;
...
...
core/store/trivial/src/test/java/org/onlab/onos/
net
/trivial/impl/SimpleMastershipStoreTest.java
→
core/store/trivial/src/test/java/org/onlab/onos/
store
/trivial/impl/SimpleMastershipStoreTest.java
View file @
ea961ff
package
org
.
onlab
.
onos
.
net
.
trivial
.
impl
;
package
org
.
onlab
.
onos
.
store
.
trivial
.
impl
;
import
java.util.Set
;
import
java.util.concurrent.atomic.AtomicInteger
;
...
...
pom.xml
View file @
ea961ff
...
...
@@ -419,7 +419,7 @@
<group>
<title>
Core Subsystems
</title>
<packages>
org.onlab.onos.cluster.impl:org.onlab.onos.net.device.impl:org.onlab.onos.net.link.impl:org.onlab.onos.net.host.impl:org.onlab.onos.net.topology.impl:org.onlab.onos.net.packet.impl:org.onlab.onos.net.flow.impl:org.onlab.onos.
net
.trivial.*:org.onlab.onos.net.*.impl:org.onlab.onos.event.impl:org.onlab.onos.store.*
org.onlab.onos.cluster.impl:org.onlab.onos.net.device.impl:org.onlab.onos.net.link.impl:org.onlab.onos.net.host.impl:org.onlab.onos.net.topology.impl:org.onlab.onos.net.packet.impl:org.onlab.onos.net.flow.impl:org.onlab.onos.
store
.trivial.*:org.onlab.onos.net.*.impl:org.onlab.onos.event.impl:org.onlab.onos.store.*
</packages>
</group>
<group>
...
...
Please
register
or
login
to post a comment