Package com.pnfsoftware.jeb.core
Class CoreOptions
java.lang.Object
com.pnfsoftware.jeb.core.CoreOptions
Public options for
ICoreContext. Use through JebCoreService. Options are set up
by JEB clients.-
Method Summary
Modifier and TypeMethodDescriptionstatic CoreOptionsCreate a default options container.Get the base JEB installation folder.Get the configured floating-controller connection information.static CoreOptionsDeprecated.Get the location of JEB classes.Get the standard proxy options provided by the client.booleanDetermine if asynchronous processing is globally allowed for use in plugins.booleanDetermine if development mode is on.booleanSame asisAllowAsynchronousProcessing().voidsetAllowAsynchronousProcessing(boolean allowAsynchronousProcessing) Enable or disable asynchronous processing for plugins.voidsetBaseFolder(File baseFolder) Set the base JEB installation folder.voidSet floating-controller connection information.voidsetDevelopmentMode(boolean developmentMode) Enable or disable development mode.voidsetJebClassesLocation(File location) Set the location of JEB classes.voidsetStandardProxyInfo(NetProxyInfo proxyInfo) Standard proxy options provided by a client.voidsetUIClient(boolean enabled)
-
Method Details
-
setControllerInfo
Set floating-controller connection information.- Parameters:
info- controller information, or null to clear it
-
getControllerInfo
Get the configured floating-controller connection information.- Returns:
- controller information, or null if none was configured
-
setAllowAsynchronousProcessing
public void setAllowAsynchronousProcessing(boolean allowAsynchronousProcessing) Enable or disable asynchronous processing for plugins.- Parameters:
allowAsynchronousProcessing- true to allow asynchronous processing
-
isAllowAsynchronousProcessing
public boolean isAllowAsynchronousProcessing()Determine if asynchronous processing is globally allowed for use in plugins. Generally, non-interactive clients should forbid plugins from processing tasks asynchronously; conversely, it is recommended for UI clients to allow plugins to perform asynchronous tasks. Note that setting this option to true does not mean that a plugin supporting asynchronous operation will perform them asynchronously! Other parameters may intervene, such as configuration options, user preferences, etc. This attribute is merely a global switch.- Returns:
- true if asynchronous processing is globally allowed
-
setUIClient
public void setUIClient(boolean enabled) - Parameters:
enabled- true to indicate a UI client
-
isUIClient
public boolean isUIClient()Same asisAllowAsynchronousProcessing().- Returns:
- true if the current client should be treated as a UI client
-
setDevelopmentMode
public void setDevelopmentMode(boolean developmentMode) Enable or disable development mode.- Parameters:
developmentMode- true to enable development mode
-
isDevelopmentMode
public boolean isDevelopmentMode()Determine if development mode is on. By default, the Core runs in production mode. When development mode is on, additional logging may take place and the JEB engines may allow hot-swapping of some plugin types (in particular, contributions plugins written in Python are hot-swappable).- Returns:
- true if development mode is enabled
-
setJebClassesLocation
Set the location of JEB classes. This method is reserved for internal use.- Parameters:
location- JEB classes file or directory
-
getJebClassesLocation
Get the location of JEB classes.- Returns:
- a jar file (
jeb.jar), or abin/folder containing classfiles
-
setStandardProxyInfo
Standard proxy options provided by a client.- Parameters:
proxyInfo- optional; engines settings override those
-
getStandardProxyInfo
Get the standard proxy options provided by the client.- Returns:
- proxy information, or null if none was provided
-
setBaseFolder
Set the base JEB installation folder.- Parameters:
baseFolder- installation folder
-
getBaseFolder
Get the base JEB installation folder.- Returns:
- installation folder, or null if unset
-
getDefault
Deprecated.usecreateDefault()Create a default options container.- Returns:
- default options instance
-
createDefault
Create a default options container.- Returns:
- default options instance
-
createDefault()