fulmine.distribution.connection
Interface IConnectionBroker

All Superinterfaces:
IDestroyable, ILifeCycle
All Known Implementing Classes:
TcpConnectionBroker

public interface IConnectionBroker
extends ILifeCycle

A connection broker is a logical abstraction of the network of available remote context instances. It provides the ability to create a IConnection to other remote contexts in the network. The broker and connection both hide the I/O communication implementation.

Author:
Ramon Servadei

Method Summary
 void connect(IConnectionParameters connectionParameters)
          Connect to the remote context identified in the connection parameters.
 void start()
          Start the broker instance.
 
Methods inherited from interface fulmine.ILifeCycle
isActive
 
Methods inherited from interface fulmine.IDestroyable
destroy
 

Method Detail

start

void start()
Start the broker instance.

Specified by:
start in interface ILifeCycle

connect

void connect(IConnectionParameters connectionParameters)
Connect to the remote context identified in the connection parameters. The connection is created asynchronously.

When available, the connection will be encapsulated in a ConnectionAvailableEvent and distributed using the event framework. To receive the connection event, a listener should be registered against the connection event typed source ( IEventManager.getSystemEventSource(Class)).

Parameters:
connectionParameters - the parameters for creating the connection


Copyright © 2007-2009. All Rights Reserved.