com.sun.jini.example.ray.ex1.raytrace
Class RenderTask

java.lang.Object
  extended bycom.sun.jini.example.ray.ex1.genericWorker.TaskEntry
      extended bycom.sun.jini.example.ray.ex1.raytrace.RenderTask
All Implemented Interfaces:
net.jini.core.entry.Entry, java.io.Serializable

public class RenderTask
extends TaskEntry

See Also:
Serialized Form

Field Summary
 java.lang.Long requestor
           
 java.lang.Integer startX
           
 java.lang.Integer startY
           
 java.lang.Integer stopX
           
 java.lang.Integer stopY
           
 
Constructor Summary
RenderTask()
           
 
Method Summary
 net.jini.core.entry.Entry execute(com.sun.jini.collection.WeakTable cache)
          Execute whatever task the entry requires.
 java.lang.String toString()
           
 
Methods inherited from class com.sun.jini.example.ray.ex1.genericWorker.TaskEntry
responseLeaseTime, verbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

requestor

public java.lang.Long requestor

startY

public java.lang.Integer startY

stopY

public java.lang.Integer stopY

startX

public java.lang.Integer startX

stopX

public java.lang.Integer stopX
Constructor Detail

RenderTask

public RenderTask()
Method Detail

execute

public net.jini.core.entry.Entry execute(com.sun.jini.collection.WeakTable cache)
Description copied from class: TaskEntry
Execute whatever task the entry requires. If an entry is returned, it is written back into the space. If null is returned, nothing is written into the space. If a subclass of TaskEntry has not overridden this method, a RuntimeException will be generated when execute is invoked.

The WeakTable entry can be used to store cached state between one entry's use of execute and another of a related entry. Weak references are stored, so execute must be able to execute properly if the holder doesn't have a value for the key.

Overrides:
execute in class TaskEntry

toString

public java.lang.String toString()


Copyright © 2003 Sun Microsystems, Inc. All Rights Reserved.