Examples of disconnect()


Examples of redis.clients.jedis.BinaryJedis.disconnect()

      try {
        try {
          jedis.quit();
        } catch (Exception e) {
        }
        jedis.disconnect();
      } catch (Exception e) {

      }
    }
View Full Code Here

Examples of redis.clients.jedis.Jedis.disconnect()

    @Before
    public void setUp() throws Exception {
  Jedis jedis = new Jedis(redis1.getHost(), redis1.getPort());
  jedis.auth("foobared");
  jedis.flushAll();
  jedis.disconnect();
  jedis = new Jedis(redis2.getHost(), redis2.getPort());
  jedis.auth("foobared");
  jedis.flushAll();
  jedis.disconnect();
View Full Code Here

Examples of redis.clients.jedis.ShardedJedis.disconnect()

    @Test
    public void checkPoolRepairedWhenJedisIsBroken() {
  ShardedJedisPool pool = new ShardedJedisPool(
    new GenericObjectPoolConfig(), shards);
  ShardedJedis jedis = pool.getResource();
  jedis.disconnect();
  pool.returnBrokenResource(jedis);

  jedis = pool.getResource();
  jedis.incr("foo");
  pool.returnResource(jedis);
View Full Code Here

Examples of se.bitcraze.crazyflie.Crazyflie.disconnect()

      crazyflie.connect(uris[0]);

      while (!Thread.currentThread().isInterrupted())
        Thread.sleep(1000);
    } finally {
      crazyflie.disconnect();
    }
  }

  public static void main(String[] args) throws Exception {
    CrazyflieTest usb = new CrazyflieTest();
View Full Code Here

Examples of se.cgbystrom.netty.http.websocket.WebSocketClient.disconnect()

        client.connect().awaitUninterruptibly();
        Thread.sleep(1000);

        assertTrue(callback.connected);
        assertEquals(TestClient.TEST_MESSAGE.toUpperCase(), callback.messageReceived);
        client.disconnect();
        Thread.sleep(1000);

        assertFalse(callback.connected);
    }
View Full Code Here

Examples of simtools.diagram.gate.Connection.disconnect()

            ConnectionPathSelection cs = (ConnectionPathSelection)_elementContainer.getSelection().getSelectedShape(0);
            Connection connection = cs.getConnection();

            if( cs.isFirstEndSelected() && connection.getFirstEndGate()!=null ){
                Gate firstGate = connection.getFirstEndGate()
                connection.disconnect(firstGate);
                ce.addEdit(new GateDisconnectEdit(connection, firstGate,true));  

            } else if( cs.isLastEndSelected() && connection.getLastEndGate()!=null  ){
                Gate lastGate = connection.getLastEndGate()
                connection.disconnect(lastGate);
View Full Code Here

Examples of sos.connection.SOSConnection.disconnect()

    } catch (Exception e){
      getLogger().error ("maintenance monitor failed: " + e);
          return false;
    }finally {
          if (new_connection && (connection != null)) {
              connection.disconnect();
              connection = null;
          }
      }

      return false;
View Full Code Here

Examples of sos.ftp.profiles.FTPProfile.disconnect()

        MainWindow.getContainer().getCurrentTab().setData("ftp_hot_folder_elements", nameOfLifeElement);

        MainWindow.setSaveStatus()
      }

      profile.disconnect();
      schedulerConfigurationShell.dispose();
    } catch(Exception e) {
      try {
        new ErrorLog("error in " + sos.util.SOSClassUtil.getMethodName() + " ; could not Open Hot Folder.", e);
      } catch(Exception ee) {
View Full Code Here

Examples of sos.net.SOSFTP.disconnect()

          try {
            ftpClient.logout();
          } catch (Exception e) {} // no error handling
        if (ftpClient.isConnected())
          try {
            ftpClient.disconnect();
          } catch (Exception e) {} // no error handling
      }
    }

  }
View Full Code Here

Examples of sos.net.SOSFileTransfer.disconnect()

        tryAgain = false;
      }
      FTPProfileDialog.message( "..error in ftp server init with [host=" + host + "], [port="+ port + "], cause: " + FTPDialogListener.getErrorMessage(ex), SWT.ICON_ERROR );
      try {
        if(sosftp != null)
          sosftp.disconnect();
      } catch (Exception e) {}
    }
   
    return sosftp;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.