org.astrogrid.applications.manager
Interface ExecutionController

All Known Implementing Classes:
DefaultExecutionController

public interface ExecutionController

Interface to a service that allows applications to be executed and controlled * @author Paul Harrison (pah@jb.man.ac.uk) 22-Mar-2004

Since:
iteration5
Version:
$Name: HEAD $

Method Summary
 boolean abort(java.lang.String executionId)
          abort execution of an application (not supported by all applications)
 boolean execute(java.lang.String executionId)
          starts asynchronous executoion of a application
 java.lang.String init(Tool tool, java.lang.String jobstepID)
          create a new application
 

Method Detail

init

public java.lang.String init(Tool tool,
                             java.lang.String jobstepID)
                      throws CeaException
create a new application

Parameters:
tool - provides application name, interface name, parameters
jobstepID - id assigned by client to this new execution
Returns:
id assigned by server to this new execution.
Throws:
CeaException

execute

public boolean execute(java.lang.String executionId)
                throws CeaException
starts asynchronous executoion of a application

Parameters:
executionId - the server-assigned id of a previously initialized application
Returns:
true if execution started successfully
Throws:
CeaException

abort

public boolean abort(java.lang.String executionId)
              throws CeaException
abort execution of an application (not supported by all applications)

Parameters:
executionId - the servier-assigned id of an application
Returns:
true if the application could be aborted
Throws:
CeaException


Copyright © 2002-2006 AstroGrid. All Rights Reserved.