Sun Adapter for COM/DCOM API

com.stc.connector.comadapter.taskprocessor
Class SynchronizedTask

java.lang.Object
  extended by com.stc.connector.comadapter.taskprocessor.SynchronizedTask
All Implemented Interfaces:
Task

public class SynchronizedTask
extends java.lang.Object
implements Task


Constructor Summary
SynchronizedTask(Task initTask)
           
 
Method Summary
 void execute()
           
 java.lang.Exception getException()
           
 void invoke(Processor processor)
           
 boolean isAborted()
           
 boolean isDone()
           
 boolean isFailed()
           
 void setAborted()
           
 void setFailed()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizedTask

public SynchronizedTask(Task initTask)
Method Detail

invoke

public void invoke(Processor processor)
            throws ProcessorException,
                   java.lang.InterruptedException
Throws:
ProcessorException
java.lang.InterruptedException

execute

public void execute()
             throws TaskException
Specified by:
execute in interface Task
Throws:
TaskException

setAborted

public void setAborted()
Specified by:
setAborted in interface Task

isAborted

public boolean isAborted()
Specified by:
isAborted in interface Task

setFailed

public void setFailed()
Specified by:
setFailed in interface Task

isFailed

public boolean isFailed()
Specified by:
isFailed in interface Task

isDone

public boolean isDone()
Specified by:
isDone in interface Task

getException

public java.lang.Exception getException()
Specified by:
getException in interface Task

Sun Adapter for COM/DCOM API

Copyright © 1994-2008 Sun Microsystems, Inc. All rights reserved.