@Internal public class RemoteJavaApplicationLauncher extends AbstractRemoteApplicationLauncher<JavaApplication> implements JavaApplicationLauncher<JavaApplication>
JavaApplicationLauncher that launches a JavaApplication on a Platform.
Copyright (c) 2014. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
| Modifier and Type | Class and Description |
|---|---|
static class |
RemoteJavaApplicationLauncher.RemoteJavaApplicationProcess
A
RemoteJavaApplicationLauncher.RemoteJavaApplicationProcess is an adapter for a RemoteApplicationProcess,
specifically for Java-based applications. |
| Constructor and Description |
|---|
RemoteJavaApplicationLauncher()
Constructs a
RemoteJavaApplicationLauncher. |
| Modifier and Type | Method and Description |
|---|---|
protected <P extends ApplicationProcess> |
adapt(RemoteApplicationProcess process)
Adapt the
RemoteApplicationProcess as something specific for the Application being built. |
List<String> |
getCommandLineArguments(Platform platform,
com.oracle.bedrock.OptionsByType optionsByType)
Obtains the command line arguments when launching an
Application using a RemoteTerminal. |
String |
getCommandToExecute(Platform platform,
com.oracle.bedrock.OptionsByType optionsByType)
Obtains the command to launch an
Application using a RemoteTerminal. |
Properties |
getEnvironmentVariables(Platform platform,
com.oracle.bedrock.OptionsByType optionsByType)
Obtains the environment variables to use when launching an
Application using a RemoteTerminal. |
protected void |
onLaunched(JavaApplication application,
com.oracle.bedrock.OptionsByType optionsByType)
Prepares the
Application after it was launched for use. |
protected void |
onLaunching(com.oracle.bedrock.OptionsByType optionsByType)
Prepares the launch
OptionsByType prior to being used to launch an Application. |
launchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisplayNamelaunchpublic RemoteJavaApplicationLauncher()
throws UnsupportedOperationException
RemoteJavaApplicationLauncher.UnsupportedOperationExceptionprotected void onLaunching(com.oracle.bedrock.OptionsByType optionsByType)
AbstractRemoteApplicationLauncherOptionsByType prior to being used to launch an Application.onLaunching in class AbstractRemoteApplicationLauncher<JavaApplication>optionsByType - the launch OptionsByTypeprotected void onLaunched(JavaApplication application, com.oracle.bedrock.OptionsByType optionsByType)
AbstractRemoteApplicationLauncherApplication after it was launched for use.onLaunched in class AbstractRemoteApplicationLauncher<JavaApplication>application - the launched ApplicationoptionsByType - the launch OptionsByTypeprotected <P extends ApplicationProcess> P adapt(RemoteApplicationProcess process)
AbstractRemoteApplicationLauncherRemoteApplicationProcess as something specific for the Application being built.adapt in class AbstractRemoteApplicationLauncher<JavaApplication>P - the desired type of the ApplicationProcessprocess - the RemoteApplicationProcessApplicationProcesspublic Properties getEnvironmentVariables(Platform platform, com.oracle.bedrock.OptionsByType optionsByType)
RemoteTerminal.LaunchableApplication using a RemoteTerminal.getEnvironmentVariables in interface RemoteTerminal.LaunchablegetEnvironmentVariables in class AbstractRemoteApplicationLauncher<JavaApplication>platform - the PlatformoptionsByType - the OptionsByTypeProperties representing the required remote environment variablespublic String getCommandToExecute(Platform platform, com.oracle.bedrock.OptionsByType optionsByType)
RemoteTerminal.LaunchableApplication using a RemoteTerminal.getCommandToExecute in interface RemoteTerminal.LaunchablegetCommandToExecute in class AbstractRemoteApplicationLauncher<JavaApplication>platform - the PlatformoptionsByType - the OptionsByTypepublic List<String> getCommandLineArguments(Platform platform, com.oracle.bedrock.OptionsByType optionsByType)
RemoteTerminal.LaunchableApplication using a RemoteTerminal.getCommandLineArguments in interface RemoteTerminal.LaunchablegetCommandLineArguments in class AbstractRemoteApplicationLauncher<JavaApplication>platform - the PlatformoptionsByType - the OptionsByTypeApplicationCopyright © 2017. All rights reserved.