Package com.iizix
Enum Class RunMode
- All Implemented Interfaces:
- Serializable,- Comparable<RunMode>,- Constable
Run modes for IIZI.
- Author:
- Christopher Mindus
- Nested Class Summary- Nested classes/interfaces inherited from class java.lang.Enum- Enum.EnumDesc<E extends Enum<E>>
- Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionClient mode.Designer mode.Normal server mode.Server in development mode.
- Field SummaryFields
- Method SummaryModifier and TypeMethodDescription- static void- designerPost- (Runnable runnable) Post a runnable for invocation at a later stage by the worker thread (or SWT thread for the Designer).- static RunModeGets the current run mode.- static IWebServiceEngineGets the instance of the URL / HTTP(S) configuration for the web service engine.- static booleanCheck if this is the Server running in any mode: Normal or Development Mode.- static booleanChecks if this is the Client Run Mode.- static booleanChecks if this is the Designer Run Mode.- static booleanChecks if this is the Designer or Server Run Development Mode allowing Extends.- static final booleanChecks if this is a License Server.- static final booleanChecks if this is a Load Balancing Server.- static booleanChecks if this is the Server Run Development Mode.- static booleanChecks if this is the Server Run Mode.- static final voidSets this server to be a license server mode.- static final voidSets this server to be a Load Balancing server mode.- static void- setRunMode- (RunMode runMode) Assigns the run mode.- static void- setRunMode- (RunMode runMode, IDesignerPost poster) Assigns the run mode.- static void- setWebServiceConfigurator- (IWebServiceEngine instance) Sets the instance of the URL / HTTP(S) configuration for the web service engine.- static RunModeReturns the enum constant of this class with the specified name.- static RunMode[]- values()Returns an array containing the constants of this enum class, in the order they are declared.
- Enum Constant Details- SERVERNormal server mode.
- SERVER_DEVELOPMENTServer in development mode.
- CLIENTClient mode.
- DESIGNERDesigner mode.
 
- Field Details- productNameThe product name.
 
- Method Details- valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- getCurrentGets the current run mode.- Returns:
- The current run mode.
 
- setRunModeAssigns the run mode. This can only be done by the Server, Client or Designer and should never be called otherwise.- Parameters:
- runMode- The run mode.
- Throws:
- IllegalStateException- If the run mode has been set.
 
- setRunModeAssigns the run mode. This can only be done by the Server, Client or Designer and should never be called otherwise.- Parameters:
- runMode- The run mode.
- poster- The Designer poster.
- Throws:
- IllegalStateException- If the run mode has been set.
 
- designerPostPost a runnable for invocation at a later stage by the worker thread (or SWT thread for the Designer).- Parameters:
- runnable- The runnable.
- Throws:
- NullPointerException- If called outside of the Designer.
 
- isClientRunModepublic static boolean isClientRunMode()Checks if this is the Client Run Mode.- Returns:
- true if client, false otherwise.
 
- isDesignerRunModepublic static boolean isDesignerRunMode()Checks if this is the Designer Run Mode.- Returns:
- true if designer, false otherwise.
 
- isServerRunModepublic static boolean isServerRunMode()Checks if this is the Server Run Mode.- Returns:
- true if server, false otherwise.
 
- isServerRunDevelopmentModepublic static boolean isServerRunDevelopmentMode()Checks if this is the Server Run Development Mode.- Returns:
- true if development server, false otherwise.
 
- isAnyServerRunModepublic static boolean isAnyServerRunMode()Check if this is the Server running in any mode: Normal or Development Mode.- Returns:
- true if any server, false otherwise.
 
- isExtendsAllowedRunModepublic static boolean isExtendsAllowedRunMode()Checks if this is the Designer or Server Run Development Mode allowing Extends.- Returns:
- true if extends properties is enabled, i.e. Designer or Development Server, false otherwise.
 
- setWebServiceConfiguratorSets the instance of the URL / HTTP(S) configuration for the web service engine.- Parameters:
- instance- The instance.
- Throws:
- IllegalStateException- If already initiated.
 
- getWebServiceConfiguratorGets the instance of the URL / HTTP(S) configuration for the web service engine.- Returns:
- The instance.
 
- isLicenseServerpublic static final boolean isLicenseServer()Checks if this is a License Server.- Returns:
- true if it's a License Server, false otherwise.
 
- setLicenseServerModepublic static final void setLicenseServerMode()Sets this server to be a license server mode.- Throws:
- SecurityException- If not allowed.
 
- isLoadBalancingServerpublic static final boolean isLoadBalancingServer()Checks if this is a Load Balancing Server.- Returns:
- true if it's a Load Balancing Server, false otherwise.
 
- setLoadBalancingServerModepublic static final void setLoadBalancingServerMode()Sets this server to be a Load Balancing server mode.- Throws:
- SecurityException- If not allowed.