Enum LaunchJNLP.EType
- java.lang.Object
-
- java.lang.Enum<LaunchJNLP.EType>
-
- de.desy.mst.libs.framework.mstapp.util.LaunchJNLP.EType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LaunchJNLP.EType>
- Enclosing class:
- LaunchJNLP
public static enum LaunchJNLP.EType extends java.lang.Enum<LaunchJNLP.EType>
Enumeration of the JNLP application entries which deliver information on the concrete application, for example the current application name, the initial and maximum heap size or the JNLP URL.
Currently their also exists a method which deliver a boolean value if this enumeration is supported or not. See
isSupported()
for more information.Requesting Microsoft Windows Direct3D Flag, especially D3D Pipelining
By initializing the enumeration instances it looks at THE current Java version and applies until Java 6, update 13 the current flag of
LaunchJNLP.EFlag.D3D_PIPELINE
to false. Otherwise, if the application uses Java 6 update 14 or higher it returns a true. This flag is used for the launcher class which catches this flag from the instance and decides if the Direct3D flag on redrawing graphical components with pipelining should be applied or not and sets the special environment flag before launching the application. The corresponding method on delivering this flag isisD3DFlagEnabled(EFlag)
withEType.EFlag
set toD3D_PIPELINE
.Enumeration entries
The following JNLP enumeration entries are defined:
Application Enum Description ARCHIVE_VIEWER
Common archive viewer entry. ALARM_VIEWER
Common alarm viewer entry. Example snippet
This snippet demonstrates the usage of the enumeration entry on the archive viewer:
if (LaunchJNLP.EType.ARCHIVE_VIEWER.isSupported()) { final List
parameters = new ArrayList (); parameters.add("av.datespan=..."); parameters.add("av.machine=..."); parameters.add("av.mode=..."); parameters.add("av.availableSubsystems=..."); parameters.add("-CTINE/MHF/..."); LaunchJNLP.launch(EType.ARCHIVE_VIEWER, parameters); } else { // -> notify the user about the unsupported application // entry } This example uses the launcher class
LaunchJNLP
.Parameters for the Process
A list of the used application and their parameters can be found below. On each of this web pages there exists nearly at the end a subsection with the title Start-up parameters where you can find the parameters.
- Archive Viewer: http://cosylib.cosylab.com/pub/acop/site/ArchiveViewer.html
- Alarm Viewer: http://cosylib.cosylab.com/pub/acop/site/AlarmViewer.html
- Multi-Channel Analyzer: http://cosylib.cosylab.com/pub/acop/site/MultiChannelAnalyzer.html
- Version:
- $Id: LaunchJNLP.java 86268 2019-08-13 09:12:09Z walla $
- Author:
- walla
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LaunchJNLP.EType.ApplicationUtilities
Application utility class.
-
Enum Constant Summary
Enum Constants Enum Constant Description ALARM_VIEWER
Common alarm viewer entry.ARCHIVE_VIEWER
Common archive viewer entry.MULTI_CHANNEL_ANALYZER
Common multi-channel analyzer entry.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CALLING_COMMAND
Deprecated.use instead the method EType#getCallingCommand()} for a proper return code depending on the used OS.static java.lang.String
CALLING_COMMAND_LINUX_AND_MAC
Calling command name for Linux and MacOS systems.static java.lang.String
CALLING_COMMAND_WIN
Calling command name for Windows system.static java.lang.String
CLAZZ
Enumeration name.static java.lang.String
PRE_JNLP_PART
Pre part of the JNLP executing URL.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getCallingCommand()
Returns the calling command string.java.lang.String
getDescription()
Returns a short description of this instance.java.lang.String
getInitialHeapSize()
Deprecated.According to a mail conversation with Jaka Bobnar it seem to be obsolete to use the heap size on JNLP files.java.lang.String
getJnlpURL()
Returns the executing string part of the JNLP URL.java.lang.String
getMaximumHeapSize()
Deprecated.According to a mail conversation with Jaka Bobnar it seem to be obsolete to use the heap size on JNLP files.boolean
isD3DFlagEnabled(LaunchJNLP.EFlag isUsed_)
Returns on theLaunchJNLP.EFlag
enumeration the current usage depending on the Java version.boolean
isSupported()
Request if the application entry is supported (true
) or not (false
).static LaunchJNLP.EType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LaunchJNLP.EType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ARCHIVE_VIEWER
public static final LaunchJNLP.EType ARCHIVE_VIEWER
Common archive viewer entry.
-
ALARM_VIEWER
public static final LaunchJNLP.EType ALARM_VIEWER
Common alarm viewer entry.
-
MULTI_CHANNEL_ANALYZER
public static final LaunchJNLP.EType MULTI_CHANNEL_ANALYZER
Common multi-channel analyzer entry.
-
-
Field Detail
-
CLAZZ
public static final java.lang.String CLAZZ
Enumeration name.
-
CALLING_COMMAND
@Deprecated public static final java.lang.String CALLING_COMMAND
Deprecated.use instead the method EType#getCallingCommand()} for a proper return code depending on the used OS.Calling command name. Note Walla (28.06.2019): changed from javaws to Jaka Bobnar's jaws due to Java migration to Java 11.- See Also:
- Constant Field Values
-
CALLING_COMMAND_WIN
public static final java.lang.String CALLING_COMMAND_WIN
Calling command name for Windows system. Note: it is better to use the methodgetCallingCommand()
instead of directly accessing this constant field.- See Also:
- Constant Field Values
-
CALLING_COMMAND_LINUX_AND_MAC
public static final java.lang.String CALLING_COMMAND_LINUX_AND_MAC
Calling command name for Linux and MacOS systems. Note: it is better to use the methodgetCallingCommand()
instead of directly accessing this constant field.- See Also:
- Constant Field Values
-
PRE_JNLP_PART
public static final java.lang.String PRE_JNLP_PART
Pre part of the JNLP executing URL.- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static LaunchJNLP.EType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LaunchJNLP.EType c : LaunchJNLP.EType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LaunchJNLP.EType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isSupported
public boolean isSupported()
Request if the application entry is supported (true
) or not (false
). If this enumeration is no longer supported then this entry is deprecated and should not be used in the current version anymore and will be removed in future releases on MstApp.- Returns:
- Returns the supported flag.
-
getDescription
public java.lang.String getDescription()
Returns a short description of this instance.- Returns:
- Description.
-
getCallingCommand
public java.lang.String getCallingCommand()
Returns the calling command string.- Returns:
- Calling command.
-
getJnlpURL
public java.lang.String getJnlpURL()
Returns the executing string part of the JNLP URL.- Returns:
- Executing part of the JNLP URL.
-
getInitialHeapSize
public java.lang.String getInitialHeapSize()
Deprecated.According to a mail conversation with Jaka Bobnar it seem to be obsolete to use the heap size on JNLP files. However have to ask him about the source of this information.Returns the initial heap size.- Returns:
- Initial heap size.
-
getMaximumHeapSize
public java.lang.String getMaximumHeapSize()
Deprecated.According to a mail conversation with Jaka Bobnar it seem to be obsolete to use the heap size on JNLP files. However have to ask him about the source of this information.Returns the maximum heap size.- Returns:
- Maximum heap size.
-
isD3DFlagEnabled
public boolean isD3DFlagEnabled(LaunchJNLP.EFlag isUsed_)
Returns on theLaunchJNLP.EFlag
enumeration the current usage depending on the Java version.- Parameters:
isUsed_
- Flag enumeration.- Returns:
- Returns a
true
if the flag is used otherwise afalse
is delivered.
-
-