wt.method
Class MethodInterruptor
java.lang.Object
wt.method.MethodInterruptor
- All Implemented Interfaces:
- RemoteAccess
- public class MethodInterruptor
- extends Object
- implements RemoteAccess
Class that performs server-side interrupting of active method contexts.
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 |
RESOURCE
static final String RESOURCE
- See Also:
- Constant Field Values
service
private static MethodInterruptor.InterruptService service
MethodInterruptor
public MethodInterruptor()
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