public class SharedInformerFactory extends BaseOperation
apiVersion, doneableType, listType, reaper, typeapiGroupName, apiGroupVersion, client, config, context, JSON, JSON_MAPPER, JSON_PATCH, name, namespace, resourceT, YAML_MAPPER| Constructor and Description |
|---|
SharedInformerFactory(ExecutorService threadPool,
okhttp3.OkHttpClient okHttpClient,
Config configuration)
Constructor with thread pool specified.
|
| Modifier and Type | Method and Description |
|---|---|
<T> SharedIndexInformer<T> |
getExistingSharedIndexInformer(Class<T> apiTypeClass)
Gets existing shared index informer, return null if the requesting informer
is never constructed.
|
<T extends io.fabric8.kubernetes.api.model.HasMetadata,TList extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>> |
sharedIndexInformerFor(Class<T> apiTypeClass,
Class<TList> apiListTypeClass,
long resyncPeriodInMillis)
Constructs and returns a shared index informer with resync period specified.
|
<T extends io.fabric8.kubernetes.api.model.HasMetadata,TList extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>> |
sharedIndexInformerFor(Class<T> apiTypeClass,
Class<TList> apiListTypeClass,
OperationContext operationContext,
long resyncPeriodInMillis)
Constructs and returns a shared index informer with resync period specified.
|
<T extends io.fabric8.kubernetes.api.model.HasMetadata,TList extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>> |
sharedIndexInformerForCustomResource(CustomResourceDefinitionContext customResourceContext,
Class<T> apiTypeClass,
Class<TList> apiListTypeClass,
long resyncPeriodInMillis)
Constructs and returns a shared index informer with resync period specified for custom resources.
|
void |
startAllRegisteredInformers()
Starts all registered informers.
|
void |
stopAllRegisteredInformers()
Stop all registered informers.
|
cascading, create, createNew, createOrReplace, createOrReplaceWithNew, delete, delete, delete, edit, forOperationType, fromServer, get, getApiVersion, getConfigType, getDoneableType, getFieldQueryParam, getFields, getFieldsNot, getGracePeriodSeconds, getItem, getKind, getLabelQueryParam, getLabels, getLabelsIn, getLabelsNot, getLabelsNotIn, getListType, getMandatory, getOperationType, getPropagationPolicy, getReloadingFromServer, getResourceT, getResourceVersion, getRootPaths, getType, handleCreate, handleGet, handlePatch, handleReplace, handleResponse, inAnyNamespace, inNamespace, isApiGroup, isCascading, isReady, isReaping, isReloadingFromServer, isResourceNamespaced, list, list, load, load, load, load, lockResourceVersion, newInstance, patch, replace, require, setListType, setNamespace, setReaping, setType, updateApiVersion, updateApiVersion, updateApiVersionResource, waitUntilCondition, waitUntilExists, waitUntilReady, watch, watch, watch, withField, withFields, withGracePeriod, withItem, withLabel, withLabel, withLabelIn, withLabelNotIn, withLabels, withLabelSelector, withName, withoutField, withoutFields, withoutLabel, withoutLabel, withoutLabels, withPropagationPolicy, withResourceVersionassertResponseCode, checkName, checkNamespace, createStatus, createStatus, getAPIGroup, getAPIVersion, getConfig, getName, getNamespace, getNamespacedUrl, getNamespacedUrl, getNamespacedUrl, getResourceUrl, getResourceUrl, getRootUrl, handleCreate, handleDelete, handleDelete, handleGet, handleGet, handlePatch, handleReplace, handleReplace, handleResponse, handleResponse, handleResponse, handleResponse, requestException, requestFailure, unmarshal, unmarshal, unmarshalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getNamespacepublic SharedInformerFactory(ExecutorService threadPool, okhttp3.OkHttpClient okHttpClient, Config configuration)
threadPool - specified thread pool.public <T extends io.fabric8.kubernetes.api.model.HasMetadata,TList extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>> SharedIndexInformer<T> sharedIndexInformerFor(Class<T> apiTypeClass, Class<TList> apiListTypeClass, long resyncPeriodInMillis)
T - the type parameterTList - the type's list parameterapiTypeClass - apiType classapiListTypeClass - api list type classresyncPeriodInMillis - resync period in millisecondspublic <T extends io.fabric8.kubernetes.api.model.HasMetadata,TList extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>> SharedIndexInformer<T> sharedIndexInformerForCustomResource(CustomResourceDefinitionContext customResourceContext, Class<T> apiTypeClass, Class<TList> apiListTypeClass, long resyncPeriodInMillis)
T - the type parameterTList - the type's list parametercustomResourceContext - basic information about the Custom Resource Definition corresponding to that custom resourceapiTypeClass - apiType classapiListTypeClass - api list type classresyncPeriodInMillis - resync period in millisecondspublic <T extends io.fabric8.kubernetes.api.model.HasMetadata,TList extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>> SharedIndexInformer<T> sharedIndexInformerFor(Class<T> apiTypeClass, Class<TList> apiListTypeClass, OperationContext operationContext, long resyncPeriodInMillis)
T - the type parameterTList - the type's list parameterapiTypeClass - apiType classapiListTypeClass - api list type classresyncPeriodInMillis - resync period in millisecondspublic <T> SharedIndexInformer<T> getExistingSharedIndexInformer(Class<T> apiTypeClass)
T - apiTypeClass - public void startAllRegisteredInformers()
public void stopAllRegisteredInformers()
Copyright © 2015–2019 Red Hat. All rights reserved.