Interface SharedIndexInformerFactory

All Known Implementing Classes:
DefaultSharedIndexInformerFactory

public interface SharedIndexInformerFactory
Informer factory interface.
Since:
3.1
Author:
Pavol Gressa
  • Method Summary

    Modifier and Type
    Method
    Description
    <ApiType extends io.kubernetes.client.common.KubernetesObject>
    io.kubernetes.client.informer.SharedIndexInformer<ApiType>
    getExistingSharedIndexInformer(String namespace, Class<ApiType> apiTypeClass)
    Get existing SharedIndexInformer.
    List<io.kubernetes.client.informer.SharedIndexInformer>
    Get all existing SharedIndexInformer.
    <ApiType extends io.kubernetes.client.common.KubernetesObject, ApiListType extends io.kubernetes.client.common.KubernetesListObject>
    io.kubernetes.client.informer.SharedIndexInformer<ApiType>
    sharedIndexInformerFor(Class<ApiType> apiTypeClass, Class<ApiListType> apiListTypeClass, String apiGroup, String resourcePlural, @Nullable String namespace, @Nullable String labelSelector, @Nullable Long resyncCheckPeriod, boolean waitForSync)
    Creates new SharedIndexInformer.
    <ApiType extends io.kubernetes.client.common.KubernetesObject, ApiListType extends io.kubernetes.client.common.KubernetesListObject>
    List<io.kubernetes.client.informer.SharedIndexInformer<? extends io.kubernetes.client.common.KubernetesObject>>
    sharedIndexInformersFor(Class<ApiType> apiTypeClass, Class<ApiListType> apiListTypeClass, String resourcePlural, String apiGroup, @Nullable List<String> namespaces, @Nullable String labelSelector, @Nullable Long resyncCheckPeriod, boolean waitForSync)
    Creates new SharedIndexInformers for every namespace from namespaces param.
    void
    Start all registered informers.
    void
    Stop all registered informers.
  • Method Details

    • sharedIndexInformerFor

      <ApiType extends io.kubernetes.client.common.KubernetesObject, ApiListType extends io.kubernetes.client.common.KubernetesListObject> io.kubernetes.client.informer.SharedIndexInformer<ApiType> sharedIndexInformerFor(Class<ApiType> apiTypeClass, Class<ApiListType> apiListTypeClass, String apiGroup, String resourcePlural, @Nullable @Nullable String namespace, @Nullable @Nullable String labelSelector, @Nullable @Nullable Long resyncCheckPeriod, boolean waitForSync)
      Creates new SharedIndexInformer.
      Type Parameters:
      ApiType - api type
      ApiListType - api list type
      Parameters:
      apiTypeClass - api type class
      apiListTypeClass - api list type class
      resourcePlural - resource plural
      apiGroup - resource api group
      namespace - namespace
      labelSelector - label selector
      resyncCheckPeriod - resync check period
      waitForSync - wait to let informer sync the resources
      Returns:
      list of informers
    • sharedIndexInformersFor

      <ApiType extends io.kubernetes.client.common.KubernetesObject, ApiListType extends io.kubernetes.client.common.KubernetesListObject> List<io.kubernetes.client.informer.SharedIndexInformer<? extends io.kubernetes.client.common.KubernetesObject>> sharedIndexInformersFor(Class<ApiType> apiTypeClass, Class<ApiListType> apiListTypeClass, String resourcePlural, String apiGroup, @Nullable @Nullable List<String> namespaces, @Nullable @Nullable String labelSelector, @Nullable @Nullable Long resyncCheckPeriod, boolean waitForSync)
      Creates new SharedIndexInformers for every namespace from namespaces param.
      Type Parameters:
      ApiType - api type
      ApiListType - api list type
      Parameters:
      apiTypeClass - api type class
      apiListTypeClass - api list type class
      resourcePlural - resource plural
      apiGroup - resource api group
      namespaces - namespaces
      labelSelector - label selector
      resyncCheckPeriod - resync check period
      waitForSync - wait to let informer sync the resources
      Returns:
      list of informers
    • getExistingSharedIndexInformer

      <ApiType extends io.kubernetes.client.common.KubernetesObject> io.kubernetes.client.informer.SharedIndexInformer<ApiType> getExistingSharedIndexInformer(String namespace, Class<ApiType> apiTypeClass)
      Get existing SharedIndexInformer.
      Type Parameters:
      ApiType - api type
      Parameters:
      namespace - namespace
      apiTypeClass - api type class
      Returns:
      shared index informer or null if not found
    • getExistingSharedIndexInformers

      List<io.kubernetes.client.informer.SharedIndexInformer> getExistingSharedIndexInformers()
      Get all existing SharedIndexInformer.
      Returns:
      list of existing shared informers
    • startAllRegisteredInformers

      void startAllRegisteredInformers()
      Start all registered informers.
    • stopAllRegisteredInformers

      void stopAllRegisteredInformers()
      Stop all registered informers.