Skip navigation links

Oracle Data Mining Java API Reference
11g Release 1 (11.1)

B28132-01


oracle.dmt.jdm.base
Class OraTask

java.lang.Object
  extended byoracle.dmt.jdm.OraDMObject
      extended byoracle.dmt.jdm.OraMiningObject
          extended byoracle.dmt.jdm.base.OraTask

All Implemented Interfaces:
javax.datamining.MiningObject, oracle.dmt.jdm.OraPLSQLConstants, javax.datamining.base.Task
Direct Known Subclasses:
oracle.dmt.jdm.task.apply.OraApplyTask, OraBuildTask, OraTestTask

public abstract class OraTask
extends oracle.dmt.jdm.OraMiningObject
implements javax.datamining.base.Task

The class OraTask add new extension methods in 11.1 to javax.datamining.base.Task. These methods allows to specify task dependencies and thus enable execution of tasks as a sequence of tasks that allows to specify processes, such as model build --> test --> apply. Without this feature, client applications have to wait for the completion of the dependent tasks using either ExecutionHandle.waitForCompletion method or periodic polling the server by using ExecutionHandle.getLatestStatus method.

Since:
OJDM 11.1.0

Method Summary
 void addDependency(java.lang.String parentTaskName)
          Adds the parent task that this task depends on.
 void dropDependency(java.lang.String parentTaskName)
          Removes the parent task dependency for this task.
 java.util.List getChildTaskNames()
          Returns list of child tasks, i.e., the tasks that have this task as the parent.
 java.util.List getParentTaskNames()
          Returns list of parent tasks that this task depends on.
 boolean overwriteOutput()
          Returns the overwrite flag set for this task.
 void overwriteOutput(boolean overwrite)
          Set the flag to indicate the task that it can overwrite if there are any of the previous outputs with the same name exist in the server.

 

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

 

Methods inherited from interface javax.datamining.MiningObject
getCreationDate, getCreatorInfo, getName, getObjectIdentifier, setDescription

 

Method Detail

addDependency

public void addDependency(java.lang.String parentTaskName)
                   throws javax.datamining.JDMException
Adds the parent task that this task depends on. In this release only one parent task is supported.
Throws:
javax.datamining.JDMException
Since:
OJDM 11.1.0

dropDependency

public void dropDependency(java.lang.String parentTaskName)
                    throws javax.datamining.JDMException
Removes the parent task dependency for this task.
Throws:
javax.datamining.JDMException
Since:
OJDM 11.1.0

getParentTaskNames

public java.util.List getParentTaskNames()
Returns list of parent tasks that this task depends on. In this release only one parent task is supported.
Since:
OJDM 11.1.0

getChildTaskNames

public java.util.List getChildTaskNames()
Returns list of child tasks, i.e., the tasks that have this task as the parent.
Since:
OJDM 11.1.0

overwriteOutput

public void overwriteOutput(boolean overwrite)
Set the flag to indicate the task that it can overwrite if there are any of the previous outputs with the same name exist in the server. By default overwrite flag is set to false.
Since:
OJDM 11.1.0

overwriteOutput

public boolean overwriteOutput()
Returns the overwrite flag set for this task.
Since:
OJDM 11.1.0

Skip navigation links

Oracle Data Mining Java API Reference
11g Release 1 (11.1)

B28132-01


Copyright © 2005-2007 Oracle. All rights reserved.