org.universAAL.middleware.connectors
Interface CommunicationConnector

Package class diagram package CommunicationConnector
All Superinterfaces:
Connector
All Known Implementing Classes:
JGroupsCommunicationConnector

public interface CommunicationConnector
extends Connector

Interface for the communication connector.

Author:
Michele Girolami, Francesco Furfari, Filippo Palumbo

Method Summary
 void configureConnector(List<ChannelDescriptor> channels, String peerName)
          Configure the connector
 void dispose(List<ChannelDescriptor> channels)
          Reset the CommunicationConnector
 List<String> getGroupMembers(String groupName)
           
 boolean hasChannel(String channelName)
           
 void multicast(ChannelMessage message)
          Send multicast message to a group (Broadcast)
 void multicast(ChannelMessage message, List<PeerCard> receivers)
          Send multicast message to a list of recipients in the same group
 String toString()
           
 void unicast(ChannelMessage message, String receiver)
          Send unicast message to one recipient
 
Methods inherited from interface org.universAAL.middleware.connectors.Connector
dispose, getDescription, getName, getProvider, getVersion, init, loadConfigurations
 

Method Detail

multicast

void multicast(ChannelMessage message,
               List<PeerCard> receivers)
               throws CommunicationConnectorException
Send multicast message to a list of recipients in the same group

Throws:
CommunicationConnectorException

multicast

void multicast(ChannelMessage message)
               throws CommunicationConnectorException
Send multicast message to a group (Broadcast)

Throws:
CommunicationConnectorException

unicast

void unicast(ChannelMessage message,
             String receiver)
Send unicast message to one recipient


configureConnector

void configureConnector(List<ChannelDescriptor> channels,
                        String peerName)
                        throws CommunicationConnectorException
Configure the connector

Throws:
CommunicationModuleException
CommunicationConnectorException

dispose

void dispose(List<ChannelDescriptor> channels)
Reset the CommunicationConnector

Parameters:
channels - Channels to reset

toString

String toString()
Overrides:
toString in class Object

getGroupMembers

List<String> getGroupMembers(String groupName)

hasChannel

boolean hasChannel(String channelName)


Copyright © 2014 universAAL Consortium. All Rights Reserved.