Enum 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 is isD3DFlagEnabled(EFlag) with EType.EFlag set to D3D_PIPELINE.

    Enumeration entries

    The following JNLP enumeration entries are defined:

    Application EnumDescription
    ARCHIVE_VIEWERCommon archive viewer entry.
    ALARM_VIEWERCommon 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.

    1. Archive Viewer: http://cosylib.cosylab.com/pub/acop/site/ArchiveViewer.html
    2. Alarm Viewer: http://cosylib.cosylab.com/pub/acop/site/AlarmViewer.html
    3. 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
    • 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 the LaunchJNLP.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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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 method getCallingCommand() 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 method getCallingCommand() 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 name
        java.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 the LaunchJNLP.EFlag enumeration the current usage depending on the Java version.
        Parameters:
        isUsed_ - Flag enumeration.
        Returns:
        Returns a true if the flag is used otherwise a false is delivered.