Пример #1
0
 public List<String> getConnectedSources(String sid) {
   LCPair[] arrr = scm.getListenConns(sid);
   List<String> result = new ArrayList<String>();
   for (LCPair lcp : arrr) {
     result.add(lcp.getCC().getNodeId());
   }
   return result;
 }
Пример #2
0
 public List<String> getMyEndPointUrls() {
   List<String> result = new ArrayList<String>();
   for (EndPointMgr epMgr : getNetMgr().getEndPointMgrs()) {
     EndPoint localEp = epMgr.getLocalEndPoint();
     if (localEp != null) result.add(localEp.getUrl());
     EndPoint publicEp = epMgr.getPublicEndPoint();
     if (publicEp != null && ((localEp == null) || !publicEp.getUrl().equals(localEp.getUrl())))
       result.add(publicEp.getUrl());
   }
   return result;
 }