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
Yuta HIGUCHI
2014-10-09 15:20:51 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
89791c6079e6f54e73c638a094b7ebaa6ad1caea
89791c60
1 parent
d40483d5
Revert "Renamed *MastershipStore* to *DeviceMastershipStore*"
This reverts commit
da147db7
.
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
core/store/hz/cluster/src/main/java/org/onlab/onos/store/cluster/impl/DistributedDeviceMastershipStore.java → core/store/hz/cluster/src/main/java/org/onlab/onos/store/cluster/impl/DistributedMastershipStore.java
core/store/hz/cluster/src/test/java/org/onlab/onos/store/cluster/impl/DistributedDeviceMastershipStoreTest.java → core/store/hz/cluster/src/test/java/org/onlab/onos/store/cluster/impl/DistributedMastershipStoreTest.java
core/store/hz/cluster/src/main/java/org/onlab/onos/store/cluster/impl/Distributed
Device
MastershipStore.java
→
core/store/hz/cluster/src/main/java/org/onlab/onos/store/cluster/impl/DistributedMastershipStore.java
View file @
89791c6
...
...
@@ -32,7 +32,7 @@ import com.hazelcast.core.MultiMap;
*/
@Component
(
immediate
=
true
)
@Service
public
class
Distributed
Device
MastershipStore
public
class
DistributedMastershipStore
extends
AbstractHazelcastStore
<
DeviceMastershipEvent
,
DeviceMastershipStoreDelegate
>
implements
DeviceMastershipStore
{
...
...
core/store/hz/cluster/src/test/java/org/onlab/onos/store/cluster/impl/Distributed
Device
MastershipStoreTest.java
→
core/store/hz/cluster/src/test/java/org/onlab/onos/store/cluster/impl/DistributedMastershipStoreTest.java
View file @
89791c6
...
...
@@ -40,7 +40,7 @@ import com.hazelcast.core.Hazelcast;
/**
* Test of the Hazelcast-based distributed MastershipStore implementation.
*/
public
class
Distributed
Device
MastershipStoreTest
{
public
class
DistributedMastershipStoreTest
{
private
static
final
DeviceId
DID1
=
DeviceId
.
deviceId
(
"of:01"
);
private
static
final
DeviceId
DID2
=
DeviceId
.
deviceId
(
"of:02"
);
...
...
@@ -54,8 +54,8 @@ public class DistributedDeviceMastershipStoreTest {
private
static
final
ControllerNode
CN1
=
new
DefaultControllerNode
(
N1
,
IP
);
private
static
final
ControllerNode
CN2
=
new
DefaultControllerNode
(
N2
,
IP
);
private
Distributed
Device
MastershipStore
dms
;
private
TestDistributed
Device
MastershipStore
testStore
;
private
DistributedMastershipStore
dms
;
private
TestDistributedMastershipStore
testStore
;
private
KryoSerializer
serializationMgr
;
private
StoreManager
storeMgr
;
...
...
@@ -77,11 +77,11 @@ public class DistributedDeviceMastershipStoreTest {
serializationMgr
=
new
KryoSerializer
();
dms
=
new
TestDistributed
Device
MastershipStore
(
storeMgr
,
serializationMgr
);
dms
=
new
TestDistributedMastershipStore
(
storeMgr
,
serializationMgr
);
dms
.
clusterService
=
new
TestClusterService
();
dms
.
activate
();
testStore
=
(
TestDistributed
Device
MastershipStore
)
dms
;
testStore
=
(
TestDistributedMastershipStore
)
dms
;
}
@After
...
...
@@ -227,9 +227,9 @@ public class DistributedDeviceMastershipStoreTest {
assertTrue
(
"Add event fired"
,
addLatch
.
await
(
1
,
TimeUnit
.
SECONDS
));
}
private
class
TestDistributed
Device
MastershipStore
extends
Distributed
Device
MastershipStore
{
public
TestDistributed
Device
MastershipStore
(
StoreService
storeService
,
private
class
TestDistributedMastershipStore
extends
DistributedMastershipStore
{
public
TestDistributedMastershipStore
(
StoreService
storeService
,
KryoSerializer
kryoSerialization
)
{
this
.
storeService
=
storeService
;
this
.
serializer
=
kryoSerialization
;
...
...
Please
register
or
login
to post a comment