org.sapia.ubik.rmi.server.invocation
Class ServerPostInvokeEvent

java.lang.Object
  extended by org.sapia.ubik.rmi.server.invocation.ServerPostInvokeEvent
All Implemented Interfaces:
Event

public class ServerPostInvokeEvent
extends java.lang.Object
implements Event

An event signaling the completion of a remote method invocation, on the server-side.

Author:
Yanick
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Method Summary
 java.lang.Throwable getError()
           
 InvokeCommand getInvokeCommand()
          Returns the command representing the invocation that was made.
 long getInvokeDelay()
          Returns the approximate amount of time the call has taken locally.
 java.lang.Object getResultObject()
           
 java.lang.Object getTarget()
          Returns the object on which the method invocation was performed.
 void setResultObject(java.lang.Object result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInvokeCommand

public InvokeCommand getInvokeCommand()
Returns the command representing the invocation that was made.

Returns:
an InvokeCommand.

getTarget

public java.lang.Object getTarget()
Returns the object on which the method invocation was performed.

Returns:
an Object.

getInvokeDelay

public long getInvokeDelay()
Returns the approximate amount of time the call has taken locally.

Returns:
a delay in milliseconds.

getError

public java.lang.Throwable getError()
Returns:
the Throwable that the method invocation corresponding to this instance generated, or null if such event occurred.

getResultObject

public java.lang.Object getResultObject()
Returns:
the result of the invocation, or null if no such result exists.

setResultObject

public void setResultObject(java.lang.Object result)
Parameters:
result - the result of the invocation.


Copyright © 2010 Sapia OSS. All Rights Reserved.