public class LoadJavaAction extends ForkProcessAction implements IfsParameters
LoadJavaAction defines the following options:
java.command - the Java command to execute loadjava (jre or java)
jdbc.user.name - the database user to pass to loadjava
jdbc.user.password - the database user's password
loadjava.database - the loadjava "database" connect string
loadjava.args - loadjava arguments
Modifier and Type | Field and Description |
---|---|
static String |
JAVA_COMMAND
Option key mapping to the Java command to use when executing loadjava.
|
static String |
LOADJAVA_ARGS
Option key mapping to the arguments to pass to loadjava.
|
static String |
LOADJAVA_DATABASE
Option key mapping to the loadjava "database" connect string.
|
LOG_KEY, m_log, TIMEOUT_KEY
CONTINUE_ON_ERROR, m_defaultOptions, m_options
APPEND_LOG, DATABASE_TYPE, DATABASE_URL, DB_USER_NAME, DB_USER_PASSWORD, DOMAIN_TYPE, ENABLE_SSL_SUPPORT, FOR_SCHEMA_UPGRADE, IFS_DOMAIN_DISPLAY_NAME, IFS_DOMAIN_NAME, IFS_SCHEMA_NAME, IFS_SCHEMA_PASSWORD, IFS_SERVICE_NAME, IFS_USER_NAME, IFS_USER_PASSWORD, INCLUDE_PATH, INITIAL_CONTEXT_FACTORY, LDAP_URL_DAS_LOOKUP, LDAP_USER_NAME, LDAP_USER_PASSWORD, OUTPUT_FILE, PARAMETER_FILE, REGISTRY, SCHEMA_VERSION_KEY, SECURITY_PROTOCOL_NAME, SERVICE_CONFIGURATION_NAME
Constructor and Description |
---|
LoadJavaAction() |
Modifier and Type | Method and Description |
---|---|
String |
getCommand()
Returns the loadjava command given this Action's options.
|
protected void |
processDestroyed(StringWriter out,
StringWriter err)
Invoked when the external process was destroyed by this Action, due to a
timeout, an interrupt from another Thread, or other exceptional conditions.
|
protected void |
processFinished(int code,
StringWriter out,
StringWriter err)
Invoked when the external process has finished on its own.
|
failed, perform, stop
getDescription, getName, getValue, isContinueOnError, isPostgres, putValue, setDefaultOptions, setDescription, setName, setOptions
public static final String JAVA_COMMAND
public static final String LOADJAVA_ARGS
public static final String LOADJAVA_DATABASE
public String getCommand()
(String) getValue(JAVA_COMMAND) + "-classpath " +
System.getProperty("java.class.path") +
" oracle.aurora.server.tools.loadjava.LoadJavaMain" +
" -u " + (String) getValue(JDBCAction.USER_NAME) +
"/" + (String) getValue(JDBCAction.USER_PASSWORD) +
"@" + (String) getValue(LOADJAVA_DATABASE) +
" " + (String) getValue(LOADJAVA_ARGS)
getCommand
in class ForkProcessAction
protected void processFinished(int code, StringWriter out, StringWriter err) throws ActionFailedException
ForkProcessAction
Note: subclasses may override this method; it has an empty implementation.
Note: subclasses may decide (based on the output from the process or the exit code) that the process did not finish successfully. In this case, the subclass may throw an ActionFailedException to notify that the action has in fact failed, even though the external process finished.
processFinished
in class ForkProcessAction
code
- the exit code returned by the Process.out
- a closed StringWriter with stdout output from the Process.err
- a closed StringWriter with stderr output form the Process.ActionFailedException
- if the process finished but was not
considered (by the action implementing this method) a
successful execution; thus the action has failed.protected void processDestroyed(StringWriter out, StringWriter err)
ForkProcessAction
processDestroyed
in class ForkProcessAction
out
- a closed StringWriter with stdout output from the Process.err
- a closed StringWriter with stderr output form the Process.Copyright © 2023. All rights reserved.