java.lang.Object
com.inductiveautomation.ignition.client.launch.Launcher

public class Launcher extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • updateDotIgnitionDir

      public static File updateDotIgnitionDir(String cacheDirName) throws LaunchException
      Retrieves the local systems cache dir after following redirect.txt files and sets the CACHE_DIR_KEY system prop with the determined path.
      Parameters:
      cacheDirName - The name of the cache dir. usually just ".ignition" but this should be retrieved from the launcher Resource Bundle's key CacheDir
      Throws:
      LaunchException
    • getCacheDir

      public File getCacheDir()
    • isFirstLaunch

      public static boolean isFirstLaunch()
    • notifyLaunchFinished

      public static void notifyLaunchFinished()
    • getJNLPLaunchSpec

      public static LaunchSpec getJNLPLaunchSpec(LauncherParent parent) throws LaunchException
      Creates the LaunchSpec from the LauncherParent's LaunchProperties (JNLP file/Applet properties)
      Throws:
      LaunchException
    • restartLauncher

      public void restartLauncher() throws LaunchException
      Restarts the Launcher with the last LaunchSpec that was set.
      Throws:
      LaunchException
    • getLastSpec

      public LaunchSpec getLastSpec()
    • startLauncherInitial

      public void startLauncherInitial() throws LaunchException
      Uses the arguments from the LauncherParent to start the launcher either from direct args (JNLP) or from retarget params
      Throws:
      LaunchException
    • startLauncherInitial

      public void startLauncherInitial(String username, String password) throws LaunchException
      Special version of startLauncherInitial that takes credentials, in case the launcher has some sort of single-sign-on (SSO) system that lets it know credentials beforehand.
      Throws:
      LaunchException
    • startLauncher

      public void startLauncher(LaunchSpec spec) throws LaunchException
      Throws:
      LaunchException