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
 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

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

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

Returns:
a context associated with the target Job.


Copyright © 2008 OW2 Consortium. All Rights Reserved.