@Test public void testNodeConnection(){ System.out.println("** Testing simple node connection **"); nodeConnection = NodeConnection.getInstance(); nodeConnection.addNodeUrl(NODE_URL_1); nodeConnection.connect("", "", true, mErrorListener); Timer timer = new Timer(); timer.schedule(getAccountsTask, 5000); timer.schedule(releaseTask, 30000); try{ synchronized (this){ wait(); } }catch(InterruptedException e){ System.out.println("InterruptedException. Msg: "+e.getMessage()); } }
public NodeConnection(){ this.mUrlList = new ArrayList<>(); }
NodeConnection { public NodeConnection(){ this.mUrlList = new ArrayList<>(); } }
NodeConnection { public NodeConnection(){ this.mUrlList = new ArrayList<>(); } NodeConnection(); }
NodeConnection { public NodeConnection(){ this.mUrlList = new ArrayList<>(); } NodeConnection(); static NodeConnection getInstance(); void addNodeUrl(String url); void addNodeUrls(List<String> urlList); List<String> getNodeUrls(); void clearNodeList(); void connect(String user, String password, boolean subscribe, NodeErrorListener errorListener); void addRequestHandler(BaseGrapheneHandler handler); }
NodeConnection { public NodeConnection(){ this.mUrlList = new ArrayList<>(); } NodeConnection(); static NodeConnection getInstance(); void addNodeUrl(String url); void addNodeUrls(List<String> urlList); List<String> getNodeUrls(); void clearNodeList(); void connect(String user, String password, boolean subscribe, NodeErrorListener errorListener); void addRequestHandler(BaseGrapheneHandler handler);  }