org.objectweb.jonathan.resources.api

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

Context
getContext()
Returns a context associated with the target Job.
void
run(Runnable message)
Tells the target job to execute the code manifested by the message argument.

Method Details

getContext

public Context getContext()
Returns a context associated with the target Job.

Returns:
a context associated with the target Job.


run

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

Parameters:
message - code to be executed.