Yuta HIGUCHI | 80912e6 | 2014-10-12 00:15:47 -0700 | [diff] [blame] | 1 | package org.onlab.onos.store.mastership.impl; |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 2 | |
| 3 | import static org.junit.Assert.assertEquals; |
| 4 | import static org.junit.Assert.assertNull; |
| 5 | import static org.junit.Assert.assertTrue; |
| 6 | import static org.onlab.onos.net.MastershipRole.*; |
| 7 | |
Ayaka Koshibe | c404770 | 2014-10-07 14:43:52 -0700 | [diff] [blame] | 8 | import java.util.Map; |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 9 | import java.util.Set; |
Ayaka Koshibe | 5c0f237 | 2014-10-02 17:59:04 -0700 | [diff] [blame] | 10 | import java.util.concurrent.CountDownLatch; |
| 11 | import java.util.concurrent.TimeUnit; |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 12 | |
| 13 | import org.junit.After; |
| 14 | import org.junit.AfterClass; |
| 15 | import org.junit.Before; |
| 16 | import org.junit.BeforeClass; |
Ayaka Koshibe | 5c0f237 | 2014-10-02 17:59:04 -0700 | [diff] [blame] | 17 | import org.junit.Ignore; |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 18 | import org.junit.Test; |
| 19 | import org.onlab.onos.cluster.ClusterEventListener; |
| 20 | import org.onlab.onos.cluster.ClusterService; |
| 21 | import org.onlab.onos.cluster.ControllerNode; |
| 22 | import org.onlab.onos.cluster.ControllerNode.State; |
| 23 | import org.onlab.onos.cluster.DefaultControllerNode; |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 24 | import org.onlab.onos.cluster.NodeId; |
Yuta HIGUCHI | 80912e6 | 2014-10-12 00:15:47 -0700 | [diff] [blame] | 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; |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 29 | import org.onlab.onos.net.DeviceId; |
Ayaka Koshibe | f9b02fc | 2014-10-15 17:07:05 -0700 | [diff] [blame] | 30 | import org.onlab.onos.net.MastershipRole; |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 31 | import org.onlab.onos.store.common.StoreManager; |
| 32 | import org.onlab.onos.store.common.StoreService; |
| 33 | import org.onlab.onos.store.common.TestStoreManager; |
Ayaka Koshibe | 4c89127 | 2014-10-08 17:14:16 -0700 | [diff] [blame] | 34 | import org.onlab.onos.store.serializers.KryoSerializer; |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 35 | import org.onlab.packet.IpPrefix; |
| 36 | |
| 37 | import com.google.common.collect.Sets; |
| 38 | import com.hazelcast.config.Config; |
| 39 | import com.hazelcast.core.Hazelcast; |
| 40 | |
| 41 | /** |
| 42 | * Test of the Hazelcast-based distributed MastershipStore implementation. |
| 43 | */ |
| 44 | public class DistributedMastershipStoreTest { |
| 45 | |
| 46 | private static final DeviceId DID1 = DeviceId.deviceId("of:01"); |
| 47 | private static final DeviceId DID2 = DeviceId.deviceId("of:02"); |
| 48 | private static final DeviceId DID3 = DeviceId.deviceId("of:03"); |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 49 | |
| 50 | private static final IpPrefix IP = IpPrefix.valueOf("127.0.0.1"); |
| 51 | |
| 52 | private static final NodeId N1 = new NodeId("node1"); |
| 53 | private static final NodeId N2 = new NodeId("node2"); |
| 54 | |
| 55 | private static final ControllerNode CN1 = new DefaultControllerNode(N1, IP); |
| 56 | private static final ControllerNode CN2 = new DefaultControllerNode(N2, IP); |
| 57 | |
| 58 | private DistributedMastershipStore dms; |
| 59 | private TestDistributedMastershipStore testStore; |
Ayaka Koshibe | 4c89127 | 2014-10-08 17:14:16 -0700 | [diff] [blame] | 60 | private KryoSerializer serializationMgr; |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 61 | private StoreManager storeMgr; |
| 62 | |
| 63 | @BeforeClass |
| 64 | public static void setUpBeforeClass() throws Exception { |
| 65 | } |
| 66 | |
| 67 | @AfterClass |
| 68 | public static void tearDownAfterClass() throws Exception { |
| 69 | } |
| 70 | |
| 71 | @Before |
| 72 | public void setUp() throws Exception { |
| 73 | // TODO should find a way to clean Hazelcast instance without shutdown. |
| 74 | Config config = TestStoreManager.getTestConfig(); |
| 75 | |
| 76 | storeMgr = new TestStoreManager(Hazelcast.newHazelcastInstance(config)); |
| 77 | storeMgr.activate(); |
| 78 | |
Ayaka Koshibe | 4c89127 | 2014-10-08 17:14:16 -0700 | [diff] [blame] | 79 | serializationMgr = new KryoSerializer(); |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 80 | |
| 81 | dms = new TestDistributedMastershipStore(storeMgr, serializationMgr); |
| 82 | dms.clusterService = new TestClusterService(); |
| 83 | dms.activate(); |
| 84 | |
| 85 | testStore = (TestDistributedMastershipStore) dms; |
| 86 | } |
| 87 | |
| 88 | @After |
| 89 | public void tearDown() throws Exception { |
| 90 | dms.deactivate(); |
| 91 | |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 92 | storeMgr.deactivate(); |
| 93 | } |
| 94 | |
| 95 | @Test |
| 96 | public void getRole() { |
| 97 | assertEquals("wrong role:", NONE, dms.getRole(N1, DID1)); |
Ayaka Koshibe | c404770 | 2014-10-07 14:43:52 -0700 | [diff] [blame] | 98 | testStore.put(DID1, N1, true, false, true); |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 99 | assertEquals("wrong role:", MASTER, dms.getRole(N1, DID1)); |
| 100 | assertEquals("wrong role:", STANDBY, dms.getRole(N2, DID1)); |
| 101 | } |
| 102 | |
| 103 | @Test |
| 104 | public void getMaster() { |
Ayaka Koshibe | f9b02fc | 2014-10-15 17:07:05 -0700 | [diff] [blame] | 105 | assertTrue("wrong store state:", dms.roleMap.isEmpty()); |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 106 | |
| 107 | testStore.put(DID1, N1, true, false, false); |
| 108 | assertEquals("wrong master:", N1, dms.getMaster(DID1)); |
| 109 | assertNull("wrong master:", dms.getMaster(DID2)); |
| 110 | } |
| 111 | |
| 112 | @Test |
| 113 | public void getDevices() { |
Ayaka Koshibe | f9b02fc | 2014-10-15 17:07:05 -0700 | [diff] [blame] | 114 | assertTrue("wrong store state:", dms.roleMap.isEmpty()); |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 115 | |
| 116 | testStore.put(DID1, N1, true, false, false); |
| 117 | testStore.put(DID2, N1, true, false, false); |
| 118 | testStore.put(DID3, N2, true, false, false); |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 119 | assertEquals("wrong devices", |
| 120 | Sets.newHashSet(DID1, DID2), dms.getDevices(N1)); |
| 121 | } |
| 122 | |
| 123 | @Test |
| 124 | public void requestRoleAndTerm() { |
| 125 | //CN1 is "local" |
| 126 | testStore.setCurrent(CN1); |
| 127 | |
| 128 | //if already MASTER, nothing should happen |
| 129 | testStore.put(DID2, N1, true, false, false); |
| 130 | assertEquals("wrong role for MASTER:", MASTER, dms.requestRole(DID2)); |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 131 | |
| 132 | //populate maps with DID1, N1 thru NONE case |
| 133 | assertEquals("wrong role for NONE:", MASTER, dms.requestRole(DID1)); |
Ayaka Koshibe | c404770 | 2014-10-07 14:43:52 -0700 | [diff] [blame] | 134 | assertTrue("wrong state for store:", !dms.terms.isEmpty()); |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 135 | assertEquals("wrong term", |
| 136 | MastershipTerm.of(N1, 0), dms.getTermFor(DID1)); |
| 137 | |
| 138 | //CN2 now local. DID2 has N1 as MASTER so N2 is STANDBY |
| 139 | testStore.setCurrent(CN2); |
| 140 | assertEquals("wrong role for STANDBY:", STANDBY, dms.requestRole(DID2)); |
Ayaka Koshibe | c404770 | 2014-10-07 14:43:52 -0700 | [diff] [blame] | 141 | assertEquals("wrong number of entries:", 2, dms.terms.size()); |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 142 | |
| 143 | //change term and requestRole() again; should persist |
| 144 | testStore.increment(DID2); |
| 145 | assertEquals("wrong role for STANDBY:", STANDBY, dms.requestRole(DID2)); |
| 146 | assertEquals("wrong term", MastershipTerm.of(N1, 1), dms.getTermFor(DID2)); |
| 147 | } |
| 148 | |
| 149 | @Test |
| 150 | public void setMaster() { |
| 151 | //populate maps with DID1, N1 as MASTER thru NONE case |
| 152 | testStore.setCurrent(CN1); |
| 153 | assertEquals("wrong role for NONE:", MASTER, dms.requestRole(DID1)); |
| 154 | assertNull("wrong event:", dms.setMaster(N1, DID1)); |
| 155 | |
| 156 | //switch over to N2 |
| 157 | assertEquals("wrong event:", Type.MASTER_CHANGED, dms.setMaster(N2, DID1).type()); |
| 158 | assertEquals("wrong term", MastershipTerm.of(N2, 1), dms.getTermFor(DID1)); |
| 159 | |
| 160 | //orphan switch - should be rare case |
| 161 | assertEquals("wrong event:", Type.MASTER_CHANGED, dms.setMaster(N2, DID2).type()); |
| 162 | assertEquals("wrong term", MastershipTerm.of(N2, 0), dms.getTermFor(DID2)); |
| 163 | //disconnect and reconnect - sign of failing re-election or single-instance channel |
Ayaka Koshibe | f9b02fc | 2014-10-15 17:07:05 -0700 | [diff] [blame] | 164 | dms.roleMap.clear(); |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 165 | dms.setMaster(N2, DID2); |
| 166 | assertEquals("wrong term", MastershipTerm.of(N2, 1), dms.getTermFor(DID2)); |
| 167 | } |
| 168 | |
| 169 | @Test |
Ayaka Koshibe | c404770 | 2014-10-07 14:43:52 -0700 | [diff] [blame] | 170 | public void relinquishRole() { |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 171 | //populate maps with DID1, N1 as MASTER thru NONE case |
| 172 | testStore.setCurrent(CN1); |
| 173 | assertEquals("wrong role for NONE:", MASTER, dms.requestRole(DID1)); |
| 174 | //no backup, no new MASTER/event |
Ayaka Koshibe | c404770 | 2014-10-07 14:43:52 -0700 | [diff] [blame] | 175 | assertNull("wrong event:", dms.relinquishRole(N1, DID1)); |
Ayaka Koshibe | 25fd23a | 2014-10-03 15:50:43 -0700 | [diff] [blame] | 176 | |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 177 | dms.requestRole(DID1); |
Ayaka Koshibe | 25fd23a | 2014-10-03 15:50:43 -0700 | [diff] [blame] | 178 | |
| 179 | //add backup CN2, get it elected MASTER by relinquishing |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 180 | testStore.setCurrent(CN2); |
Ayaka Koshibe | c404770 | 2014-10-07 14:43:52 -0700 | [diff] [blame] | 181 | assertEquals("wrong role for NONE:", STANDBY, dms.requestRole(DID1)); |
| 182 | assertEquals("wrong event:", Type.MASTER_CHANGED, dms.relinquishRole(N1, DID1).type()); |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 183 | assertEquals("wrong master", N2, dms.getMaster(DID1)); |
| 184 | |
| 185 | //STANDBY - nothing here, either |
Ayaka Koshibe | c404770 | 2014-10-07 14:43:52 -0700 | [diff] [blame] | 186 | assertNull("wrong event:", dms.relinquishRole(N1, DID1)); |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 187 | assertEquals("wrong role for node:", STANDBY, dms.getRole(N1, DID1)); |
| 188 | |
Ayaka Koshibe | c404770 | 2014-10-07 14:43:52 -0700 | [diff] [blame] | 189 | //all nodes "give up" on device, which goes back to NONE. |
| 190 | assertNull("wrong event:", dms.relinquishRole(N2, DID1)); |
| 191 | assertEquals("wrong role for node:", NONE, dms.getRole(N2, DID1)); |
| 192 | assertEquals("wrong role for node:", NONE, dms.getRole(N1, DID1)); |
Ayaka Koshibe | 25fd23a | 2014-10-03 15:50:43 -0700 | [diff] [blame] | 193 | |
Ayaka Koshibe | f9b02fc | 2014-10-15 17:07:05 -0700 | [diff] [blame] | 194 | assertEquals("wrong number of retired nodes", 2, |
| 195 | dms.roleMap.get(DID1).nodesOfRole(NONE).size()); |
Ayaka Koshibe | c404770 | 2014-10-07 14:43:52 -0700 | [diff] [blame] | 196 | |
| 197 | //bring nodes back |
| 198 | assertEquals("wrong role for NONE:", MASTER, dms.requestRole(DID1)); |
| 199 | testStore.setCurrent(CN1); |
| 200 | assertEquals("wrong role for NONE:", STANDBY, dms.requestRole(DID1)); |
Ayaka Koshibe | f9b02fc | 2014-10-15 17:07:05 -0700 | [diff] [blame] | 201 | assertEquals("wrong number of backup nodes", 1, |
| 202 | dms.roleMap.get(DID1).nodesOfRole(STANDBY).size()); |
Ayaka Koshibe | c404770 | 2014-10-07 14:43:52 -0700 | [diff] [blame] | 203 | |
| 204 | //NONE - nothing happens |
| 205 | assertNull("wrong event:", dms.relinquishRole(N1, DID2)); |
| 206 | assertEquals("wrong role for node:", NONE, dms.getRole(N1, DID2)); |
Ayaka Koshibe | 25fd23a | 2014-10-03 15:50:43 -0700 | [diff] [blame] | 207 | |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 208 | } |
| 209 | |
Ayaka Koshibe | 5c0f237 | 2014-10-02 17:59:04 -0700 | [diff] [blame] | 210 | @Ignore("Ignore until Delegate spec. is clear.") |
| 211 | @Test |
| 212 | public void testEvents() throws InterruptedException { |
| 213 | //shamelessly copy other distributed store tests |
| 214 | final CountDownLatch addLatch = new CountDownLatch(1); |
| 215 | |
| 216 | MastershipStoreDelegate checkAdd = new MastershipStoreDelegate() { |
| 217 | @Override |
| 218 | public void notify(MastershipEvent event) { |
| 219 | assertEquals("wrong event:", Type.MASTER_CHANGED, event.type()); |
| 220 | assertEquals("wrong subject", DID1, event.subject()); |
Ayaka Koshibe | 67af1f4 | 2014-10-20 15:26:37 -0700 | [diff] [blame] | 221 | assertEquals("wrong subject", N1, event.node()); |
Ayaka Koshibe | 5c0f237 | 2014-10-02 17:59:04 -0700 | [diff] [blame] | 222 | addLatch.countDown(); |
| 223 | } |
| 224 | }; |
| 225 | |
| 226 | dms.setDelegate(checkAdd); |
| 227 | dms.setMaster(N1, DID1); |
| 228 | //this will fail until we do something about single-instance-ness |
| 229 | assertTrue("Add event fired", addLatch.await(1, TimeUnit.SECONDS)); |
| 230 | } |
| 231 | |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 232 | private class TestDistributedMastershipStore extends |
| 233 | DistributedMastershipStore { |
| 234 | public TestDistributedMastershipStore(StoreService storeService, |
Ayaka Koshibe | 4c89127 | 2014-10-08 17:14:16 -0700 | [diff] [blame] | 235 | KryoSerializer kryoSerialization) { |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 236 | this.storeService = storeService; |
Ayaka Koshibe | 4c89127 | 2014-10-08 17:14:16 -0700 | [diff] [blame] | 237 | this.serializer = kryoSerialization; |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 238 | } |
| 239 | |
| 240 | //helper to populate master/backup structures |
| 241 | public void put(DeviceId dev, NodeId node, |
Ayaka Koshibe | c404770 | 2014-10-07 14:43:52 -0700 | [diff] [blame] | 242 | boolean master, boolean backup, boolean term) { |
Ayaka Koshibe | f9b02fc | 2014-10-15 17:07:05 -0700 | [diff] [blame] | 243 | RoleValue rv = dms.roleMap.get(dev); |
| 244 | if (rv == null) { |
| 245 | rv = new RoleValue(); |
Ayaka Koshibe | f9b02fc | 2014-10-15 17:07:05 -0700 | [diff] [blame] | 246 | } |
Ayaka Koshibe | c404770 | 2014-10-07 14:43:52 -0700 | [diff] [blame] | 247 | |
| 248 | if (master) { |
Ayaka Koshibe | f9b02fc | 2014-10-15 17:07:05 -0700 | [diff] [blame] | 249 | rv.add(MASTER, node); |
| 250 | rv.reassign(node, STANDBY, NONE); |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 251 | } |
| 252 | if (backup) { |
Ayaka Koshibe | f9b02fc | 2014-10-15 17:07:05 -0700 | [diff] [blame] | 253 | rv.add(STANDBY, node); |
| 254 | rv.remove(MASTER, node); |
| 255 | rv.remove(NONE, node); |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 256 | } |
| 257 | if (term) { |
Ayaka Koshibe | f9b02fc | 2014-10-15 17:07:05 -0700 | [diff] [blame] | 258 | dms.terms.put(dev, 0); |
Ayaka Koshibe | c404770 | 2014-10-07 14:43:52 -0700 | [diff] [blame] | 259 | } |
Ayaka Koshibe | e8e4535 | 2014-10-16 00:37:19 -0700 | [diff] [blame] | 260 | dms.roleMap.put(dev, rv); |
Ayaka Koshibe | c404770 | 2014-10-07 14:43:52 -0700 | [diff] [blame] | 261 | } |
| 262 | |
Ayaka Koshibe | 4c89127 | 2014-10-08 17:14:16 -0700 | [diff] [blame] | 263 | //a dumb utility function. |
Ayaka Koshibe | c404770 | 2014-10-07 14:43:52 -0700 | [diff] [blame] | 264 | public void dump() { |
Ayaka Koshibe | f9b02fc | 2014-10-15 17:07:05 -0700 | [diff] [blame] | 265 | for (Map.Entry<DeviceId, RoleValue> el : dms.roleMap.entrySet()) { |
| 266 | System.out.println("DID: " + el.getKey()); |
| 267 | for (MastershipRole role : MastershipRole.values()) { |
Ayaka Koshibe | e8e4535 | 2014-10-16 00:37:19 -0700 | [diff] [blame] | 268 | System.out.println("\t" + role.toString() + ":"); |
Ayaka Koshibe | f9b02fc | 2014-10-15 17:07:05 -0700 | [diff] [blame] | 269 | for (NodeId n : el.getValue().nodesOfRole(role)) { |
Ayaka Koshibe | e8e4535 | 2014-10-16 00:37:19 -0700 | [diff] [blame] | 270 | System.out.println("\t\t" + n); |
Ayaka Koshibe | f9b02fc | 2014-10-15 17:07:05 -0700 | [diff] [blame] | 271 | } |
| 272 | } |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 273 | } |
| 274 | } |
| 275 | |
| 276 | //increment term for a device |
| 277 | public void increment(DeviceId dev) { |
Ayaka Koshibe | f9b02fc | 2014-10-15 17:07:05 -0700 | [diff] [blame] | 278 | Integer t = dms.terms.get(dev); |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 279 | if (t != null) { |
Ayaka Koshibe | f9b02fc | 2014-10-15 17:07:05 -0700 | [diff] [blame] | 280 | dms.terms.put(dev, ++t); |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 281 | } |
| 282 | } |
| 283 | |
| 284 | //sets the "local" node |
| 285 | public void setCurrent(ControllerNode node) { |
| 286 | ((TestClusterService) clusterService).current = node; |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | private class TestClusterService implements ClusterService { |
| 291 | |
| 292 | protected ControllerNode current; |
| 293 | |
| 294 | @Override |
| 295 | public ControllerNode getLocalNode() { |
| 296 | return current; |
| 297 | } |
| 298 | |
| 299 | @Override |
| 300 | public Set<ControllerNode> getNodes() { |
| 301 | return Sets.newHashSet(CN1, CN2); |
| 302 | } |
| 303 | |
| 304 | @Override |
| 305 | public ControllerNode getNode(NodeId nodeId) { |
| 306 | return null; |
| 307 | } |
| 308 | |
| 309 | @Override |
| 310 | public State getState(NodeId nodeId) { |
| 311 | return null; |
| 312 | } |
| 313 | |
| 314 | @Override |
| 315 | public void addListener(ClusterEventListener listener) { |
| 316 | } |
| 317 | |
| 318 | @Override |
| 319 | public void removeListener(ClusterEventListener listener) { |
| 320 | } |
| 321 | |
| 322 | } |
Ayaka Koshibe | 25fd23a | 2014-10-03 15:50:43 -0700 | [diff] [blame] | 323 | |
Ayaka Koshibe | 8583ff3 | 2014-10-02 16:25:30 -0700 | [diff] [blame] | 324 | } |