Class SidecarInstanceFactory


  • public class SidecarInstanceFactory
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static o.a.c.sidecar.client.shaded.client.SidecarInstanceImpl createFromString​(java.lang.String hostnameWithPort)
      Similar to createFromString(String, int), but it requires that the input string must include port
      static o.a.c.sidecar.client.shaded.client.SidecarInstanceImpl createFromString​(java.lang.String input, int defaultPort)
      Create SidecarInstance object by parsing the input string, which is IP address or hostname and optionally includes port
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createFromString

        public static o.a.c.sidecar.client.shaded.client.SidecarInstanceImpl createFromString​(java.lang.String input,
                                                                                              int defaultPort)
        Create SidecarInstance object by parsing the input string, which is IP address or hostname and optionally includes port
        Parameters:
        input - hostname string that can optionally includes the port. If port is present, the defaultPort param is ignored.
        defaultPort - port value used when the input string contains no port
        Returns:
        SidecarInstanceImpl
      • createFromString

        public static o.a.c.sidecar.client.shaded.client.SidecarInstanceImpl createFromString​(java.lang.String hostnameWithPort)
        Similar to createFromString(String, int), but it requires that the input string must include port
        Parameters:
        hostnameWithPort - hostname with port
        Returns:
        SidecarInstanceImpl