com.sun.grid.jgrid.server
Interface JCEPListener

All Known Implementing Classes:
JCEPHandler

public interface JCEPListener

The JCEPListener interface abstracts the JCEPHandler from the JCEPProtocolModule. It defines the methods which an implemention of a JCEP handler must implement to allow for inbound communications from the client.

See Also:
JCEPVersion10Module

Method Summary
 void cancelJob(java.lang.String jobId)
          Cancel an executing Job
 void checkpoint(java.lang.String jobId)
          Checkpoint an executing Job
 void register(java.lang.String jobId)
          Register for messages from an executing Job
 void resume(java.lang.String jobId)
          Resume a suspended Job
 void shutdown()
          Shutdown this JCEP server
 void submitJob(Job job)
          Submit the Job for execution
 void suspend(java.lang.String jobId)
          Suspend an executing Job
 void unregister(java.lang.String jobId)
          Unregister for messages from a Job.
 

Method Detail

shutdown

public void shutdown()
              throws CommandFailedException
Shutdown this JCEP server

Throws:
CommandFailedException - if the command was unable to complete sucessfully

cancelJob

public void cancelJob(java.lang.String jobId)
               throws CommandFailedException
Cancel an executing Job

Parameters:
jobId - The id of the Job to cancel
Throws:
CommandFailedException - if the command was unable to complete sucessfully

submitJob

public void submitJob(Job job)
               throws CommandFailedException
Submit the Job for execution

Parameters:
job - The Job object to execute
Throws:
CommandFailedException - if the command was unable to complete sucessfully

checkpoint

public void checkpoint(java.lang.String jobId)
                throws CommandFailedException
Checkpoint an executing Job

Parameters:
jobId - The id of the Job to checkpoint
Throws:
CommandFailedException - if the command was unable to complete sucessfully

register

public void register(java.lang.String jobId)
              throws CommandFailedException
Register for messages from an executing Job

Parameters:
jobId - The id of the Job to which to attach
Throws:
CommandFailedException - if the command was unable to complete sucessfully

unregister

public void unregister(java.lang.String jobId)
                throws CommandFailedException
Unregister for messages from a Job. This method can be used to detach from a job that is no longer running.

Parameters:
jobId - The id of the Job from which to detach
Throws:
CommandFailedException - if the command was unable to complete sucessfully

suspend

public void suspend(java.lang.String jobId)
             throws CommandFailedException
Suspend an executing Job

Parameters:
jobId - The id of the Job to suspend
Throws:
CommandFailedException - if the command was unable to complete sucessfully

resume

public void resume(java.lang.String jobId)
            throws CommandFailedException
Resume a suspended Job

Parameters:
jobId - The id of the Job to resume
Throws:
CommandFailedException - if the command was unable to complete sucessfully