Class KubernetesMetadata

    • Method Detail

      • localServiceName

        public final String localServiceName()

        The service name for a local resource.

        Returns:
        The service name for a local resource.
      • localPodName

        public final String localPodName()

        The name of the pod for a local resource.

        Returns:
        The name of the pod for a local resource.
      • localPodNamespace

        public final String localPodNamespace()

        The namespace of the pod for a local resource.

        Returns:
        The namespace of the pod for a local resource.
      • remoteServiceName

        public final String remoteServiceName()

        The service name for a remote resource.

        Returns:
        The service name for a remote resource.
      • remotePodName

        public final String remotePodName()

        The name of the pod for a remote resource.

        Returns:
        The name of the pod for a remote resource.
      • remotePodNamespace

        public final String remotePodNamespace()

        The namespace of the pod for a remote resource.

        Returns:
        The namespace of the pod for a remote resource.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)