Class HotDeployer

java.lang.Object
com.github.fungal.impl.HotDeployer
All Implemented Interfaces:
HotDeployerMBean, Runnable

public final class HotDeployer extends Object implements HotDeployerMBean, Runnable
The hot deployer for Fungal
Author:
Jesper Pedersen
  • Constructor Details

    • HotDeployer

      public HotDeployer(int interval, File directory, KernelImpl kernel)
      Constructor
      Parameters:
      interval - The scan interval in seconds
      directory - The directory that should be scanned
      kernel - The kernel
  • Method Details

    • register

      public void register(URL deployment)
      Register deployment
      Parameters:
      deployment - The deployment
    • unregister

      public void unregister(URL deployment)
      Unregister deployment
      Parameters:
      deployment - The deployment
    • isRunning

      public boolean isRunning()
      Is running
      Specified by:
      isRunning in interface HotDeployerMBean
      Returns:
      The value
    • getInterval

      public int getInterval()
      Get the interval in seconds
      Specified by:
      getInterval in interface HotDeployerMBean
      Returns:
      The value
    • setInterval

      public void setInterval(int value)
      Set the interval
      Specified by:
      setInterval in interface HotDeployerMBean
      Parameters:
      value - The value in seconds
    • start

      public void start()
      Start
      Specified by:
      start in interface HotDeployerMBean
    • stop

      public void stop()
      Stop
      Specified by:
      stop in interface HotDeployerMBean
    • run

      public void run()
      Run
      Specified by:
      run in interface Runnable