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