oracle.odi.sdk.invocation
Class OdiCommand

java.lang.Object
  extended by oracle.odi.sdk.invocation.OdiCommand
Direct Known Subclasses:
OdiCommandScenario

public abstract class OdiCommand
extends java.lang.Object

Base class to wrap an execution request.


Field Summary
static int SYNC_MODE_ASYNCHRONOUS
          Value of the ASyncMode parameter for an asynchronous execution.
static int SYNC_MODE_SYNCHRONOUS
          Value of the ASyncMode parameter for an synchronous execution.
 
Constructor Summary
OdiCommand()
           
 
Method Summary
 java.lang.String getContext()
          Returns the execution context code.
 int getLogLevel()
          Returns the execution log level (1-5).
 int getSyncMode()
          Returns the execution mode, synchronous or asynchronous.
 void setContext(java.lang.String pContext)
          Sets the execution context
 void setLogLevel(int pLogLevel)
          Sets the execution log level (1-5).
 void setSyncMode(int pSyncMode)
          Sets the execution mode, synchronous (SYNC_MODE_SYNCHRONOUS) or asynchronous (SYNC_MODE_SYNCHRONOUS).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYNC_MODE_SYNCHRONOUS

public static final int SYNC_MODE_SYNCHRONOUS
Value of the ASyncMode parameter for an synchronous execution.

See Also:
Constant Field Values

SYNC_MODE_ASYNCHRONOUS

public static final int SYNC_MODE_ASYNCHRONOUS
Value of the ASyncMode parameter for an asynchronous execution.

See Also:
Constant Field Values
Constructor Detail

OdiCommand

public OdiCommand()
Method Detail

getContext

public java.lang.String getContext()
Returns the execution context code.

Returns:
The command execution context code.

setContext

public void setContext(java.lang.String pContext)
Sets the execution context

Parameters:
pContext - Code of the context used to run the command.

getLogLevel

public int getLogLevel()
Returns the execution log level (1-5).

Returns:
Log Level for the execution: 1 to 5.

setLogLevel

public void setLogLevel(int pLogLevel)
Sets the execution log level (1-5).

Parameters:
pLogLevel - Log Level to use for the execution: 1 to 5.

getSyncMode

public int getSyncMode()
Returns the execution mode, synchronous or asynchronous.

Returns:
The execution mode, synchronous (SYNC_MODE_SYNCHRONOUS) or asynchronous (SYNC_MODE_SYNCHRONOUS).

setSyncMode

public void setSyncMode(int pSyncMode)
Sets the execution mode, synchronous (SYNC_MODE_SYNCHRONOUS) or asynchronous (SYNC_MODE_SYNCHRONOUS).

Parameters:
pSyncMode - The execution mode, synchronous (SYNC_MODE_SYNCHRONOUS)or asynchronous (SYNC_MODE_SYNCHRONOUS).