Madan Jampani
Committed by Gerrit Code Review

Rename HandShake -> Handshake

Change-Id: I7e474aceb9c0726b252b6520e2fad8dd000b00aa
...@@ -33,9 +33,9 @@ import java.util.concurrent.atomic.AtomicBoolean; ...@@ -33,9 +33,9 @@ import java.util.concurrent.atomic.AtomicBoolean;
33 /** 33 /**
34 * Corsa switch handshaker. 34 * Corsa switch handshaker.
35 */ 35 */
36 -public class CorsaSwitchHandShaker extends AbstractOpenFlowSwitch { 36 +public class CorsaSwitchHandshaker extends AbstractOpenFlowSwitch {
37 37
38 - private AtomicBoolean handShakeComplete = new AtomicBoolean(false); 38 + private AtomicBoolean handshakeComplete = new AtomicBoolean(false);
39 39
40 private int barrierXid; 40 private int barrierXid;
41 41
...@@ -72,7 +72,7 @@ public class CorsaSwitchHandShaker extends AbstractOpenFlowSwitch { ...@@ -72,7 +72,7 @@ public class CorsaSwitchHandShaker extends AbstractOpenFlowSwitch {
72 if (!startDriverHandshakeCalled) { 72 if (!startDriverHandshakeCalled) {
73 throw new SwitchDriverSubHandshakeAlreadyStarted(); 73 throw new SwitchDriverSubHandshakeAlreadyStarted();
74 } 74 }
75 - return handShakeComplete.get(); 75 + return handshakeComplete.get();
76 } 76 }
77 77
78 @Override 78 @Override
...@@ -80,12 +80,12 @@ public class CorsaSwitchHandShaker extends AbstractOpenFlowSwitch { ...@@ -80,12 +80,12 @@ public class CorsaSwitchHandShaker extends AbstractOpenFlowSwitch {
80 if (!startDriverHandshakeCalled) { 80 if (!startDriverHandshakeCalled) {
81 throw new SwitchDriverSubHandshakeNotStarted(); 81 throw new SwitchDriverSubHandshakeNotStarted();
82 } 82 }
83 - if (handShakeComplete.get()) { 83 + if (handshakeComplete.get()) {
84 throw new SwitchDriverSubHandshakeCompleted(m); 84 throw new SwitchDriverSubHandshakeCompleted(m);
85 } 85 }
86 if (m.getType() == OFType.BARRIER_REPLY && 86 if (m.getType() == OFType.BARRIER_REPLY &&
87 m.getXid() == barrierXid) { 87 m.getXid() == barrierXid) {
88 - handShakeComplete.set(true); 88 + handshakeComplete.set(true);
89 } 89 }
90 } 90 }
91 91
......
...@@ -28,7 +28,7 @@ import java.util.stream.Collectors; ...@@ -28,7 +28,7 @@ import java.util.stream.Collectors;
28 /** 28 /**
29 * Default driver to fallback on if no other driver is available. 29 * Default driver to fallback on if no other driver is available.
30 */ 30 */
31 -public class DefaultSwitchHandShaker extends AbstractOpenFlowSwitch { 31 +public class DefaultSwitchHandshaker extends AbstractOpenFlowSwitch {
32 32
33 private static final int LOWEST_PRIORITY = 0; 33 private static final int LOWEST_PRIORITY = 0;
34 34
......
...@@ -21,7 +21,7 @@ import org.projectfloodlight.openflow.protocol.OFVersion; ...@@ -21,7 +21,7 @@ import org.projectfloodlight.openflow.protocol.OFVersion;
21 /** 21 /**
22 * Default driver to fallback on if no other driver is available. 22 * Default driver to fallback on if no other driver is available.
23 */ 23 */
24 -public class NiciraSwitchHandShaker extends DefaultSwitchHandShaker { 24 +public class NiciraSwitchHandshaker extends DefaultSwitchHandshaker {
25 25
26 @Override 26 @Override
27 public Boolean supportNxRole() { 27 public Boolean supportNxRole() {
......
...@@ -20,12 +20,12 @@ ...@@ -20,12 +20,12 @@
20 <behaviour api="org.onosproject.net.behaviour.Pipeliner" 20 <behaviour api="org.onosproject.net.behaviour.Pipeliner"
21 impl="org.onosproject.driver.pipeline.DefaultSingleTablePipeline"/> 21 impl="org.onosproject.driver.pipeline.DefaultSingleTablePipeline"/>
22 <behaviour api="org.onosproject.openflow.controller.driver.OpenFlowSwitchDriver" 22 <behaviour api="org.onosproject.openflow.controller.driver.OpenFlowSwitchDriver"
23 - impl="org.onosproject.driver.handshaker.DefaultSwitchHandShaker"/> 23 + impl="org.onosproject.driver.handshaker.DefaultSwitchHandshaker"/>
24 </driver> 24 </driver>
25 <driver name="ovs" extends="default" 25 <driver name="ovs" extends="default"
26 manufacturer="Nicira, Inc\." hwVersion="Open vSwitch" swVersion="2\..*"> 26 manufacturer="Nicira, Inc\." hwVersion="Open vSwitch" swVersion="2\..*">
27 <behaviour api="org.onosproject.openflow.controller.driver.OpenFlowSwitchDriver" 27 <behaviour api="org.onosproject.openflow.controller.driver.OpenFlowSwitchDriver"
28 - impl="org.onosproject.driver.handshaker.NiciraSwitchHandShaker"/> 28 + impl="org.onosproject.driver.handshaker.NiciraSwitchHandshaker"/>
29 </driver> 29 </driver>
30 <driver name="ovs-corsa" extends="ovs" 30 <driver name="ovs-corsa" extends="ovs"
31 manufacturer="Corsa" hwVersion="emulation" swVersion="0.0.0"> 31 manufacturer="Corsa" hwVersion="emulation" swVersion="0.0.0">
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
55 <behaviour api="org.onosproject.net.behaviour.Pipeliner" 55 <behaviour api="org.onosproject.net.behaviour.Pipeliner"
56 impl="org.onosproject.driver.pipeline.CorsaPipeline"/> 56 impl="org.onosproject.driver.pipeline.CorsaPipeline"/>
57 <behaviour api="org.onosproject.openflow.controller.driver.OpenFlowSwitchDriver" 57 <behaviour api="org.onosproject.openflow.controller.driver.OpenFlowSwitchDriver"
58 - impl="org.onosproject.driver.handshaker.CorsaSwitchHandShaker"/> 58 + impl="org.onosproject.driver.handshaker.CorsaSwitchHandshaker"/>
59 </driver> 59 </driver>
60 <driver name="ofdpa" extends="default" 60 <driver name="ofdpa" extends="default"
61 manufacturer="Broadcom Corp." hwVersion="OF-DPA 1.0" swVersion="OF-DPA 1.0"> 61 manufacturer="Broadcom Corp." hwVersion="OF-DPA 1.0" swVersion="OF-DPA 1.0">
......