Class KafkaMirrorMaker2Resources


  • public class KafkaMirrorMaker2Resources
    extends Object
    Encapsulates the naming scheme used for the resources which the Cluster Operator manages for a KafkaMirrorMaker2 cluster.
    • Constructor Detail

      • KafkaMirrorMaker2Resources

        public KafkaMirrorMaker2Resources()
    • Method Detail

      • deploymentName

        public static String deploymentName​(String clusterName)
        Returns the name of the Kafka MirrorMaker 2.0 Deployment for a KafkaMirrorMaker2 cluster of the given name.
        Parameters:
        clusterName - The metadata.name of the KafkaMirrorMaker2 resource.
        Returns:
        The name of the corresponding Kafka MirrorMaker 2.0 Deployment.
      • serviceAccountName

        public static String serviceAccountName​(String clusterName)
        Returns the name of the Kafka MirrorMaker 2.0 ServiceAccount for a KafkaMirrorMaker2 cluster of the given name.
        Parameters:
        clusterName - The metadata.name of the KafkaMirrorMaker2 resource.
        Returns:
        The name of the corresponding Kafka MirrorMaker 2.0 ServiceAccount.
      • serviceName

        public static String serviceName​(String clusterName)
        Returns the name of the HTTP REST Service for a KafkaMirrorMaker2 cluster of the given name.
        Parameters:
        clusterName - The metadata.name of the KafkaMirrorMaker2 resource.
        Returns:
        The name of the corresponding Service.
      • metricsAndLogConfigMapName

        public static String metricsAndLogConfigMapName​(String clusterName)
        Returns the name of the Kafka MirrorMaker 2.0 metrics and log ConfigMap for a KafkaMirrorMaker2 cluster of the given name.
        Parameters:
        clusterName - The metadata.name of the KafkaMirrorMaker2 resource.
        Returns:
        The name of the corresponding KafkaMirrorMaker2 metrics and log ConfigMap.
      • qualifiedServiceName

        public static String qualifiedServiceName​(String clusterName,
                                                  String namespace)
        Returns qualified name of the service which works across different namespaces.
        Parameters:
        clusterName - The metadata.name of the KafkaMirrorMaker2 resource.
        namespace - Namespace of the Connect deployment
        Returns:
        qualified namespace in the format "<service-name>.<namespace>.svc"
      • url

        public static String url​(String clusterName,
                                 String namespace,
                                 int port)
        Returns the URL of the Kafka MirrorMaker 2.0 REST API for a KafkaMirrorMaker2 cluster of the given name.
        Parameters:
        clusterName - The metadata.name of the KafkaMirrorMaker2 resource.
        namespace - The namespace where KafkaMirrorMaker2 cluster is running.
        port - The port on which the KafkaMirrorMaker2 API is available.
        Returns:
        The base URL of the KafkaMirrorMaker2 REST API.