Class DatabaseInitListener
- java.lang.Object
-
- io.debezium.testing.openshift.tools.databases.DatabaseInitListener
-
- All Implemented Interfaces:
io.fabric8.kubernetes.client.dsl.ExecListener
public class DatabaseInitListener extends Object implements io.fabric8.kubernetes.client.dsl.ExecListener
- Author:
- Jakub Cechacek
-
-
Field Summary
Fields Modifier and Type Field Description private CountDownLatchlatchprivate static org.slf4j.LoggerLOGGERprivate Stringname
-
Constructor Summary
Constructors Constructor Description DatabaseInitListener(String name, CountDownLatch latch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonClose(int code, String reason)voidonFailure(Throwable t, okhttp3.Response response)voidonOpen(okhttp3.Response response)
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
name
private final String name
-
latch
private final CountDownLatch latch
-
-
Constructor Detail
-
DatabaseInitListener
public DatabaseInitListener(String name, CountDownLatch latch)
-
-
Method Detail
-
onOpen
public void onOpen(okhttp3.Response response)
- Specified by:
onOpenin interfaceio.fabric8.kubernetes.client.dsl.ExecListener
-
onFailure
public void onFailure(Throwable t, okhttp3.Response response)
- Specified by:
onFailurein interfaceio.fabric8.kubernetes.client.dsl.ExecListener
-
onClose
public void onClose(int code, String reason)- Specified by:
onClosein interfaceio.fabric8.kubernetes.client.dsl.ExecListener
-
-