wt.method
Class MethodInterruptor

java.lang.Object
  extended bywt.method.MethodInterruptor
All Implemented Interfaces:
RemoteAccess

public class MethodInterruptor
extends Object
implements RemoteAccess

Class that performs server-side interrupting of active method contexts.


Nested Class Summary
(package private) static class MethodInterruptor.InterruptKey
           
static class MethodInterruptor.InterruptService
           
 
Field Summary
(package private) static String RESOURCE
           
private static MethodInterruptor.InterruptService service
           
 
Fields inherited from interface wt.method.RemoteAccess
versionID
 
Constructor Summary
MethodInterruptor()
           
 
Method Summary
static void init()
          Initialize distributed interrupt service to support interrupting methods in a server cluster environment where the interrupt call may be load balanced to a different server than the method being interrupted.
static void interrupt(long id)
          Interrupt the thread corresponding to the context with the given id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

static final String RESOURCE
See Also:
Constant Field Values

service

private static MethodInterruptor.InterruptService service
Constructor Detail

MethodInterruptor

public MethodInterruptor()
Method Detail

init

public static void init()
                 throws RemoteException
Initialize distributed interrupt service to support interrupting methods in a server cluster environment where the interrupt call may be load balanced to a different server than the method being interrupted.

Throws:
RemoteException

interrupt

public static void interrupt(long id)
Interrupt the thread corresponding to the context with the given id. The caller must be executing in a context from the same client host.

Parameters:
id - the context id