use of com.github.isdream.cwatcher.listeners.OpenShiftListener in project watchdog by isdream.
the class OpenshiftListenerTest method main.
public static void main(String[] args) {
// Configure config = new Parser().parse("config/podWatcher.yaml");
Configure config = null;
try {
config = new Parser().parse("config/podWatcher.yaml");
OpenShiftClient client = getClient("https", "master.example.com", "8443", "NaD95GPF8rIpbphyCyep--pJQH7t3pzBBV9aXQE77O4");
Listener listener = new OpenShiftListener();
listener.start(client, config);
Thread.sleep(600000);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
}
Aggregations