Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## oracle.ifs.admin.actions
Class LoadJavaAction

    java.lang.Object
      oracle.ifs.utils.action.AbstractAction
          oracle.ifs.admin.actions.ForkProcessAction
              oracle.ifs.admin.actions.LoadJavaAction

All Implemented Interfaces:
  Action, IfsParameters

    public class LoadJavaAction

extends ForkProcessAction
implements IfsParameters

The LoadJavaAction class is an Action implementation that executes the Oracle loadjava process.

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

Modified:
  sgarg 02/25/2002 Making use of IfsParmeters, lsaenz 06/11/2001 Throw if loadjava returns non-zero exit code., lsaenz 03/20/2001 Created.

Field Summary
`static java.lang.String` | `JAVA_COMMAND` Option key mapping to the Java command to use when executing loadjava.
`static java.lang.String` | `LOADJAVA_ARGS` Option key mapping to the arguments to pass to loadjava.
`static java.lang.String` | `LOADJAVA_DATABASE` Option key mapping to the loadjava "database" connect string.

Fields inherited from class oracle.ifs.admin.actions.ForkProcessAction
`LOG_KEY, m_log, TIMEOUT_KEY`

Fields inherited from class oracle.ifs.utils.action.AbstractAction
`CONTINUE_ON_ERROR, m_defaultOptions, m_options`

Fields inherited from interface oracle.ifs.utils.common.IfsParameters
`APPEND_LOG, 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 Summary
`LoadJavaAction()`

Method Summary
`java.lang.String` | `getCommand()` Returns the loadjava command given this Action's options.
`protected void` | `processDestroyed(java.io.StringWriter out, java.io.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, java.io.StringWriter out, java.io.StringWriter err)` Invoked when the external process has finished on its own.

Methods inherited from class oracle.ifs.admin.actions.ForkProcessAction
`failed, perform, stop`

Methods inherited from class oracle.ifs.utils.action.AbstractAction
`getDescription, getName, getValue, isContinueOnError, putValue, setDefaultOptions, setDescription, setName, setOptions`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### JAVA_COMMAND

    public static final java.lang.String JAVA_COMMAND

  Description copied from class: `LoadJavaAction`
  Option key mapping to the Java command to use when executing loadjava. Defined as "java.command".

  See Also:
    Constant Field Values

### LOADJAVA_ARGS

    public static final java.lang.String LOADJAVA_ARGS

  Description copied from class: `LoadJavaAction`
  Option key mapping to the arguments to pass to loadjava. Defined as "loadjava.args".

  See Also:
    Constant Field Values

### LOADJAVA_DATABASE

    public static final java.lang.String LOADJAVA_DATABASE

  Description copied from class: `LoadJavaAction`
  Option key mapping to the loadjava "database" connect string. Defined as "loadjava.database".

  See Also:
    Constant Field Values

Constructor Detail

### LoadJavaAction

    public LoadJavaAction()

Method Detail

### getCommand

    public java.lang.String getCommand()

  Description copied from class: `LoadJavaAction`
  Returns the loadjava command given this Action's options. This method returns the following String:
  `(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)`

  Specified by:
    `getCommand` in class `ForkProcessAction`
  Returns:
    a command String that can be passed to the Runtime.exec method.

### processFinished

    protected void processFinished(int code,
                                   java.io.StringWriter out,
                                   java.io.StringWriter err)
                            throws ActionFailedException

  Description copied from class: `ForkProcessAction`
  Invoked when the external process has finished on its own.

  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.

  Overrides:
    `processFinished` in class `ForkProcessAction`
  Parameters:
    `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.
  Throws:
    `ActionFailedException` - if the process finished but was not considered (by the action implementing this method) a successful execution; thus the action has failed.

### processDestroyed

    protected void processDestroyed(java.io.StringWriter out,
                                    java.io.StringWriter err)

  Description copied from class: `ForkProcessAction`
  Invoked when the external process was destroyed by this Action, due to a timeout, an interrupt from another Thread, or other exceptional conditions.
  Note: subclasses may override this method; it has an empty implementation.

  Overrides:
    `processDestroyed` in class `ForkProcessAction`
  Parameters:
    `out` - a closed StringWriter with stdout output from the Process.
    `err` - a closed StringWriter with stderr output form the Process.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD