|
Oracle Data Mining Java API Reference 10g Release 1 (10.1) B12276-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An ExecutionHandle
serves as a handle for the application that can be used to monitor or cancel a task execution. An instance of ExecutionHandle
will be created when a mining task is executed in the DMS. Client application can use this handle to monitor the task execution in the DMS. It also provides the methods to terminate the task execution and wait for completion of the task.
This class is introduced in 10.1.0 to give the capability to re-execute a task.
Method Summary | |
long |
getDurationInSeconds(Connection dmsConn) Returns the duration of execution for the associated task in the unit of seconds. |
java.lang.String |
getID() Returns the id of the execution handle. |
MiningTaskStatus |
getLatestStatus(Connection dmsConn) Returns the latest status of the task execution handle. |
TaskStatusHistory |
getStatusHistory(Connection dmsConn) Returns TaskStatusHistory giving access to the full history of the task. |
java.lang.String |
getTaskName() Returns the name of the task associated with this execution handle |
MiningTaskStatus |
terminate(Connection dmsConn) Terminates a queued/initiated/executing task in the DMS. |
MiningTaskStatus |
waitForCompletion(Connection dmsConn, long timeoutInSeconds) Waits for the task completion after executing the task. |
Method Detail |
public MiningTaskStatus terminate(Connection dmsConn) throws InvalidArgumentException, MiningTaskException, java.sql.SQLException
dmsConn
- Data mining server connectionInvalidArgumentException
- is throwndmsConn
is nullMiningTaskException
- is thrownSQLException
- is thrownInvalidArgumentException
MiningTaskException
java.sql.SQLException
public MiningTaskStatus getLatestStatus(Connection dmsConn) throws InvalidArgumentException, MiningTaskException, java.sql.SQLException
dmsConn
- Data mining server connectionInvalidArgumentException
- is thrownMiningTaskException
- is thrownSQLException
- is thrownInvalidArgumentException
MiningTaskException
java.sql.SQLException
public TaskStatusHistory getStatusHistory(Connection dmsConn) throws InvalidArgumentException, MiningTaskException, java.sql.SQLException
dmsConn
- Data mining server connectionInvalidArgumentException
- is thrownMiningTaskException
- is thrownSQLException
- is thrownInvalidArgumentException
MiningTaskException
java.sql.SQLException
public MiningTaskStatus waitForCompletion(Connection dmsConn, long timeoutInSeconds) throws InvalidArgumentException, MiningTaskException, java.sql.SQLException
dmsConn
- Data mining server connectionInvalidArgumentException
- is throwndmsConn
is nullMiningTaskException
- is thrownSQLException
- is thrownInvalidArgumentException
MiningTaskException
java.sql.SQLException
public java.lang.String getID()
public long getDurationInSeconds(Connection dmsConn) throws InvalidArgumentException, MiningTaskException, java.sql.SQLException
InvalidArgumentException
MiningTaskException
java.sql.SQLException
public java.lang.String getTaskName()
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |