Class ClusterAwareUtils

java.lang.Object
com.mysql.cj.jdbc.ha.ca.ClusterAwareUtils

public class ClusterAwareUtils
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    ClusterAwareUtils()  
  • Method Summary

    Modifier and Type Method Description
    static HostInfo copyWithAdditionalProps​(HostInfo baseHostInfo, java.util.Map<java.lang.String,​java.lang.String> additionalProps)
    Create a copy of the given HostInfo object where all details are the same except for the host properties, which will contain both the original properties and the properties passed into the function

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • copyWithAdditionalProps

      public static HostInfo copyWithAdditionalProps​(HostInfo baseHostInfo, java.util.Map<java.lang.String,​java.lang.String> additionalProps)
      Create a copy of the given HostInfo object where all details are the same except for the host properties, which will contain both the original properties and the properties passed into the function
      Parameters:
      baseHostInfo - The HostInfo object to copy
      additionalProps - The map of properties to add to the new HostInfo copy
      Returns:
      A copy of the given HostInfo object where all details are the same except for the host properties, will contain both the original properties and the properties passed into the function. Returns null if baseHostInfo is null