org.globus.cog.karajan.workflow.futures
Class FutureNamedArgument

java.lang.Object
  extended by org.globus.cog.karajan.workflow.futures.FutureNamedArgument
All Implemented Interfaces:
NamedArgumentsListener, Future

public class FutureNamedArgument
extends Object
implements Future, NamedArgumentsListener


Constructor Summary
FutureNamedArgument(String name, NamedArguments named)
           
 
Method Summary
 void addModificationAction(EventListener target, Event event)
          When the future becomes available, send the event to the element.
 void close()
           
 void fail(FutureEvaluationException e)
          Signal to any threads waiting on this future that the evaluation of the future has failed.
 Object getValue()
           
 boolean isClosed()
           
 void namedArgumentAdded(String name, NamedArguments source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FutureNamedArgument

public FutureNamedArgument(String name,
                           NamedArguments named)
Method Detail

close

public void close()
Specified by:
close in interface Future

isClosed

public boolean isClosed()
Specified by:
isClosed in interface Future

getValue

public Object getValue()
                throws ExecutionException
Specified by:
getValue in interface Future
Throws:
ExecutionException

addModificationAction

public void addModificationAction(EventListener target,
                                  Event event)
Description copied from interface: Future
When the future becomes available, send the event to the element.

Specified by:
addModificationAction in interface Future

namedArgumentAdded

public void namedArgumentAdded(String name,
                               NamedArguments source)
Specified by:
namedArgumentAdded in interface NamedArgumentsListener

fail

public void fail(FutureEvaluationException e)
Description copied from interface: Future
Signal to any threads waiting on this future that the evaluation of the future has failed. The exception passed through this method should be thrown by all sub-sequent calls to getValue();

Specified by:
fail in interface Future