Package io.strimzi.api.kafka.model
Class KafkaMirrorMaker2Resources
- java.lang.Object
-
- io.strimzi.api.kafka.model.KafkaMirrorMaker2Resources
-
public class KafkaMirrorMaker2Resources extends Object
Encapsulates the naming scheme used for the resources which the Cluster Operator manages for aKafkaMirrorMaker2cluster.
-
-
Constructor Summary
Constructors Constructor Description KafkaMirrorMaker2Resources()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringdeploymentName(String clusterName)Returns the name of the Kafka MirrorMaker 2.0Deploymentfor aKafkaMirrorMaker2cluster of the given name.static StringmetricsAndLogConfigMapName(String clusterName)Returns the name of the Kafka MirrorMaker 2.0 metrics and logConfigMapfor aKafkaMirrorMaker2cluster of the given name.static StringqualifiedServiceName(String clusterName, String namespace)Returns qualified name of the service which works across different namespaces.static StringserviceAccountName(String clusterName)Returns the name of the Kafka MirrorMaker 2.0ServiceAccountfor aKafkaMirrorMaker2cluster of the given name.static StringserviceName(String clusterName)Returns the name of the HTTP RESTServicefor aKafkaMirrorMaker2cluster of the given name.static Stringurl(String clusterName, String namespace, int port)Returns the URL of the Kafka MirrorMaker 2.0 REST API for aKafkaMirrorMaker2cluster of the given name.
-
-
-
Method Detail
-
deploymentName
public static String deploymentName(String clusterName)
Returns the name of the Kafka MirrorMaker 2.0Deploymentfor aKafkaMirrorMaker2cluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaMirrorMaker2resource.- 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.0ServiceAccountfor aKafkaMirrorMaker2cluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaMirrorMaker2resource.- Returns:
- The name of the corresponding Kafka MirrorMaker 2.0
ServiceAccount.
-
serviceName
public static String serviceName(String clusterName)
Returns the name of the HTTP RESTServicefor aKafkaMirrorMaker2cluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaMirrorMaker2resource.- 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 logConfigMapfor aKafkaMirrorMaker2cluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaMirrorMaker2resource.- 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- Themetadata.nameof theKafkaMirrorMaker2resource.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 aKafkaMirrorMaker2cluster of the given name.- Parameters:
clusterName- Themetadata.nameof theKafkaMirrorMaker2resource.namespace- The namespace whereKafkaMirrorMaker2cluster is running.port- The port on which theKafkaMirrorMaker2API is available.- Returns:
- The base URL of the
KafkaMirrorMaker2REST API.
-
-