wt.method
Class MethodResult
java.lang.Object
wt.method.MethodResult
- All Implemented Interfaces:
- Externalizable, Runnable, Serializable
- class MethodResult
- extends Object
- implements Externalizable, Runnable
Class that encapsulates result marshaling for method invocations between client and server.
This allows special processing to be incorporated into reply marshaling. To support
live feedback and interrupt processing while processing a call, the target method
is actually invoked from within the writeExternal
method of this class.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionID
private static final String versionID
- See Also:
- Constant Field Values
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
VERBOSE_CLIENT
private static final boolean VERBOSE_CLIENT
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
WRITER_CLASS
private static final String WRITER_CLASS
- See Also:
- Constant Field Values
writer
public static MethodResultWriterIfc writer
targetMethod
public Method targetMethod
args
public MethodArgs args
result
public Object result
serverException
public Throwable serverException
methodContextId
public long methodContextId
interrupted
private boolean interrupted
MethodResult
public MethodResult()
readExternal
public void readExternal(ObjectInput input_stream)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
isMethodResultException
protected boolean isMethodResultException(Object obj)
writeExternal
public void writeExternal(ObjectOutput output_stream)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
run
public void run()
- Interrupt server-side method corresponding to this call
- Specified by:
run
in interface Runnable
getMessage
protected String getMessage(String key)