commit | 69a27353f034e85919c5709e402621424bbcfd10 | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@onlab.us> | Fri Oct 31 15:48:37 2014 -0700 |
committer | Yuta HIGUCHI <y-higuchi@onlab.us> | Fri Oct 31 23:21:39 2014 -0700 |
tree | c1fa8d3a4e90631bf484e5c3486852c108e36f21 | |
parent | d19f6706a602c9ac8f68e12193c0eb4834f8db74 [diff] |
move isConnected to OpenFlowSwitch interface Change-Id: I08d1746dc05464135cabe31888f6bb3eac9c15d5
diff --git a/openflow/api/src/main/java/org/onlab/onos/openflow/controller/OpenFlowSwitch.java b/openflow/api/src/main/java/org/onlab/onos/openflow/controller/OpenFlowSwitch.java index 77eb437..2d3f890 100644 --- a/openflow/api/src/main/java/org/onlab/onos/openflow/controller/OpenFlowSwitch.java +++ b/openflow/api/src/main/java/org/onlab/onos/openflow/controller/OpenFlowSwitch.java
@@ -115,6 +115,13 @@ public String serialNumber(); /** + * Checks if the switch is still connected. + * + * @return whether the switch is still connected + */ + public boolean isConnected(); + + /** * Disconnects the switch by closing the TCP connection. Results in a call * to the channel handler's channelDisconnected method for cleanup */
diff --git a/openflow/api/src/main/java/org/onlab/onos/openflow/controller/driver/OpenFlowSwitchDriver.java b/openflow/api/src/main/java/org/onlab/onos/openflow/controller/driver/OpenFlowSwitchDriver.java index 2647fed..b6a4770 100644 --- a/openflow/api/src/main/java/org/onlab/onos/openflow/controller/driver/OpenFlowSwitchDriver.java +++ b/openflow/api/src/main/java/org/onlab/onos/openflow/controller/driver/OpenFlowSwitchDriver.java
@@ -187,13 +187,6 @@ public void setConnected(boolean connected); /** - * Checks if the switch is still connected. - * - * @return whether the switch is still connected - */ - public boolean isConnected(); - - /** * Writes the message to the output stream * in a driver specific manner. *