orc.runtime.sites.java
Class MethodProxy
java.lang.Object
   orc.runtime.values.Value
orc.runtime.values.Value
       orc.runtime.sites.Site
orc.runtime.sites.Site
           orc.runtime.sites.java.MethodProxy
orc.runtime.sites.java.MethodProxy
- All Implemented Interfaces: 
- Callable
- public class MethodProxy 
- extends Site
Allow a Java method to be used as an Orc site.
 
 
MAGIC: pausible methods are run in a Kilim task.
 We actually go to some lengths to avoid running
 non-pausable methods in a Kilim task to ensure that
 if this site is wrapped by ThreadSite, the method
 will actually run in its own thread and not in the
 Kilim thread.
- Author:
- quark, dkitchin
 
 
 
| Method Summary | 
|  void | callSite(Args args,
         Token caller)Must be implemented by subclasses to implement the site behavior
 | 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
MethodProxy
public MethodProxy(java.lang.Object instance,
                   MethodHandle delegate)
callSite
public void callSite(Args args,
                     Token caller)
              throws TokenException
- Description copied from class: Site
- Must be implemented by subclasses to implement the site behavior
 
- 
- Specified by:
- callSitein class- Site
 
- 
- Parameters:
- args- list of argument values
- caller- where the result should be sent
- Throws:
- TokenException