org.exolab.jms.net.connector
Class MarshalledInvocation

java.lang.Object
  |
  +--org.exolab.jms.net.connector.MarshalledInvocation
All Implemented Interfaces:
Invocation

public class MarshalledInvocation
extends java.lang.Object
implements Invocation

An Invocation where the Request is wrapped in an MarshalledObject.

Version:
$Revision: 1.2 $ $Date: 2005/07/22 23:40:36 $
Author:
Tim Anderson

Constructor Summary
MarshalledInvocation(java.rmi.MarshalledObject request, Caller caller)
          Construct a new MarshalledInvocation.
 
Method Summary
 Caller getCaller()
          Returns the caller performing the invocation.
 java.rmi.MarshalledObject getMarshalledResponse()
          Returns the result of the invocation, wrapped in a MarshalledObject.
 Request getRequest()
          Returns the request.
 Response getResponse()
          Returns the result of the invocation.
 void setResponse(Response response)
          Sets the result of the invocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarshalledInvocation

public MarshalledInvocation(java.rmi.MarshalledObject request,
                            Caller caller)
Construct a new MarshalledInvocation.
Parameters:
request - the marshalled Request instance
caller - the caller performing the invocation
Method Detail

getRequest

public Request getRequest()
                   throws java.lang.Throwable
Returns the request.
Specified by:
getRequest in interface Invocation
Returns:
the request
Throws:
java.lang.Throwable - for any error

getCaller

public Caller getCaller()
Returns the caller performing the invocation.
Specified by:
getCaller in interface Invocation
Returns:
the caller

setResponse

public void setResponse(Response response)
Sets the result of the invocation.
Specified by:
setResponse in interface Invocation
Parameters:
response - the result

getResponse

public Response getResponse()
                     throws java.lang.InterruptedException
Returns the result of the invocation.
Returns:
the result of the invocation.
Throws:
java.lang.InterruptedException - if interrupted

getMarshalledResponse

public java.rmi.MarshalledObject getMarshalledResponse()
                                                throws java.io.IOException,
                                                       java.lang.InterruptedException
Returns the result of the invocation, wrapped in a MarshalledObject.
Returns:
the result of the invocation.
Throws:
java.io.IOException - if the response can't be marshalld
java.lang.InterruptedException - if interrupted


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.