Jonathan Hart | 8918737 | 2013-03-14 16:41:09 -0700 | [diff] [blame^] | 1 | package net.onrc.onos.registry.controller; |
| 2 | |
| 3 | import net.onrc.onos.registry.controller.IControllerRegistryService.ControlChangeCallback; |
| 4 | |
| 5 | import com.netflix.curator.framework.recipes.leader.LeaderLatch; |
| 6 | |
| 7 | public class SwitchLeadershipData { |
| 8 | |
| 9 | private LeaderLatch latch; |
| 10 | private ControlChangeCallback cb; |
| 11 | |
| 12 | public SwitchLeadershipData(LeaderLatch latch, ControlChangeCallback cb) { |
| 13 | this.latch = latch; |
| 14 | this.cb = cb; |
| 15 | } |
| 16 | |
| 17 | public LeaderLatch getLatch(){ |
| 18 | return latch; |
| 19 | } |
| 20 | |
| 21 | public ControlChangeCallback getCallback(){ |
| 22 | return cb; |
| 23 | } |
| 24 | |
| 25 | } |