Class AbstractV1ServiceProvider

java.lang.Object
io.micronaut.kubernetes.discovery.AbstractKubernetesServiceInstanceProvider
io.micronaut.kubernetes.discovery.provider.AbstractV1ServiceProvider
All Implemented Interfaces:
KubernetesServiceInstanceProvider
Direct Known Subclasses:
KubernetesServiceInstanceServiceInformerProvider, KubernetesServiceInstanceServiceProvider

public abstract class AbstractV1ServiceProvider extends AbstractKubernetesServiceInstanceProvider
Service instance provider uses Kubernetes Service as source of service discovery.
Since:
3.2
Author:
Pavol Gressa
  • Field Details

  • Constructor Details

  • Method Details

    • getMode

      public String getMode()
      Returns:
      the provider mode name.
    • getInstances

      public org.reactivestreams.Publisher<List<io.micronaut.discovery.ServiceInstance>> getInstances(KubernetesServiceConfiguration serviceConfiguration)
      Parameters:
      serviceConfiguration - service discovery configuration
      Returns:
      discovered service instances
    • getServiceIds

      public org.reactivestreams.Publisher<String> getServiceIds(String namespace)
      Parameters:
      namespace - namespace
      Returns:
      provider service ids for given namespace
    • getService

      public abstract reactor.core.publisher.Mono<io.kubernetes.client.openapi.models.V1Service> getService(String name, String namespace)
    • listServices

      public abstract reactor.core.publisher.Flux<io.kubernetes.client.openapi.models.V1Service> listServices(String namespace)