org.apache.geronimo.messaging.proxy
Class EndPointCallback

java.lang.Object
  extended byorg.apache.geronimo.messaging.proxy.EndPointCallback
All Implemented Interfaces:
net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.MethodInterceptor

public class EndPointCallback
extends Object
implements net.sf.cglib.proxy.MethodInterceptor

This Callback sends Request to an EndPoint hosted by a set of Nodes.

Version:
$Revision: 1.3 $ $Date: 2004/07/20 00:06:13 $

Constructor Summary
EndPointCallback(RequestSender aSender)
           
 
Method Summary
 Object getEndPointId()
          Gets the target EndPoint identifier.
 MsgOutInterceptor getOut()
          Gets the Msg transport used to sent Requests.
 NodeInfo[] getTargets()
          Gets the Nodes hosting the target EndPoint.
 Object intercept(Object arg0, Method arg1, Object[] arg2, net.sf.cglib.proxy.MethodProxy arg3)
           
 void setEndPointId(Object anID)
          Sets the identifier of the target EndPoint.
 void setOut(MsgOutInterceptor anOut)
          Sets the Msg output to be used to sent Requests.
 void setTargets(NodeInfo[] aTargets)
          Sets the Nodes hosting the target EndPoints.
 void setTransformer(MsgTransformer aTransformer)
          Sets the transformer to be applied on Msgs sent by this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndPointCallback

public EndPointCallback(RequestSender aSender)
Parameters:
aSender - RequestSender to be used to send Request to the associated EndPoint.
Method Detail

getEndPointId

public Object getEndPointId()
Gets the target EndPoint identifier.

Returns:
Returns the id.

setEndPointId

public void setEndPointId(Object anID)
Sets the identifier of the target EndPoint.

Parameters:
anID - The id to set.

getOut

public MsgOutInterceptor getOut()
Gets the Msg transport used to sent Requests.

Returns:
Returns the out.

setOut

public void setOut(MsgOutInterceptor anOut)
Sets the Msg output to be used to sent Requests.

Parameters:
anOut - The out to set.

getTargets

public NodeInfo[] getTargets()
Gets the Nodes hosting the target EndPoint.

Returns:
Returns the targets.

setTransformer

public void setTransformer(MsgTransformer aTransformer)
Sets the transformer to be applied on Msgs sent by this instance.

Parameters:
aTransformer -

setTargets

public void setTargets(NodeInfo[] aTargets)
Sets the Nodes hosting the target EndPoints.

Parameters:
aTargets - The targets to set.

intercept

public Object intercept(Object arg0,
                        Method arg1,
                        Object[] arg2,
                        net.sf.cglib.proxy.MethodProxy arg3)
                 throws Throwable
Specified by:
intercept in interface net.sf.cglib.proxy.MethodInterceptor
Throws:
Throwable


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.