wt.method
Class MethodResult

java.lang.Object
  extended bywt.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.


Field Summary
 MethodArgs args
           
private  boolean interrupted
           
 long methodContextId
           
private static String RESOURCE
           
 Object result
           
(package private) static long serialVersionUID
           
 Throwable serverException
           
 Method targetMethod
           
private static boolean VERBOSE_CLIENT
           
private static String versionID
           
static MethodResultWriterIfc writer
           
private static String WRITER_CLASS
           
 
Constructor Summary
MethodResult()
           
 
Method Summary
protected  String getMessage(String key)
           
protected  boolean isMethodResultException(Object obj)
           
 void readExternal(ObjectInput input_stream)
           
 void run()
          Interrupt server-side method corresponding to this call
 void writeExternal(ObjectOutput output_stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

MethodResult

public MethodResult()
Method Detail

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)