Class KernelSupport


  • public class KernelSupport
    extends Object
    Utility functions on top of KF library.
    • Constructor Detail

      • KernelSupport

        public KernelSupport()
    • Method Detail

      • stopFeature

        public static boolean stopFeature​(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​(Feature f)
        This function infinitely blocks until all Feature references are removed by the Kernel.
      • clone

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