Package org.exoplatform.services.remote.group

Examples of org.exoplatform.services.remote.group.MemberInfo


   {
      StringBuffer b = new StringBuffer();
      List members = getMembersInfo();
      for (int i = 0; i < members.size(); i++)
      {
         MemberInfo addr = (MemberInfo)members.get(i);
         b.append("Name: " + addr.getHostName()).append("; Address " + addr.getIpAddress()).append(
            "; Port " + addr.getPort()).append("\n");
      }
      return b.toString();
   }
View Full Code Here


   {
      StringBuffer b = new StringBuffer();
      List members = getMembersInfo();
      for (int i = 0; i < members.size(); i++)
      {
         MemberInfo addr = (MemberInfo)members.get(i);
         b.append("Name: " + addr.getHostName()).append("; Address " + addr.getIpAddress()).append(
            "; Port " + addr.getPort()).append("\n");
      }
      return b.toString();
   }
View Full Code Here

      return null;
   }

   static public MemberInfo createMemberInfo(Object member)
   {
      MemberInfo info = new MemberInfo();
      if (member instanceof IpAddress)
      {
         IpAddress addr = (IpAddress)member;
         info.setHostName(addr.getIpAddress().getHostName());
         info.setIpAddress(addr.getIpAddress().getHostAddress());
         info.setPort(addr.getPort());
      }
      else
      {
         info.setHostName(member.toString());
         info.setIpAddress(member.toString());
      }
      return info;
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.remote.group.MemberInfo

Copyright © 2018 www.massapicom. 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.