com.sun.grid.jgrid
Interface LogListener

All Known Implementing Classes:
JCEPHandler

public interface LogListener

This interface describes classes which can listen to the information passed to the Logger by the Job.

Since:
0.2
See Also:
Logger

Method Summary
 void logError(java.lang.String jobId, java.lang.String error)
          Log an error.
 void logMessage(java.lang.String jobId, java.lang.String message)
          Log a message.
 void notifyJobCheckpointed(java.lang.String jobId)
          Log that the job has been checkpointed.
 void notifyJobCompleted(java.lang.String jobId)
          Log that the job has completed execution normally.
 void notifyJobFailed(java.lang.String jobId)
          Log that the job has exited prior to completing.
 void notifyJobResumed(java.lang.String jobId)
          Log that the job has been resumed.
 void notifyJobStarted(java.lang.String jobId)
          Log that the job has started executing.
 void notifyJobStopped(java.lang.String jobId)
          Log that the job has been stopped prior to completing.
 void notifyJobSuspended(java.lang.String jobId)
          Log that the job has been suspended.
 

Method Detail

logMessage

public void logMessage(java.lang.String jobId,
                       java.lang.String message)
Log a message.

Parameters:
jobId - The id of the job for which this message is being logged
message - The text of the message

logError

public void logError(java.lang.String jobId,
                     java.lang.String error)
Log an error.

Parameters:
jobId - The id of the job for which this error is being logged
error - The text of the error message

notifyJobStarted

public void notifyJobStarted(java.lang.String jobId)
Log that the job has started executing.

Parameters:
jobId - The id of the job for which this message is being logged

notifyJobCompleted

public void notifyJobCompleted(java.lang.String jobId)
Log that the job has completed execution normally.

Parameters:
jobId - The id of the job for which this message is being logged

notifyJobCheckpointed

public void notifyJobCheckpointed(java.lang.String jobId)
Log that the job has been checkpointed.

Parameters:
jobId - The id of the job for which this message is being logged

notifyJobStopped

public void notifyJobStopped(java.lang.String jobId)
Log that the job has been stopped prior to completing.

Parameters:
jobId - The id of the job for which this message is being logged

notifyJobFailed

public void notifyJobFailed(java.lang.String jobId)
Log that the job has exited prior to completing.

Parameters:
jobId - The id of the job for which this message is being logged

notifyJobSuspended

public void notifyJobSuspended(java.lang.String jobId)
Log that the job has been suspended.

Parameters:
jobId - The id of the job for which this message is being logged

notifyJobResumed

public void notifyJobResumed(java.lang.String jobId)
Log that the job has been resumed.

Parameters:
jobId - The id of the job for which this message is being logged