org.apache.geronimo.messaging
Interface NodeEndPointView

All Superinterfaces:
EndPoint, MsgConsProd, MsgConsumer, MsgProducer

public interface NodeEndPointView
extends EndPoint

When a Node is created, it registers itself as an EndPoint defining the following contracts.
Implementation note: this class should have been a nested class of NodeImpl. Though, I do not know how to achieve that: EndPointProxyFactory can not create a proxy for static nested interfaces. I think that this is a CGLIB limitation.

Version:
$Revision :$ $Date: 2004/07/20 00:26:04 $

Field Summary
static Object NODE_ID
          EndPoint ID.
 
Method Summary
 void commitTopology()
          Commits the topology previously prepared.
 void prepareTopology(NodeTopology aTopology)
          Prepares the specified topology.
 
Methods inherited from interface org.apache.geronimo.messaging.EndPoint
getID
 
Methods inherited from interface org.apache.geronimo.messaging.MsgProducer
setMsgProducerOut
 
Methods inherited from interface org.apache.geronimo.messaging.MsgConsumer
getMsgConsumerOut
 

Field Detail

NODE_ID

public static final Object NODE_ID
EndPoint ID.

Method Detail

prepareTopology

public void prepareTopology(NodeTopology aTopology)
                     throws NodeException
Prepares the specified topology.
The node must validate (join) all of its neighbours defined by the specified topology.

Parameters:
aTopology - Topology to be prepared.
Throws:
NodeException - If the node can not join all of its neighbours.

commitTopology

public void commitTopology()
Commits the topology previously prepared.



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