public class PodWatcher extends Object implements io.fabric8.kubernetes.client.Watcher<io.fabric8.kubernetes.api.model.Pod>, Closeable
Constructor and Description |
---|
PodWatcher(PodSelectionAssert podSelectionAssert,
long readyTimeoutMS,
long readyPeriodMS) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
closeAsserter(String name) |
void |
eventReceived(io.fabric8.kubernetes.client.Watcher.Action action,
io.fabric8.kubernetes.api.model.Pod pod) |
io.fabric8.kubernetes.client.KubernetesClient |
getClient() |
String |
getDescription() |
long |
getReadyPeriodMS() |
long |
getReadyTimeoutMS() |
void |
loadCurrentPods()
Lets load the current pods as we don't get watch events for current pods
|
void |
onClose(io.fabric8.kubernetes.client.KubernetesClientException e) |
protected void |
onPod(String name,
io.fabric8.kubernetes.api.model.Pod pod) |
void |
podIsReady(String name,
io.fabric8.kubernetes.api.model.Pod pod) |
void |
podIsReadyForEntireDuration(String name,
io.fabric8.kubernetes.api.model.Pod pod) |
void |
waitForPodReady() |
public PodWatcher(PodSelectionAssert podSelectionAssert, long readyTimeoutMS, long readyPeriodMS)
public io.fabric8.kubernetes.client.KubernetesClient getClient()
public String getDescription()
public long getReadyTimeoutMS()
public long getReadyPeriodMS()
public void loadCurrentPods()
public void eventReceived(io.fabric8.kubernetes.client.Watcher.Action action, io.fabric8.kubernetes.api.model.Pod pod)
eventReceived
in interface io.fabric8.kubernetes.client.Watcher<io.fabric8.kubernetes.api.model.Pod>
protected void onPod(String name, io.fabric8.kubernetes.api.model.Pod pod)
protected void closeAsserter(String name)
public void onClose(io.fabric8.kubernetes.client.KubernetesClientException e)
onClose
in interface io.fabric8.kubernetes.client.Watcher<io.fabric8.kubernetes.api.model.Pod>
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void waitForPodReady()
public void podIsReadyForEntireDuration(String name, io.fabric8.kubernetes.api.model.Pod pod)
public void podIsReady(String name, io.fabric8.kubernetes.api.model.Pod pod)
Copyright © 2011–2016 Red Hat. All rights reserved.