org.objectweb.jonathan.apis.resources
Interface Job


public interface Job

A Job is the abstraction of an activity in the system. Jobs are created and managed by schedulers. The role of a job is to execute code.


Method Summary
 org.objectweb.jonathan.apis.kernel.Context getContext()
          Returns a context associated with the target Job.
 void run(java.lang.Runnable message)
          Tells the target job to execute the code manifested by the message argument.
 

Method Detail

run

public void run(java.lang.Runnable message)
Tells the target job to execute the code manifested by the message argument.

Parameters:
message - code to be executed.

getContext

public org.objectweb.jonathan.apis.kernel.Context getContext()
Returns a context associated with the target Job.

Returns:
a context associated with the target Job.