protected void setConnectionInfo(String connectionInfo) { if (null == connectionInfo) { // TODO work on nullity semantics log.warn("Attempt to set connectionInfo null"); connectionInfo = ""; } if (!connectionInfo.equals(deviceConnectivity.info)) { deviceConnectivity.info = connectionInfo; writeDeviceConnectivity(); } }
@Override public void emit( ice.ConnectionState newState, ice.ConnectionState oldState, String transitionNote) { stateChanging(newState, oldState, transitionNote); log.debug(oldState + "==>" + newState + " (" + transitionNote + ")"); deviceConnectivity.state = newState; deviceConnectivity.info = transitionNote; InstanceHandle_t handle = deviceConnectivityHandle; if (handle != null) { writeDeviceConnectivity(); } stateChanged(newState, oldState, transitionNote); };