コード例 #1
0
 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();
   }
 }
コード例 #2
0
 @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);
 };