Class EventUtils


  • public class EventUtils
    extends java.lang.Object
    The util to generate an event for the target resource. It is copied from https://github.com/EnMasseProject/enmasse/blob/master/k8s-api/src/main/java/io/enmasse/k8s/api/KubeEventLogger.java
    • Constructor Summary

      Constructors 
      Constructor Description
      EventUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean createOrUpdateEvent​(io.fabric8.kubernetes.client.KubernetesClient client, io.fabric8.kubernetes.api.model.HasMetadata target, EventRecorder.Type type, java.lang.String reason, java.lang.String message, EventRecorder.Component component, java.util.function.Consumer<io.fabric8.kubernetes.api.model.Event> eventListener)  
      static java.lang.String generateEventName​(io.fabric8.kubernetes.api.model.HasMetadata target, EventRecorder.Type type, java.lang.String reason, java.lang.String message, EventRecorder.Component component)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EventUtils

        public EventUtils()
    • Method Detail

      • generateEventName

        public static java.lang.String generateEventName​(io.fabric8.kubernetes.api.model.HasMetadata target,
                                                         EventRecorder.Type type,
                                                         java.lang.String reason,
                                                         java.lang.String message,
                                                         EventRecorder.Component component)
      • createOrUpdateEvent

        public static boolean createOrUpdateEvent​(io.fabric8.kubernetes.client.KubernetesClient client,
                                                  io.fabric8.kubernetes.api.model.HasMetadata target,
                                                  EventRecorder.Type type,
                                                  java.lang.String reason,
                                                  java.lang.String message,
                                                  EventRecorder.Component component,
                                                  java.util.function.Consumer<io.fabric8.kubernetes.api.model.Event> eventListener)