public class HostAddress extends Object
| Constructor and Description |
|---|
HostAddress() |
| Modifier and Type | Method and Description |
|---|---|
static HostAddress[] |
parse(String spec)
parse - parse server addresses from the URL fragment
|
static String |
toString(HostAddress[] addrs) |
public String host
public int port
public static HostAddress[] parse(String spec)
spec - - list of endpoints in one of the forms
1 - host1,....,hostN:port (missing port default to MySQL default 3306
2 - host:port,...,host:portpublic static String toString(HostAddress[] addrs)
Copyright © 2014. All rights reserved.