Package com.mapr.client.impl.rpc
Class ServiceHosts
- java.lang.Object
-
- com.mapr.client.impl.rpc.ServiceHosts
-
- All Implemented Interfaces:
java.lang.Iterable<HostAndPort>
public final class ServiceHosts extends java.lang.Object implements java.lang.Iterable<HostAndPort>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceHostscreateServiceHosts(java.util.List<HostAndPort> hostList)static ServiceHostscreateServiceHostsFromServerMsg(com.mapr.fs.proto.Common.Server serverMsg)java.util.List<HostAndPort>getHostList()java.util.Iterator<HostAndPort>iterator()static ServiceHostsparseFrom(java.lang.String serviceAddresses)intsize()java.lang.StringtoString()
-
-
-
Method Detail
-
createServiceHostsFromServerMsg
public static ServiceHosts createServiceHostsFromServerMsg(com.mapr.fs.proto.Common.Server serverMsg)
-
createServiceHosts
public static ServiceHosts createServiceHosts(java.util.List<HostAndPort> hostList)
-
parseFrom
public static ServiceHosts parseFrom(java.lang.String serviceAddresses)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getHostList
public java.util.List<HostAndPort> getHostList()
-
iterator
public java.util.Iterator<HostAndPort> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<HostAndPort>
-
size
public int size()
-
-