Class KernelConfiguration

java.lang.Object
com.github.fungal.api.configuration.KernelConfiguration

public class KernelConfiguration extends Object
Kernel configuration implementation
Author:
Jesper Pedersen
See Also:
  • Constructor Details

    • KernelConfiguration

      public KernelConfiguration()
      Constructor
  • Method Details

    • name

      public KernelConfiguration name(String n)
      Set the name; default fungal
      Parameters:
      n - The name
      Returns:
      The configuration
    • getName

      public String getName()
      Get the name
      Returns:
      The name
    • home

      public KernelConfiguration home(URL h)
      Set the home; default null
      Parameters:
      h - The home
      Returns:
      The configuration
    • getHome

      public URL getHome()
      Get the home
      Returns:
      The home
    • classLoader

      public KernelConfiguration classLoader(int type)
      Set the kernel class loader type; default ClassLoaderFactory.TYPE_PARENT_FIRST
      Parameters:
      type - The type
      Returns:
      The configuration
    • getClassLoader

      public int getClassLoader()
      Get the kernel class loader type
      Returns:
      The type
    • library

      public KernelConfiguration library(String value)
      Set the library directory; default lib
      Parameters:
      value - The value
      Returns:
      The configuration
    • getLibrary

      public String getLibrary()
      Get the library directory
      Returns:
      The value
    • configuration

      public KernelConfiguration configuration(String value)
      Set the configuration directory; default config
      Parameters:
      value - The value
      Returns:
      The configuration
    • getConfiguration

      public String getConfiguration()
      Get the configuration directory
      Returns:
      The value
    • system

      public KernelConfiguration system(String value)
      Set the system directory; default system
      Parameters:
      value - The value
      Returns:
      The configuration
    • getSystem

      public String getSystem()
      Get the system directory
      Returns:
      The value
    • deploy

      public KernelConfiguration deploy(String value)
      Set the deploy directory; default deploy
      Parameters:
      value - The value
      Returns:
      The configuration
    • getDeploy

      public String getDeploy()
      Get the deploy directory
      Returns:
      The value
    • repository

      public KernelConfiguration repository(String value)
      Set the repository directory; default repository
      Parameters:
      value - The value
      Returns:
      The configuration
    • getRepository

      public String getRepository()
      Get the repository directory
      Returns:
      The value
    • parallelDeploy

      public KernelConfiguration parallelDeploy(boolean value)
      Set if the files in the system and deploy directories should deployed in parallel; default true
      Parameters:
      value - The value
      Returns:
      The configuration
    • isParallelDeploy

      public boolean isParallelDeploy()
      Get if the files in the system and deploy directories should be deployed in parallel
      Returns:
      The value
    • bindAddress

      public KernelConfiguration bindAddress(String ba)
      Set the bind address; default null
      Parameters:
      ba - The value
      Returns:
      The configuration
    • getBindAddress

      public String getBindAddress()
      Get the bind address
      Returns:
      The value
    • threadGroup

      public KernelConfiguration threadGroup(ThreadGroup tg)
      Set the thread group; default null
      Parameters:
      tg - The value
      Returns:
      The configuration
    • getThreadGroup

      public ThreadGroup getThreadGroup()
      Get the thread group
      Returns:
      The value
    • remoteAccess

      public KernelConfiguration remoteAccess(boolean v)
      Set the remote access; default true
      Parameters:
      v - The value
      Returns:
      The configuration
    • isRemoteAccess

      public boolean isRemoteAccess()
      Is remote access enabled ?
      Returns:
      The value
    • remotePort

      public KernelConfiguration remotePort(int v)
      Set the port for remote access; default 1202
      Parameters:
      v - The value
      Returns:
      The configuration
    • getRemotePort

      public int getRemotePort()
      Get the remote port
      Returns:
      The value
    • hotDeployment

      public KernelConfiguration hotDeployment(boolean v)
      Should hot deployment be enabled for the deploy directory; default true
      Parameters:
      v - The value
      Returns:
      The configuration
    • isHotDeployment

      public boolean isHotDeployment()
      Is hot deployment enabled ?
      Returns:
      The value
    • hotDeploymentInterval

      public KernelConfiguration hotDeploymentInterval(int v)
      Set the interval in seconds for the hot deployment check; default 5
      Parameters:
      v - The value
      Returns:
      The configuration
    • getHotDeploymentInterval

      public int getHotDeploymentInterval()
      Get the hot deployment interval in seconds
      Returns:
      The value
    • eventListener

      public KernelConfiguration eventListener(EventListener el)
      Add an event listener
      Parameters:
      el - The event listener
      Returns:
      The configuration
    • getEventListeners

      public List<EventListener> getEventListeners()
      Get the event listeners
      Returns:
      The value
    • command

      public KernelConfiguration command(Command c)
      Add a command
      Parameters:
      c - The command
      Returns:
      The configuration
    • getCommands

      public List<Command> getCommands()
      Get the commands
      Returns:
      The value
    • deploymentOrder

      public KernelConfiguration deploymentOrder(DeploymentOrder d)
      Set the deployment order
      Parameters:
      d - The deployment order
      Returns:
      The configuration
    • getDeploymentOrder

      public DeploymentOrder getDeploymentOrder()
      Get the deployment order
      Returns:
      The value
    • management

      public KernelConfiguration management(boolean v)
      Enable management (MBeanServer); default true
      Parameters:
      v - The value
      Returns:
      The configuration
    • isManagement

      public boolean isManagement()
      Is management enabled ?
      Returns:
      The value
    • usePlatformMBeanServer

      public KernelConfiguration usePlatformMBeanServer(boolean v)
      Use the platform MBeanServer; default false
      Parameters:
      v - The value
      Returns:
      The configuration
    • isUsePlatformMBeanServer

      public boolean isUsePlatformMBeanServer()
      Use platform MBeanServer ?
      Returns:
      The value
    • remoteJmxAccess

      public KernelConfiguration remoteJmxAccess(boolean v)
      Set the remote JMX access; default false
      Parameters:
      v - The value
      Returns:
      The configuration
    • isRemoteJmxAccess

      public boolean isRemoteJmxAccess()
      Is remote JMX access enabled ?
      Returns:
      The value
    • beanManagement

      public KernelConfiguration beanManagement(boolean v)
      Enable management of deployed beans; default false
      Parameters:
      v - The value
      Returns:
      The configuration
    • isBeanManagement

      public boolean isBeanManagement()
      Is bean management enabled ?
      Returns:
      The value
    • rmiRegistryPort

      public KernelConfiguration rmiRegistryPort(int port)
      Set the RMI registry port; default 1203
      Parameters:
      port - The port
      Returns:
      The configuration
    • getRmiRegistryPort

      public int getRmiRegistryPort()
      Get the RMI registry port
      Returns:
      The port
    • rmiServerPort

      public KernelConfiguration rmiServerPort(int port)
      Set the RMI server port; default 1204
      Parameters:
      port - The port
      Returns:
      The configuration
    • getRmiServerPort

      public int getRmiServerPort()
      Get the RMI server port
      Returns:
      The port