类的使用
com.mysql.cj.conf.HostInfo
-
使用HostInfo的程序包 程序包 说明 com.mysql.cj com.mysql.cj.conf com.mysql.cj.conf.url com.mysql.cj.jdbc com.mysql.cj.jdbc.ha com.mysql.cj.protocol.x com.mysql.cj.xdevapi Java classes for X DevAPI support. -
-
com.mysql.cj中HostInfo的使用
声明为HostInfo的com.mysql.cj中的字段 修饰符和类型 字段 说明 protected HostInfoCoreSession. hostInfo返回HostInfo的com.mysql.cj中的方法 修饰符和类型 方法 说明 HostInfoCoreSession. getHostInfo()HostInfoSession. getHostInfo()参数类型为HostInfo的com.mysql.cj中的方法 修饰符和类型 方法 说明 voidNativeSession. connect(HostInfo hi, String user, String password, String database, int loginTimeout, TransactionEventHandler transactionManager)参数类型为HostInfo的com.mysql.cj中的构造器 构造器 说明 CoreSession(HostInfo hostInfo, PropertySet propSet)MysqlxSession(HostInfo hostInfo, PropertySet propSet)NativeSession(HostInfo hostInfo, PropertySet propSet) -
com.mysql.cj.conf中HostInfo的使用
类型参数类型为HostInfo的com.mysql.cj.conf中的字段 修饰符和类型 字段 说明 protected List<HostInfo>ConnectionUrl. hosts返回HostInfo的com.mysql.cj.conf中的方法 修饰符和类型 方法 说明 protected HostInfoConnectionUrl. buildHostInfo(String host, int port, String user, String password, Map<String,String> hostProps)Creates a newHostInfostructure with the given components, passing through the properties transformer if there is one defined in this connection string;protected HostInfoConnectionUrl. fixHostInfo(HostInfo hi)Fixes the host information by moving data around and filling in missing data.HostInfoConnectionUrl. getHostOrSpawnIsolated(String hostPortPair)Returns an existing host info with the same host:port part or spawns a new isolated host info based on this connection URL if none was found.HostInfoConnectionUrl. getHostOrSpawnIsolated(String hostPortPair, List<HostInfo> hostsList)Returns an existing host info with the same host:port part or spawns a new isolated host info based on this connection URL if none was found.HostInfoConnectionUrl. getMainHost()Returns the single or first host info structure.返回变量类型为HostInfo的类型的com.mysql.cj.conf中的方法 修饰符和类型 方法 说明 List<HostInfo>ConnectionUrlParser. getHosts()Returns the hosts information.List<HostInfo>ConnectionUrl. getHostsList()Returns a list of the hosts in this connection URL.List<HostInfo>ConnectionUrl. getHostsList(HostsListView view)Returns a list of the hosts in this connection URL, filtered for the given view.List<HostInfo>ConnectionUrl. getHostsListFromDnsSrv(HostInfo srvHost)Returns a hosts list built from the result of the DNS SRV lookup for the original host name.参数类型为HostInfo的com.mysql.cj.conf中的方法 修饰符和类型 方法 说明 booleanHostInfo. equalHostPortPair(HostInfo hi)protected HostInfoConnectionUrl. fixHostInfo(HostInfo hi)Fixes the host information by moving data around and filling in missing data.List<HostInfo>ConnectionUrl. getHostsListFromDnsSrv(HostInfo srvHost)Returns a hosts list built from the result of the DNS SRV lookup for the original host name.类型变量类型为HostInfo的com.mysql.cj.conf中的方法参数 修饰符和类型 方法 说明 HostInfoConnectionUrl. getHostOrSpawnIsolated(String hostPortPair, List<HostInfo> hostsList)Returns an existing host info with the same host:port part or spawns a new isolated host info based on this connection URL if none was found. -
com.mysql.cj.conf.url中HostInfo的使用
返回HostInfo的com.mysql.cj.conf.url中的方法 修饰符和类型 方法 说明 HostInfoReplicationConnectionUrl. getReplicaHostOrSpawnIsolated(String hostPortPair)Returns an existing replica host info with the same host:port part or spawns a new isolated host info based on this connection URL if none was found.HostInfoReplicationConnectionUrl. getSourceHostOrSpawnIsolated(String hostPortPair)Returns an existing source host info with the same host:port part or spawns a new isolated host info based on this connection URL if none was found.返回变量类型为HostInfo的类型的com.mysql.cj.conf.url中的方法 修饰符和类型 方法 说明 List<HostInfo>LoadBalanceConnectionUrl. getHostInfoListFromHostPortPairs(Collection<String> hostPortPairs)Returns the list ofHostInfoinstances that matches the given collection of host:port pairs.List<HostInfo>FailoverDnsSrvConnectionUrl. getHostsList(HostsListView view)Returns a hosts list built from the result of the DNS SRV lookup for the original host name.List<HostInfo>LoadBalanceDnsSrvConnectionUrl. getHostsList(HostsListView view)Returns a hosts list built from the result of the DNS SRV lookup for the original host name.List<HostInfo>ReplicationConnectionUrl. getHostsList(HostsListView view)Returns a list of the hosts in this connection URL, filtered for the given view.List<HostInfo>ReplicationDnsSrvConnectionUrl. getHostsList(HostsListView view)Returns a hosts list built from the result of the DNS SRV lookup for the original host name.List<HostInfo>XDevApiConnectionUrl. getHostsList(HostsListView view)List<HostInfo>XDevApiDnsSrvConnectionUrl. getHostsList(HostsListView view)Returns a hosts list built from the result of the DNS SRV lookup for the original host name.List<HostInfo>ReplicationConnectionUrl. getReplicaHostsListFromHostPortPairs(Collection<String> hostPortPairs)Returns the list ofHostInfoinstances that matches the given collection of host:port pairs in the corresponding hosts list.List<HostInfo>ReplicationConnectionUrl. getSourceHostsListFromHostPortPairs(Collection<String> hostPortPairs)Returns the list ofHostInfoinstances that matches the given collection of host:port pairs in the corresponding hosts list.类型变量类型为HostInfo的com.mysql.cj.conf.url中的构造器参数 构造器 说明 LoadBalanceConnectionUrl(List<HostInfo> hosts, Map<String,String> properties)Constructs an instance of aLoadBalanceConnectionUrlbased on a list of hosts and a global set of properties instead of connection string parsing.ReplicationConnectionUrl(List<HostInfo> sources, List<HostInfo> replicas, Map<String,String> properties)Constructs an instance of aReplicationConnectionUrlbased on a list of source hosts, a list of replica hosts and a global set of properties instead of connection string parsing. -
com.mysql.cj.jdbc中HostInfo的使用
参数类型为HostInfo的com.mysql.cj.jdbc中的方法 修饰符和类型 方法 说明 static JdbcConnectionConnectionImpl. getInstance(HostInfo hostInfo)Creates a connection instance.参数类型为HostInfo的com.mysql.cj.jdbc中的构造器 构造器 说明 ConnectionImpl(HostInfo hostInfo)Creates a connection to a MySQL Server. -
com.mysql.cj.jdbc.ha中HostInfo的使用
参数类型为HostInfo的com.mysql.cj.jdbc.ha中的方法 修饰符和类型 方法 说明 ConnectionImplLoadBalancedConnectionProxy. createConnectionForHost(HostInfo hostInfo)Creates a new physical connection for the givenHostInfoand updates required internal mappings and statistics for that connection. -
com.mysql.cj.protocol.x中HostInfo的使用
参数类型为HostInfo的com.mysql.cj.protocol.x中的构造器 构造器 说明 XProtocol(HostInfo hostInfo, PropertySet propertySet) -
com.mysql.cj.xdevapi中HostInfo的使用
返回HostInfo的com.mysql.cj.xdevapi中的方法 修饰符和类型 方法 说明 HostInfoClientImpl.PooledXProtocol. getHostInfo()参数类型为HostInfo的com.mysql.cj.xdevapi中的构造器 构造器 说明 PooledXProtocol(HostInfo hostInfo, PropertySet propertySet)SessionImpl(HostInfo hostInfo)Constructor.
-