public abstract class BaseWatcher extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
cmType |
protected static String |
isType |
protected String[] |
namespaces |
protected static ConcurrentHashMap<String,String> |
podTemplateToApiType |
protected ScheduledFuture |
relister |
protected static ConcurrentHashMap<String,List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate>> |
trackedPodTemplates |
protected ConcurrentHashMap<String,io.fabric8.kubernetes.client.Watch> |
watches |
| Constructor and Description |
|---|
BaseWatcher(String[] namespaces) |
| Modifier and Type | Method and Description |
|---|---|
void |
addWatch(String key,
io.fabric8.kubernetes.client.Watch desiredWatch) |
abstract <T> void |
eventReceived(io.fabric8.kubernetes.client.Watcher.Action action,
T resource) |
abstract int |
getListIntervalInSeconds() |
abstract Runnable |
getStartTimerTask() |
protected boolean |
hasSlaveLabelOrAnnotation(Map<String,String> map) |
protected boolean |
isReservedPodTemplateName(String name) |
void |
onClose(io.fabric8.kubernetes.client.KubernetesClientException e,
String namespace) |
protected void |
processSlavesForAddEvent(List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> slaves,
String type,
String uid,
String apiObjName,
String namespace) |
protected void |
processSlavesForDeleteEvent(List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> slaves,
String type,
String uid,
String apiObjName,
String namespace) |
protected void |
processSlavesForModifyEvent(List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> slaves,
String type,
String uid,
String apiObjName,
String namespace) |
void |
start() |
void |
stop() |
protected ScheduledFuture relister
protected final String[] namespaces
protected ConcurrentHashMap<String,io.fabric8.kubernetes.client.Watch> watches
protected static ConcurrentHashMap<String,List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate>> trackedPodTemplates
protected static ConcurrentHashMap<String,String> podTemplateToApiType
protected static final String cmType
protected static final String isType
public BaseWatcher(String[] namespaces)
public abstract Runnable getStartTimerTask()
public abstract int getListIntervalInSeconds()
public abstract <T> void eventReceived(io.fabric8.kubernetes.client.Watcher.Action action,
T resource)
public void start()
public void stop()
public void onClose(io.fabric8.kubernetes.client.KubernetesClientException e,
String namespace)
public void addWatch(String key, io.fabric8.kubernetes.client.Watch desiredWatch)
protected boolean isReservedPodTemplateName(String name)
protected void processSlavesForAddEvent(List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> slaves, String type, String uid, String apiObjName, String namespace)
protected void processSlavesForModifyEvent(List<org.csanchez.jenkins.plugins.kubernetes.PodTemplate> slaves, String type, String uid, String apiObjName, String namespace)
Copyright © 2016–2019 Red Hat. All rights reserved.