com.sun.grid.jgrid.server
Interface ComputeEngine

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
ComputeEngineImpl

public interface ComputeEngine
extends java.rmi.Remote

This class is the interface to the ComputeEngine that the skeleton sees. It allows the skeleton to control the compute engines.


Method Summary
 void checkpoint(java.lang.String jobId)
          This method is causes the executing job to be written to disk.
 void compute(Job job)
          This method causes the execution of the Job.
 void halt(java.lang.String jobId)
          This method stops a job from executing.
 void haltAll()
          This method stops all executing jobs on the ComputeEngine.
 

Method Detail

compute

public void compute(Job job)
             throws java.rmi.RemoteException
This method causes the execution of the Job. Any non-RMI exceptions will be returned to the ComputeProxy via the ResultChannel.sendException method rather than being thrown.

Parameters:
job - the job to execute
Throws:
java.rmi.RemoteException - if an error occurs on the server side
See Also:
ResultChannel.sendException(java.lang.Exception, java.lang.String)

checkpoint

public void checkpoint(java.lang.String jobId)
                throws java.rmi.RemoteException
This method is causes the executing job to be written to disk.

Parameters:
jobId - the id of the job to checkpoint
Throws:
java.rmi.RemoteException - if an error occurs on the server side

halt

public void halt(java.lang.String jobId)
          throws java.rmi.RemoteException
This method stops a job from executing. The Job should be checkpointed before being stopped.

Parameters:
jobId - the id of the job to halt
Throws:
java.rmi.RemoteException - if an error occurs on the server side

haltAll

public void haltAll()
             throws java.rmi.RemoteException
This method stops all executing jobs on the ComputeEngine. Each Job should be checkpointed before being stopped.

Throws:
java.rmi.RemoteException - if an error occurs on the server side