Package org.hive2hive.core.api.interfaces

Examples of org.hive2hive.core.api.interfaces.IH2HNode.disconnect()


   
    // shutdown network
    IH2HNode node = menus.getNodeMenu().getNode();
    if (node != null && node.isConnected()) {
      print("Disconnecting from the network...");
      node.disconnect();     
    }
   
    // stop file observer
    IFileObserver fileObserver = menus.getFileObserverMenu().getFileObserver();
    if (fileObserver != null && fileObserver.isRunning()) {
View Full Code Here


   
    assertTrue(listener.connectionSucceeded || listener.connectionFailed);
    assertTrue(!listener.disconnectionSucceeded && !listener.disconnectionFailed);
    listener.reset();
   
    node.disconnect();
    assertTrue(listener.disconnectionSucceeded || listener.disconnectionFailed);
    assertTrue(!listener.connectionSucceeded && !listener.connectionFailed);
    listener.reset();
  }
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.