Class KernelSupport


  • public class KernelSupport
    extends java.lang.Object
    Utility functions on top of KF library.
    • Constructor Summary

      Constructors 
      Constructor Description
      KernelSupport()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T clone​(T source, ej.kf.Feature cloneOwner)  
      static void stopFeature​(ej.kf.Feature f)
      This function infinitely blocks until all Feature references are removed by the Kernel.
      static boolean stopFeature​(ej.kf.Feature f, long timeout)
      KF-1.3 spec: Feature.stop() may result to STOPPED state when there are remaining references from Kernel to the Feature being killed.
      • Methods inherited from class java.lang.Object

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

      • KernelSupport

        public KernelSupport()
    • Method Detail

      • stopFeature

        public static boolean stopFeature​(ej.kf.Feature f,
                                          long timeout)
        KF-1.3 spec: Feature.stop() may result to STOPPED state when there are remaining references from Kernel to the Feature being killed. Wadapps API does not provide this intermediate step (the STOPPED state is not a Wadapps state). This function blocks until all Feature references are removed by the Kernel (i.e. wait until pumps have finished their current job, ...) or the timeout occurs.
        Parameters:
        f - the feature to stop.
        timeout - the maximum time to wait in milliseconds.
        Returns:
        true if Feature has been successfully stopped, false if timeout occurred (the Feature remains in STOPPED state)
      • stopFeature

        public static void stopFeature​(ej.kf.Feature f)
        This function infinitely blocks until all Feature references are removed by the Kernel.
      • clone

        public static <T> T clone​(T source,
                                  ej.kf.Feature cloneOwner)