org.apache.oodt.cas.resource.batchmgr
Interface Batchmgr

All Known Implementing Classes:
XmlRpcBatchMgr

public interface Batchmgr

Version:
$Revision$

A batchmgr interface.

Author:
woollard

Method Summary
 boolean executeRemotely(JobSpec job, ResourceNode resNode)
          Executes a job remotely on the specified remoteHost.
 String getExecutionNode(String jobId)
           
 boolean killJob(String jobId, ResourceNode node)
           
 void setJobRepository(JobRepository repository)
          Sets the JobRepository that this Batchmgr will use to persist Job information while Jobs are executing.
 void setMonitor(Monitor monitor)
          Sets the Monitor to be used by this Batchmgr.
 

Method Detail

executeRemotely

boolean executeRemotely(JobSpec job,
                        ResourceNode resNode)
                        throws JobExecutionException
Executes a job remotely on the specified remoteHost.

Parameters:
job - The JobSpec to execute.
remoteHost - A URL pointer to the remote host to execute the job on.
Returns:
true if the job execution was successful, false otherwise.
Throws:
JobExecutionException - If there is an exception executing the job on the remote host.

setMonitor

void setMonitor(Monitor monitor)
Sets the Monitor to be used by this Batchmgr.

Parameters:
monitor - The Monitor to be used.

setJobRepository

void setJobRepository(JobRepository repository)
Sets the JobRepository that this Batchmgr will use to persist Job information while Jobs are executing.

Parameters:
repository -

killJob

boolean killJob(String jobId,
                ResourceNode node)
Parameters:
jobId -
node -
Returns:

getExecutionNode

String getExecutionNode(String jobId)
Parameters:
jobId -
Returns:


Copyright © 1999-2013
Apache OODT. All Rights Reserved.