Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

oracle.ideimpl.webupdate.task
Class AtomicTask

java.lang.Object
  extended by oracle.ideimpl.webupdate.task.AtomicTask
Direct Known Subclasses:
CreateFile, DeinstallExtensionTask, DeleteFile, InstallExtensionTask, ReadPropertiesFile, ScheduleHookTask, WritePropertiesFile

public abstract class AtomicTask
extends java.lang.Object

An atomic task is a discrete operation during installation of an update that can be rolled back. A given instance of the task will store any necessary information it needs to rollback.


Constructor Summary
AtomicTask()
           
 
Method Summary
 void commit(TaskContext tc)
          Commit this task.
protected  HashStructure getProperties()
          Get (persistent) properties used by this task.
protected  void pause()
          Pause for a period of time.
abstract  void perform(TaskContext tc)
          Perform this task.
abstract  void rollback(TaskContext tc)
          Roll this task back.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomicTask

public AtomicTask()
Method Detail

pause

protected final void pause()
Pause for a period of time. This is used for diagnostic purposes and only has an effect if SLOWDOWN > 0.


getProperties

protected HashStructure getProperties()
Get (persistent) properties used by this task.

Returns:
properties used by this task.

perform

public abstract void perform(TaskContext tc)
                      throws TaskFailedException
Perform this task.

Throws:
TaskFailedException

rollback

public abstract void rollback(TaskContext tc)
                       throws TaskFailedException
Roll this task back.

Throws:
TaskFailedException

commit

public void commit(TaskContext tc)
            throws TaskFailedException
Commit this task. This may be used if the work carried out in perform() creates backups or other temporary changes which must be committed only if all tasks in a set are successful.

Throws:
TaskFailedException

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

Copyright © 1997, 2011, Oracle. All rights reserved.