| org.jgroups.tests.perf.Transport
All known Subclasses: org.jgroups.tests.perf.transports.TcpTransport, org.jgroups.tests.perf.transports.JGroupsTransport, org.jgroups.tests.perf.transports.JGroupsClusterTransport, org.jgroups.tests.perf.transports.UdpTransport, org.jgroups.tests.perf.transports.JmsTransport,
Transport | public interface Transport (Code) | | Generic transport abstraction for all different transports (JGroups, JMS, UDP, TCP). The lifecycle is
- Create an instance of the transport (using the empty constructor)
- Call
create()
- Possibly call
setReceiver()
- Call
start()
- Call
send()
- Call
stop()
- Call
destroy() (alternatively call start() again)
author: Bela Ban Jan 22 author: 2004 version: $Id: Transport.java,v 1.3 2005/07/26 11:50:22 belaban Exp $ |
destroy | void destroy()(Code) | | Destroy the transport. Transport cannot be reused after this call, but a new instance has to be created
|
getLocalAddress | Object getLocalAddress()(Code) | | Get the local address (= endpoint) of this transport. Guaranteed to be called after
create() , possibly even later (after start() )
|
send | void send(Object destination, byte[] payload) throws Exception(Code) | | Send a message
Parameters: destination - A destination. If null, send a message to all members Parameters: payload - A buffer to be sent throws: Exception - |
stop | void stop()(Code) | | Stop the transport
|
|
|