io.fabric8.kubernetes.client.Watch类的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(708)

本文整理了Java中io.fabric8.kubernetes.client.Watch类的一些代码示例,展示了Watch类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Watch类的具体详情如下:
包路径:io.fabric8.kubernetes.client.Watch
类名称:Watch

Watch介绍

暂无

代码示例

代码示例来源:origin: spring-cloud/spring-cloud-kubernetes

  1. public void stop() {
  2. if (watch != null) {
  3. synchronized (lock) {
  4. if (watch != null) {
  5. LOGGER.debug("Stopping leader record watcher");
  6. watch.close();
  7. watch = null;
  8. }
  9. }
  10. }
  11. }

代码示例来源:origin: spring-cloud/spring-cloud-kubernetes

  1. public void stop() {
  2. if (watch != null) {
  3. synchronized (lock) {
  4. if (watch != null) {
  5. LOGGER.debug("Stopping pod readiness watcher for '{}'", podName);
  6. watch.close();
  7. watch = null;
  8. }
  9. }
  10. }
  11. }

代码示例来源:origin: spring-cloud/spring-cloud-kubernetes

  1. @PreDestroy
  2. public void unwatch() {
  3. if (this.watches != null) {
  4. for (Map.Entry<String, Watch> entry : this.watches.entrySet()) {
  5. try {
  6. log.debug("Closing the watch " + entry.getKey());
  7. entry.getValue().close();
  8. }
  9. catch (Exception e) {
  10. log.error("Error while closing the watch connection", e);
  11. }
  12. }
  13. }
  14. }

代码示例来源:origin: fabric8io/spring-cloud-kubernetes

  1. @Override
  2. public void close() throws IOException {
  3. started.set(false);
  4. if (watch != null) {
  5. watch.close();
  6. }
  7. executorService.shutdown();
  8. }

代码示例来源:origin: fabric8io/spring-cloud-kubernetes

  1. @PreDestroy
  2. public void unwatch() {
  3. if (this.watches != null) {
  4. for (Map.Entry<String, Watch> entry : this.watches.entrySet()) {
  5. try {
  6. log.debug("Closing the watch {}", entry.getKey());
  7. entry.getValue().close();
  8. } catch (Exception e) {
  9. log.error("Error while closing the watch connection", e);
  10. }
  11. }
  12. }
  13. }

代码示例来源:origin: io.fabric8.jenkins.plugins/openshift-sync

  1. public void stop() {
  2. if (buildConfigWatch != null) {
  3. buildConfigWatch.close();
  4. buildConfigWatch = null;
  5. }
  6. }

代码示例来源:origin: EnMasseProject/enmasse

  1. public void shutdown() {
  2. if (watch != null) {
  3. watch.close();
  4. }
  5. }

代码示例来源:origin: nbogojevic/kafka-operator

  1. @Override
  2. public void close() {
  3. if (watch != null) {
  4. watch.close();
  5. }
  6. }

代码示例来源:origin: nbogojevic/kafka-operator

  1. public void close() {
  2. if (watch != null) {
  3. watch.close();
  4. }
  5. }

代码示例来源:origin: io.fabric8.jenkins.plugins/openshift-sync

  1. public void stop() {
  2. if (buildsWatch != null) {
  3. buildsWatch.close();
  4. buildsWatch = null;
  5. }
  6. }

代码示例来源:origin: io.fabric8.jenkins.plugins/openshift-sync

  1. public void stop() {
  2. if (buildsWatch != null) {
  3. buildsWatch.close();
  4. buildsWatch = null;
  5. }
  6. }

代码示例来源:origin: EnMasseProject/enmasse

  1. public void stop() {
  2. if (watch != null) {
  3. watch.close();
  4. }
  5. }

代码示例来源:origin: io.fabric8/fabric8-karaf-cm

  1. @Deactivate
  2. void deactivate() {
  3. if (watch != null) {
  4. watch.close();
  5. }
  6. }

代码示例来源:origin: spotify/styx

  1. @Override
  2. public void close() throws IOException {
  3. if (watch != null) {
  4. watch.close();
  5. }
  6. closer.close();
  7. }

代码示例来源:origin: io.fabric8/spring-cloud-kubernetes-archaius

  1. @Override
  2. public void close() throws IOException {
  3. started.set(false);
  4. if (watch != null) {
  5. watch.close();
  6. }
  7. executorService.shutdown();
  8. }

代码示例来源:origin: org.springframework.cloud/spring-cloud-kubernetes-archaius

  1. @Override
  2. public void close() throws IOException {
  3. started.set(false);
  4. if (watch != null) {
  5. watch.close();
  6. }
  7. executorService.shutdown();
  8. }

代码示例来源:origin: fabric8io/fabric8-maven-plugin

  1. @Override
  2. public void close() throws IOException {
  3. try {
  4. watch.close();
  5. } catch (Exception e) {}
  6. try {
  7. forwarderThread.interrupt();
  8. forwarderThread.join(15000);
  9. } catch (Exception e) {}
  10. }
  11. };

代码示例来源:origin: io.fabric8/spring-cloud-kubernetes-core

  1. @PreDestroy
  2. public void unwatch() {
  3. if (this.watches != null) {
  4. for (Map.Entry<String, Watch> entry : this.watches.entrySet()) {
  5. try {
  6. log.debug("Closing the watch {}", entry.getKey());
  7. entry.getValue().close();
  8. } catch (Exception e) {
  9. log.error("Error while closing the watch connection", e);
  10. }
  11. }
  12. }
  13. }

代码示例来源:origin: org.springframework.cloud/spring-cloud-kubernetes-config

  1. @PreDestroy
  2. public void unwatch() {
  3. if (this.watches != null) {
  4. for (Map.Entry<String, Watch> entry : this.watches.entrySet()) {
  5. try {
  6. log.debug("Closing the watch " + entry.getKey());
  7. entry.getValue().close();
  8. }
  9. catch (Exception e) {
  10. log.error("Error while closing the watch connection", e);
  11. }
  12. }
  13. }
  14. }

代码示例来源:origin: EnMasseProject/enmasse

  1. @Override
  2. public void close() throws Exception {
  3. watch.close();
  4. executorService.shutdown();
  5. synchronized (logWatches) {
  6. for (LogWatch watch : logWatches.values()) {
  7. watch.close();
  8. }
  9. }
  10. }
  11. }

相关文章

Watch类方法