Separate cluster management and mastership management to separate packages
Change-Id: If1e399648451842da6dccc644b75b81337b105f9
Showing
31 changed files
with
76 additions
and
58 deletions
1 | package org.onlab.onos.cli; | 1 | package org.onlab.onos.cli; |
2 | 2 | ||
3 | import com.google.common.collect.Lists; | 3 | import com.google.common.collect.Lists; |
4 | + | ||
4 | import org.apache.karaf.shell.commands.Command; | 5 | import org.apache.karaf.shell.commands.Command; |
5 | import org.onlab.onos.cluster.ClusterService; | 6 | import org.onlab.onos.cluster.ClusterService; |
6 | import org.onlab.onos.cluster.ControllerNode; | 7 | import org.onlab.onos.cluster.ControllerNode; |
7 | -import org.onlab.onos.cluster.MastershipService; | 8 | +import org.onlab.onos.mastership.MastershipService; |
8 | import org.onlab.onos.net.DeviceId; | 9 | import org.onlab.onos.net.DeviceId; |
9 | 10 | ||
10 | import java.util.Collections; | 11 | import java.util.Collections; | ... | ... |
... | @@ -3,8 +3,8 @@ package org.onlab.onos.cli.net; | ... | @@ -3,8 +3,8 @@ package org.onlab.onos.cli.net; |
3 | import org.apache.karaf.shell.commands.Argument; | 3 | import org.apache.karaf.shell.commands.Argument; |
4 | import org.apache.karaf.shell.commands.Command; | 4 | import org.apache.karaf.shell.commands.Command; |
5 | import org.onlab.onos.cli.AbstractShellCommand; | 5 | import org.onlab.onos.cli.AbstractShellCommand; |
6 | -import org.onlab.onos.cluster.MastershipAdminService; | ||
7 | import org.onlab.onos.cluster.NodeId; | 6 | import org.onlab.onos.cluster.NodeId; |
7 | +import org.onlab.onos.mastership.MastershipAdminService; | ||
8 | import org.onlab.onos.net.MastershipRole; | 8 | import org.onlab.onos.net.MastershipRole; |
9 | 9 | ||
10 | import static org.onlab.onos.net.DeviceId.deviceId; | 10 | import static org.onlab.onos.net.DeviceId.deviceId; | ... | ... |
1 | -package org.onlab.onos.cluster; | 1 | +package org.onlab.onos.mastership; |
2 | 2 | ||
3 | import java.util.Set; | 3 | import java.util.Set; |
4 | 4 | ||
5 | +import org.onlab.onos.cluster.NodeId; | ||
5 | import org.onlab.onos.net.DeviceId; | 6 | import org.onlab.onos.net.DeviceId; |
6 | import org.onlab.onos.net.MastershipRole; | 7 | import org.onlab.onos.net.MastershipRole; |
7 | 8 | ... | ... |
1 | -package org.onlab.onos.cluster; | 1 | +package org.onlab.onos.mastership; |
2 | 2 | ||
3 | import java.util.Set; | 3 | import java.util.Set; |
4 | 4 | ||
5 | +import org.onlab.onos.cluster.NodeId; | ||
5 | import org.onlab.onos.net.DeviceId; | 6 | import org.onlab.onos.net.DeviceId; |
6 | import org.onlab.onos.net.MastershipRole; | 7 | import org.onlab.onos.net.MastershipRole; |
7 | import org.onlab.onos.store.Store; | 8 | import org.onlab.onos.store.Store; | ... | ... |
1 | -package org.onlab.onos.cluster; | 1 | +package org.onlab.onos.mastership; |
2 | 2 | ||
3 | import java.util.Objects; | 3 | import java.util.Objects; |
4 | 4 | ||
5 | +import org.onlab.onos.cluster.NodeId; | ||
6 | + | ||
5 | public final class MastershipTerm { | 7 | public final class MastershipTerm { |
6 | 8 | ||
7 | private final NodeId master; | 9 | private final NodeId master; | ... | ... |
1 | package org.onlab.onos.net.device; | 1 | package org.onlab.onos.net.device; |
2 | 2 | ||
3 | -import org.onlab.onos.cluster.MastershipTerm; | 3 | +import org.onlab.onos.mastership.MastershipTerm; |
4 | import org.onlab.onos.net.DeviceId; | 4 | import org.onlab.onos.net.DeviceId; |
5 | 5 | ||
6 | //TODO: Consider renaming to DeviceClockProviderService? | 6 | //TODO: Consider renaming to DeviceClockProviderService? | ... | ... |
1 | -package org.onlab.onos.cluster; | 1 | +package org.onlab.onos.mastership; |
2 | 2 | ||
3 | import static org.junit.Assert.assertEquals; | 3 | import static org.junit.Assert.assertEquals; |
4 | 4 | ||
5 | import org.junit.Test; | 5 | import org.junit.Test; |
6 | +import org.onlab.onos.cluster.NodeId; | ||
6 | 7 | ||
7 | import com.google.common.testing.EqualsTester; | 8 | import com.google.common.testing.EqualsTester; |
8 | 9 | ... | ... |
... | @@ -16,17 +16,17 @@ import org.onlab.onos.cluster.ClusterEvent; | ... | @@ -16,17 +16,17 @@ import org.onlab.onos.cluster.ClusterEvent; |
16 | import org.onlab.onos.cluster.ClusterEventListener; | 16 | import org.onlab.onos.cluster.ClusterEventListener; |
17 | import org.onlab.onos.cluster.ClusterService; | 17 | import org.onlab.onos.cluster.ClusterService; |
18 | import org.onlab.onos.cluster.ControllerNode; | 18 | import org.onlab.onos.cluster.ControllerNode; |
19 | -import org.onlab.onos.cluster.MastershipAdminService; | ||
20 | -import org.onlab.onos.cluster.MastershipEvent; | ||
21 | -import org.onlab.onos.cluster.MastershipListener; | ||
22 | -import org.onlab.onos.cluster.MastershipService; | ||
23 | -import org.onlab.onos.cluster.MastershipStore; | ||
24 | -import org.onlab.onos.cluster.MastershipStoreDelegate; | ||
25 | -import org.onlab.onos.cluster.MastershipTerm; | ||
26 | -import org.onlab.onos.cluster.MastershipTermService; | ||
27 | import org.onlab.onos.cluster.NodeId; | 19 | import org.onlab.onos.cluster.NodeId; |
28 | import org.onlab.onos.event.AbstractListenerRegistry; | 20 | import org.onlab.onos.event.AbstractListenerRegistry; |
29 | import org.onlab.onos.event.EventDeliveryService; | 21 | import org.onlab.onos.event.EventDeliveryService; |
22 | +import org.onlab.onos.mastership.MastershipAdminService; | ||
23 | +import org.onlab.onos.mastership.MastershipEvent; | ||
24 | +import org.onlab.onos.mastership.MastershipListener; | ||
25 | +import org.onlab.onos.mastership.MastershipService; | ||
26 | +import org.onlab.onos.mastership.MastershipStore; | ||
27 | +import org.onlab.onos.mastership.MastershipStoreDelegate; | ||
28 | +import org.onlab.onos.mastership.MastershipTerm; | ||
29 | +import org.onlab.onos.mastership.MastershipTermService; | ||
30 | import org.onlab.onos.net.DeviceId; | 30 | import org.onlab.onos.net.DeviceId; |
31 | import org.onlab.onos.net.MastershipRole; | 31 | import org.onlab.onos.net.MastershipRole; |
32 | import org.slf4j.Logger; | 32 | import org.slf4j.Logger; | ... | ... |
... | @@ -13,14 +13,14 @@ import org.apache.felix.scr.annotations.Reference; | ... | @@ -13,14 +13,14 @@ import org.apache.felix.scr.annotations.Reference; |
13 | import org.apache.felix.scr.annotations.ReferenceCardinality; | 13 | import org.apache.felix.scr.annotations.ReferenceCardinality; |
14 | import org.apache.felix.scr.annotations.Service; | 14 | import org.apache.felix.scr.annotations.Service; |
15 | import org.onlab.onos.cluster.ClusterService; | 15 | import org.onlab.onos.cluster.ClusterService; |
16 | -import org.onlab.onos.cluster.MastershipEvent; | ||
17 | -import org.onlab.onos.cluster.MastershipListener; | ||
18 | -import org.onlab.onos.cluster.MastershipService; | ||
19 | -import org.onlab.onos.cluster.MastershipTermService; | ||
20 | -import org.onlab.onos.cluster.MastershipTerm; | ||
21 | import org.onlab.onos.cluster.NodeId; | 16 | import org.onlab.onos.cluster.NodeId; |
22 | import org.onlab.onos.event.AbstractListenerRegistry; | 17 | import org.onlab.onos.event.AbstractListenerRegistry; |
23 | import org.onlab.onos.event.EventDeliveryService; | 18 | import org.onlab.onos.event.EventDeliveryService; |
19 | +import org.onlab.onos.mastership.MastershipEvent; | ||
20 | +import org.onlab.onos.mastership.MastershipListener; | ||
21 | +import org.onlab.onos.mastership.MastershipService; | ||
22 | +import org.onlab.onos.mastership.MastershipTerm; | ||
23 | +import org.onlab.onos.mastership.MastershipTermService; | ||
24 | import org.onlab.onos.net.Device; | 24 | import org.onlab.onos.net.Device; |
25 | import org.onlab.onos.net.DeviceId; | 25 | import org.onlab.onos.net.DeviceId; |
26 | import org.onlab.onos.net.MastershipRole; | 26 | import org.onlab.onos.net.MastershipRole; | ... | ... |
... | @@ -10,10 +10,10 @@ import org.onlab.onos.cluster.ClusterService; | ... | @@ -10,10 +10,10 @@ import org.onlab.onos.cluster.ClusterService; |
10 | import org.onlab.onos.cluster.ControllerNode; | 10 | import org.onlab.onos.cluster.ControllerNode; |
11 | import org.onlab.onos.cluster.ControllerNode.State; | 11 | import org.onlab.onos.cluster.ControllerNode.State; |
12 | import org.onlab.onos.cluster.DefaultControllerNode; | 12 | import org.onlab.onos.cluster.DefaultControllerNode; |
13 | -import org.onlab.onos.cluster.MastershipService; | ||
14 | -import org.onlab.onos.cluster.MastershipTermService; | ||
15 | import org.onlab.onos.cluster.NodeId; | 13 | import org.onlab.onos.cluster.NodeId; |
16 | import org.onlab.onos.event.impl.TestEventDispatcher; | 14 | import org.onlab.onos.event.impl.TestEventDispatcher; |
15 | +import org.onlab.onos.mastership.MastershipService; | ||
16 | +import org.onlab.onos.mastership.MastershipTermService; | ||
17 | import org.onlab.onos.net.DeviceId; | 17 | import org.onlab.onos.net.DeviceId; |
18 | import org.onlab.onos.store.trivial.impl.SimpleMastershipStore; | 18 | import org.onlab.onos.store.trivial.impl.SimpleMastershipStore; |
19 | import org.onlab.packet.IpPrefix; | 19 | import org.onlab.packet.IpPrefix; | ... | ... |
... | @@ -10,13 +10,13 @@ import org.onlab.onos.cluster.ClusterEventListener; | ... | @@ -10,13 +10,13 @@ import org.onlab.onos.cluster.ClusterEventListener; |
10 | import org.onlab.onos.cluster.ClusterService; | 10 | import org.onlab.onos.cluster.ClusterService; |
11 | import org.onlab.onos.cluster.ControllerNode; | 11 | import org.onlab.onos.cluster.ControllerNode; |
12 | import org.onlab.onos.cluster.DefaultControllerNode; | 12 | import org.onlab.onos.cluster.DefaultControllerNode; |
13 | -import org.onlab.onos.cluster.MastershipServiceAdapter; | ||
14 | -import org.onlab.onos.cluster.MastershipTerm; | ||
15 | -import org.onlab.onos.cluster.MastershipTermService; | ||
16 | import org.onlab.onos.cluster.NodeId; | 13 | import org.onlab.onos.cluster.NodeId; |
17 | import org.onlab.onos.cluster.ControllerNode.State; | 14 | import org.onlab.onos.cluster.ControllerNode.State; |
18 | import org.onlab.onos.event.Event; | 15 | import org.onlab.onos.event.Event; |
19 | import org.onlab.onos.event.impl.TestEventDispatcher; | 16 | import org.onlab.onos.event.impl.TestEventDispatcher; |
17 | +import org.onlab.onos.mastership.MastershipServiceAdapter; | ||
18 | +import org.onlab.onos.mastership.MastershipTerm; | ||
19 | +import org.onlab.onos.mastership.MastershipTermService; | ||
20 | import org.onlab.onos.net.Device; | 20 | import org.onlab.onos.net.Device; |
21 | import org.onlab.onos.net.DeviceId; | 21 | import org.onlab.onos.net.DeviceId; |
22 | import org.onlab.onos.net.MastershipRole; | 22 | import org.onlab.onos.net.MastershipRole; | ... | ... |
... | @@ -10,7 +10,7 @@ import org.apache.felix.scr.annotations.Activate; | ... | @@ -10,7 +10,7 @@ import org.apache.felix.scr.annotations.Activate; |
10 | import org.apache.felix.scr.annotations.Component; | 10 | import org.apache.felix.scr.annotations.Component; |
11 | import org.apache.felix.scr.annotations.Deactivate; | 11 | import org.apache.felix.scr.annotations.Deactivate; |
12 | import org.apache.felix.scr.annotations.Service; | 12 | import org.apache.felix.scr.annotations.Service; |
13 | -import org.onlab.onos.cluster.MastershipTerm; | 13 | +import org.onlab.onos.mastership.MastershipTerm; |
14 | import org.onlab.onos.net.DeviceId; | 14 | import org.onlab.onos.net.DeviceId; |
15 | import org.onlab.onos.net.device.DeviceClockProviderService; | 15 | import org.onlab.onos.net.device.DeviceClockProviderService; |
16 | import org.onlab.onos.net.device.DeviceClockService; | 16 | import org.onlab.onos.net.device.DeviceClockService; | ... | ... |
... | @@ -31,8 +31,8 @@ import org.onlab.onos.cluster.ClusterService; | ... | @@ -31,8 +31,8 @@ import org.onlab.onos.cluster.ClusterService; |
31 | import org.onlab.onos.cluster.ControllerNode; | 31 | import org.onlab.onos.cluster.ControllerNode; |
32 | import org.onlab.onos.cluster.ControllerNode.State; | 32 | import org.onlab.onos.cluster.ControllerNode.State; |
33 | import org.onlab.onos.cluster.DefaultControllerNode; | 33 | import org.onlab.onos.cluster.DefaultControllerNode; |
34 | -import org.onlab.onos.cluster.MastershipTerm; | ||
35 | import org.onlab.onos.cluster.NodeId; | 34 | import org.onlab.onos.cluster.NodeId; |
35 | +import org.onlab.onos.mastership.MastershipTerm; | ||
36 | import org.onlab.onos.net.Annotations; | 36 | import org.onlab.onos.net.Annotations; |
37 | import org.onlab.onos.net.DefaultAnnotations; | 37 | import org.onlab.onos.net.DefaultAnnotations; |
38 | import org.onlab.onos.net.Device; | 38 | import org.onlab.onos.net.Device; | ... | ... |
1 | -package org.onlab.onos.store.cluster.impl; | 1 | +package org.onlab.onos.store.mastership.impl; |
2 | 2 | ||
3 | -import static org.onlab.onos.cluster.MastershipEvent.Type.MASTER_CHANGED; | 3 | +import static org.onlab.onos.mastership.MastershipEvent.Type.MASTER_CHANGED; |
4 | 4 | ||
5 | import java.util.Map; | 5 | import java.util.Map; |
6 | import java.util.Set; | 6 | import java.util.Set; |
... | @@ -12,11 +12,11 @@ import org.apache.felix.scr.annotations.Reference; | ... | @@ -12,11 +12,11 @@ import org.apache.felix.scr.annotations.Reference; |
12 | import org.apache.felix.scr.annotations.ReferenceCardinality; | 12 | import org.apache.felix.scr.annotations.ReferenceCardinality; |
13 | import org.apache.felix.scr.annotations.Service; | 13 | import org.apache.felix.scr.annotations.Service; |
14 | import org.onlab.onos.cluster.ClusterService; | 14 | import org.onlab.onos.cluster.ClusterService; |
15 | -import org.onlab.onos.cluster.MastershipEvent; | ||
16 | -import org.onlab.onos.cluster.MastershipStore; | ||
17 | -import org.onlab.onos.cluster.MastershipStoreDelegate; | ||
18 | -import org.onlab.onos.cluster.MastershipTerm; | ||
19 | import org.onlab.onos.cluster.NodeId; | 15 | import org.onlab.onos.cluster.NodeId; |
16 | +import org.onlab.onos.mastership.MastershipEvent; | ||
17 | +import org.onlab.onos.mastership.MastershipStore; | ||
18 | +import org.onlab.onos.mastership.MastershipStoreDelegate; | ||
19 | +import org.onlab.onos.mastership.MastershipTerm; | ||
20 | import org.onlab.onos.net.DeviceId; | 20 | import org.onlab.onos.net.DeviceId; |
21 | import org.onlab.onos.net.MastershipRole; | 21 | import org.onlab.onos.net.MastershipRole; |
22 | import org.onlab.onos.store.common.AbstractHazelcastStore; | 22 | import org.onlab.onos.store.common.AbstractHazelcastStore; | ... | ... |
1 | -package org.onlab.onos.store.cluster.impl; | 1 | +package org.onlab.onos.store.mastership.impl; |
2 | 2 | ||
3 | import static org.junit.Assert.assertEquals; | 3 | import static org.junit.Assert.assertEquals; |
4 | import static org.junit.Assert.assertNull; | 4 | import static org.junit.Assert.assertNull; |
... | @@ -21,11 +21,11 @@ import org.onlab.onos.cluster.ClusterService; | ... | @@ -21,11 +21,11 @@ import org.onlab.onos.cluster.ClusterService; |
21 | import org.onlab.onos.cluster.ControllerNode; | 21 | import org.onlab.onos.cluster.ControllerNode; |
22 | import org.onlab.onos.cluster.ControllerNode.State; | 22 | import org.onlab.onos.cluster.ControllerNode.State; |
23 | import org.onlab.onos.cluster.DefaultControllerNode; | 23 | import org.onlab.onos.cluster.DefaultControllerNode; |
24 | -import org.onlab.onos.cluster.MastershipEvent; | ||
25 | -import org.onlab.onos.cluster.MastershipEvent.Type; | ||
26 | -import org.onlab.onos.cluster.MastershipStoreDelegate; | ||
27 | -import org.onlab.onos.cluster.MastershipTerm; | ||
28 | import org.onlab.onos.cluster.NodeId; | 24 | import org.onlab.onos.cluster.NodeId; |
25 | +import org.onlab.onos.mastership.MastershipEvent; | ||
26 | +import org.onlab.onos.mastership.MastershipStoreDelegate; | ||
27 | +import org.onlab.onos.mastership.MastershipTerm; | ||
28 | +import org.onlab.onos.mastership.MastershipEvent.Type; | ||
29 | import org.onlab.onos.net.DeviceId; | 29 | import org.onlab.onos.net.DeviceId; |
30 | import org.onlab.onos.store.common.StoreManager; | 30 | import org.onlab.onos.store.common.StoreManager; |
31 | import org.onlab.onos.store.common.StoreService; | 31 | import org.onlab.onos.store.common.StoreService; | ... | ... |
... | @@ -2,7 +2,7 @@ package org.onlab.onos.store.device.impl; | ... | @@ -2,7 +2,7 @@ package org.onlab.onos.store.device.impl; |
2 | 2 | ||
3 | import org.apache.felix.scr.annotations.Component; | 3 | import org.apache.felix.scr.annotations.Component; |
4 | import org.apache.felix.scr.annotations.Service; | 4 | import org.apache.felix.scr.annotations.Service; |
5 | -import org.onlab.onos.cluster.MastershipTerm; | 5 | +import org.onlab.onos.mastership.MastershipTerm; |
6 | import org.onlab.onos.net.DeviceId; | 6 | import org.onlab.onos.net.DeviceId; |
7 | import org.onlab.onos.net.device.DeviceClockProviderService; | 7 | import org.onlab.onos.net.device.DeviceClockProviderService; |
8 | 8 | ... | ... |
... | @@ -7,8 +7,8 @@ import java.util.HashMap; | ... | @@ -7,8 +7,8 @@ import java.util.HashMap; |
7 | 7 | ||
8 | import org.onlab.onos.cluster.ControllerNode; | 8 | import org.onlab.onos.cluster.ControllerNode; |
9 | import org.onlab.onos.cluster.DefaultControllerNode; | 9 | import org.onlab.onos.cluster.DefaultControllerNode; |
10 | -import org.onlab.onos.cluster.MastershipTerm; | ||
11 | import org.onlab.onos.cluster.NodeId; | 10 | import org.onlab.onos.cluster.NodeId; |
11 | +import org.onlab.onos.mastership.MastershipTerm; | ||
12 | import org.onlab.onos.net.ConnectPoint; | 12 | import org.onlab.onos.net.ConnectPoint; |
13 | import org.onlab.onos.net.DefaultAnnotations; | 13 | import org.onlab.onos.net.DefaultAnnotations; |
14 | import org.onlab.onos.net.DefaultDevice; | 14 | import org.onlab.onos.net.DefaultDevice; | ... | ... |
1 | package org.onlab.onos.store.serializers; | 1 | package org.onlab.onos.store.serializers; |
2 | 2 | ||
3 | -import org.onlab.onos.cluster.MastershipTerm; | ||
4 | import org.onlab.onos.cluster.NodeId; | 3 | import org.onlab.onos.cluster.NodeId; |
4 | +import org.onlab.onos.mastership.MastershipTerm; | ||
5 | + | ||
5 | import com.esotericsoftware.kryo.Kryo; | 6 | import com.esotericsoftware.kryo.Kryo; |
6 | import com.esotericsoftware.kryo.Serializer; | 7 | import com.esotericsoftware.kryo.Serializer; |
7 | import com.esotericsoftware.kryo.io.Input; | 8 | import com.esotericsoftware.kryo.io.Input; |
8 | import com.esotericsoftware.kryo.io.Output; | 9 | import com.esotericsoftware.kryo.io.Output; |
9 | 10 | ||
10 | /** | 11 | /** |
11 | - * Kryo Serializer for {@link org.onlab.onos.cluster.MastershipTerm}. | 12 | + * Kryo Serializer for {@link org.onlab.onos.mastership.MastershipTerm}. |
12 | */ | 13 | */ |
13 | public class MastershipTermSerializer extends Serializer<MastershipTerm> { | 14 | public class MastershipTermSerializer extends Serializer<MastershipTerm> { |
14 | 15 | ... | ... |
... | @@ -10,8 +10,8 @@ import org.junit.After; | ... | @@ -10,8 +10,8 @@ import org.junit.After; |
10 | import org.junit.Before; | 10 | import org.junit.Before; |
11 | import org.junit.BeforeClass; | 11 | import org.junit.BeforeClass; |
12 | import org.junit.Test; | 12 | import org.junit.Test; |
13 | -import org.onlab.onos.cluster.MastershipTerm; | ||
14 | import org.onlab.onos.cluster.NodeId; | 13 | import org.onlab.onos.cluster.NodeId; |
14 | +import org.onlab.onos.mastership.MastershipTerm; | ||
15 | import org.onlab.onos.net.Annotations; | 15 | import org.onlab.onos.net.Annotations; |
16 | import org.onlab.onos.net.ConnectPoint; | 16 | import org.onlab.onos.net.ConnectPoint; |
17 | import org.onlab.onos.net.DefaultAnnotations; | 17 | import org.onlab.onos.net.DefaultAnnotations; | ... | ... |
... | @@ -2,7 +2,7 @@ package org.onlab.onos.store.trivial.impl; | ... | @@ -2,7 +2,7 @@ package org.onlab.onos.store.trivial.impl; |
2 | 2 | ||
3 | import org.apache.felix.scr.annotations.Component; | 3 | import org.apache.felix.scr.annotations.Component; |
4 | import org.apache.felix.scr.annotations.Service; | 4 | import org.apache.felix.scr.annotations.Service; |
5 | -import org.onlab.onos.cluster.MastershipTerm; | 5 | +import org.onlab.onos.mastership.MastershipTerm; |
6 | import org.onlab.onos.net.DeviceId; | 6 | import org.onlab.onos.net.DeviceId; |
7 | import org.onlab.onos.net.device.DeviceClockProviderService; | 7 | import org.onlab.onos.net.device.DeviceClockProviderService; |
8 | 8 | ... | ... |
... | @@ -15,18 +15,18 @@ import org.apache.felix.scr.annotations.Deactivate; | ... | @@ -15,18 +15,18 @@ import org.apache.felix.scr.annotations.Deactivate; |
15 | import org.apache.felix.scr.annotations.Service; | 15 | import org.apache.felix.scr.annotations.Service; |
16 | import org.onlab.onos.cluster.ControllerNode; | 16 | import org.onlab.onos.cluster.ControllerNode; |
17 | import org.onlab.onos.cluster.DefaultControllerNode; | 17 | import org.onlab.onos.cluster.DefaultControllerNode; |
18 | -import org.onlab.onos.cluster.MastershipEvent; | ||
19 | -import org.onlab.onos.cluster.MastershipStore; | ||
20 | -import org.onlab.onos.cluster.MastershipStoreDelegate; | ||
21 | -import org.onlab.onos.cluster.MastershipTerm; | ||
22 | import org.onlab.onos.cluster.NodeId; | 18 | import org.onlab.onos.cluster.NodeId; |
19 | +import org.onlab.onos.mastership.MastershipEvent; | ||
20 | +import org.onlab.onos.mastership.MastershipStore; | ||
21 | +import org.onlab.onos.mastership.MastershipStoreDelegate; | ||
22 | +import org.onlab.onos.mastership.MastershipTerm; | ||
23 | import org.onlab.onos.net.DeviceId; | 23 | import org.onlab.onos.net.DeviceId; |
24 | import org.onlab.onos.net.MastershipRole; | 24 | import org.onlab.onos.net.MastershipRole; |
25 | import org.onlab.onos.store.AbstractStore; | 25 | import org.onlab.onos.store.AbstractStore; |
26 | import org.onlab.packet.IpPrefix; | 26 | import org.onlab.packet.IpPrefix; |
27 | import org.slf4j.Logger; | 27 | import org.slf4j.Logger; |
28 | 28 | ||
29 | -import static org.onlab.onos.cluster.MastershipEvent.Type.*; | 29 | +import static org.onlab.onos.mastership.MastershipEvent.Type.*; |
30 | 30 | ||
31 | /** | 31 | /** |
32 | * Manages inventory of controller mastership over devices using | 32 | * Manages inventory of controller mastership over devices using | ... | ... |
... | @@ -6,8 +6,8 @@ import java.util.concurrent.atomic.AtomicInteger; | ... | @@ -6,8 +6,8 @@ import java.util.concurrent.atomic.AtomicInteger; |
6 | import org.junit.After; | 6 | import org.junit.After; |
7 | import org.junit.Before; | 7 | import org.junit.Before; |
8 | import org.junit.Test; | 8 | import org.junit.Test; |
9 | -import org.onlab.onos.cluster.MastershipTerm; | ||
10 | import org.onlab.onos.cluster.NodeId; | 9 | import org.onlab.onos.cluster.NodeId; |
10 | +import org.onlab.onos.mastership.MastershipTerm; | ||
11 | import org.onlab.onos.net.DeviceId; | 11 | import org.onlab.onos.net.DeviceId; |
12 | 12 | ||
13 | import com.google.common.collect.Sets; | 13 | import com.google.common.collect.Sets; |
... | @@ -15,8 +15,8 @@ import com.google.common.collect.Sets; | ... | @@ -15,8 +15,8 @@ import com.google.common.collect.Sets; |
15 | import static org.junit.Assert.assertEquals; | 15 | import static org.junit.Assert.assertEquals; |
16 | import static org.junit.Assert.assertNull; | 16 | import static org.junit.Assert.assertNull; |
17 | import static org.junit.Assert.assertTrue; | 17 | import static org.junit.Assert.assertTrue; |
18 | +import static org.onlab.onos.mastership.MastershipEvent.Type.*; | ||
18 | import static org.onlab.onos.net.MastershipRole.*; | 19 | import static org.onlab.onos.net.MastershipRole.*; |
19 | -import static org.onlab.onos.cluster.MastershipEvent.Type.*; | ||
20 | 20 | ||
21 | /** | 21 | /** |
22 | * Test for the simple MastershipStore implementation. | 22 | * Test for the simple MastershipStore implementation. | ... | ... |
... | @@ -500,7 +500,7 @@ | ... | @@ -500,7 +500,7 @@ |
500 | <group> | 500 | <group> |
501 | <title>Core Subsystems</title> | 501 | <title>Core Subsystems</title> |
502 | <packages> | 502 | <packages> |
503 | - org.onlab.onos.impl: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.*:org.onlab.onos.net.intent.impl:org.onlab.onos.net.proxyarp.impl | 503 | + org.onlab.onos.impl: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.*:org.onlab.onos.net.intent.impl:org.onlab.onos.net.proxyarp.impl:org.onlab.onos.mastership.impl |
504 | </packages> | 504 | </packages> |
505 | </group> | 505 | </group> |
506 | <group> | 506 | <group> | ... | ... |
-
Please register or login to post a comment