Class KernelConfiguration
java.lang.Object
com.github.fungal.api.configuration.KernelConfiguration
Kernel configuration implementation
- Author:
- Jesper Pedersen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbeanManagement(boolean v) Enable management of deployed beans; defaultfalsebindAddress(String ba) Set the bind address; defaultnullclassLoader(int type) Set the kernel class loader type; defaultClassLoaderFactory.TYPE_PARENT_FIRSTAdd a commandconfiguration(String value) Set the configuration directory; defaultconfigSet the deploy directory; defaultdeploySet the deployment orderAdd an event listenerGet the bind addressintGet the kernel class loader typeGet the commandsGet the configuration directoryGet the deploy directoryGet the deployment orderGet the event listenersgetHome()Get the homeintGet the hot deployment interval in secondsGet the library directorygetName()Get the nameintGet the remote portGet the repository directoryintGet the RMI registry portintGet the RMI server portGet the system directoryGet the thread groupSet the home; defaultnullhotDeployment(boolean v) Should hot deployment be enabled for the deploy directory; defaulttruehotDeploymentInterval(int v) Set the interval in seconds for the hot deployment check; default5booleanIs bean management enabled ?booleanIs hot deployment enabled ?booleanIs management enabled ?booleanGet if the files in the system and deploy directories should be deployed in parallelbooleanIs remote access enabled ?booleanIs remote JMX access enabled ?booleanUse platform MBeanServer ?Set the library directory; defaultlibmanagement(boolean v) Enable management (MBeanServer); defaulttrueSet the name; defaultfungalparallelDeploy(boolean value) Set if the files in the system and deploy directories should deployed in parallel; defaulttrueremoteAccess(boolean v) Set the remote access; defaulttrueremoteJmxAccess(boolean v) Set the remote JMX access; defaultfalseremotePort(int v) Set the port for remote access; default1202repository(String value) Set the repository directory; defaultrepositoryrmiRegistryPort(int port) Set the RMI registry port; default1203rmiServerPort(int port) Set the RMI server port; default1204Set the system directory; defaultsystemSet the thread group; defaultnullusePlatformMBeanServer(boolean v) Use the platform MBeanServer; defaultfalse
-
Constructor Details
-
KernelConfiguration
public KernelConfiguration()Constructor
-
-
Method Details
-
name
Set the name; defaultfungal- Parameters:
n- The name- Returns:
- The configuration
-
getName
Get the name- Returns:
- The name
-
home
Set the home; defaultnull- Parameters:
h- The home- Returns:
- The configuration
-
getHome
Get the home- Returns:
- The home
-
classLoader
Set the kernel class loader type; defaultClassLoaderFactory.TYPE_PARENT_FIRST- Parameters:
type- The type- Returns:
- The configuration
-
getClassLoader
public int getClassLoader()Get the kernel class loader type- Returns:
- The type
-
library
Set the library directory; defaultlib- Parameters:
value- The value- Returns:
- The configuration
-
getLibrary
Get the library directory- Returns:
- The value
-
configuration
Set the configuration directory; defaultconfig- Parameters:
value- The value- Returns:
- The configuration
-
getConfiguration
Get the configuration directory- Returns:
- The value
-
system
Set the system directory; defaultsystem- Parameters:
value- The value- Returns:
- The configuration
-
getSystem
Get the system directory- Returns:
- The value
-
deploy
Set the deploy directory; defaultdeploy- Parameters:
value- The value- Returns:
- The configuration
-
getDeploy
Get the deploy directory- Returns:
- The value
-
repository
Set the repository directory; defaultrepository- Parameters:
value- The value- Returns:
- The configuration
-
getRepository
Get the repository directory- Returns:
- The value
-
parallelDeploy
Set if the files in the system and deploy directories should deployed in parallel; defaulttrue- 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
Set the bind address; defaultnull- Parameters:
ba- The value- Returns:
- The configuration
-
getBindAddress
Get the bind address- Returns:
- The value
-
threadGroup
Set the thread group; defaultnull- Parameters:
tg- The value- Returns:
- The configuration
-
getThreadGroup
Get the thread group- Returns:
- The value
-
remoteAccess
Set the remote access; defaulttrue- Parameters:
v- The value- Returns:
- The configuration
-
isRemoteAccess
public boolean isRemoteAccess()Is remote access enabled ?- Returns:
- The value
-
remotePort
Set the port for remote access; default1202- Parameters:
v- The value- Returns:
- The configuration
-
getRemotePort
public int getRemotePort()Get the remote port- Returns:
- The value
-
hotDeployment
Should hot deployment be enabled for the deploy directory; defaulttrue- Parameters:
v- The value- Returns:
- The configuration
-
isHotDeployment
public boolean isHotDeployment()Is hot deployment enabled ?- Returns:
- The value
-
hotDeploymentInterval
Set the interval in seconds for the hot deployment check; default5- Parameters:
v- The value- Returns:
- The configuration
-
getHotDeploymentInterval
public int getHotDeploymentInterval()Get the hot deployment interval in seconds- Returns:
- The value
-
eventListener
Add an event listener- Parameters:
el- The event listener- Returns:
- The configuration
-
getEventListeners
Get the event listeners- Returns:
- The value
-
command
Add a command- Parameters:
c- The command- Returns:
- The configuration
-
getCommands
Get the commands- Returns:
- The value
-
deploymentOrder
Set the deployment order- Parameters:
d- The deployment order- Returns:
- The configuration
-
getDeploymentOrder
Get the deployment order- Returns:
- The value
-
management
Enable management (MBeanServer); defaulttrue- Parameters:
v- The value- Returns:
- The configuration
-
isManagement
public boolean isManagement()Is management enabled ?- Returns:
- The value
-
usePlatformMBeanServer
Use the platform MBeanServer; defaultfalse- Parameters:
v- The value- Returns:
- The configuration
-
isUsePlatformMBeanServer
public boolean isUsePlatformMBeanServer()Use platform MBeanServer ?- Returns:
- The value
-
remoteJmxAccess
Set the remote JMX access; defaultfalse- Parameters:
v- The value- Returns:
- The configuration
-
isRemoteJmxAccess
public boolean isRemoteJmxAccess()Is remote JMX access enabled ?- Returns:
- The value
-
beanManagement
Enable management of deployed beans; defaultfalse- Parameters:
v- The value- Returns:
- The configuration
-
isBeanManagement
public boolean isBeanManagement()Is bean management enabled ?- Returns:
- The value
-
rmiRegistryPort
Set the RMI registry port; default1203- Parameters:
port- The port- Returns:
- The configuration
-
getRmiRegistryPort
public int getRmiRegistryPort()Get the RMI registry port- Returns:
- The port
-
rmiServerPort
Set the RMI server port; default1204- Parameters:
port- The port- Returns:
- The configuration
-
getRmiServerPort
public int getRmiServerPort()Get the RMI server port- Returns:
- The port
-