public class DummyCommunicationModule extends Object implements CommunicationModule
Constructor and Description |
---|
DummyCommunicationModule() |
Modifier and Type | Method and Description |
---|---|
void |
addMessageListener(MessageListener arg0,
String arg1)
Method used by the brokerage layer to add message listener
|
void |
dispose()
Routine in order to release resources
|
String |
getDescription() |
MessageListener |
getListenerByNameAndType(String arg0,
Class arg1)
Returns the first MessageListener that is an instance of the given clz
and has been registered under the given name.
|
String |
getName() |
String |
getProvider() |
String |
getVersion() |
boolean |
hasChannel(String arg0)
Determines whether a channel with the specified name exists.
|
boolean |
init()
Initialize the module.
|
void |
loadConfigurations(Dictionary arg0) |
void |
messageReceived(ChannelMessage arg0)
This method is invoked by the Connector layer as soon as a message
arrives.
|
void |
removeMessageListener(MessageListener arg0,
String arg1)
Method used by the upper layer to un-register themselves as message
listener
|
void |
send(ChannelMessage arg0,
MessageListener arg1,
PeerCard arg2)
Unicast send
|
void |
send(ChannelMessage arg0,
PeerCard arg1)
Unicast send to the Space Coordinator for joining operation
|
void |
sendAll(ChannelMessage arg0)
Broadcast implementation of the send
|
void |
sendAll(ChannelMessage arg0,
List<PeerCard> arg1)
Multicast implementation of the send.
|
void |
sendAll(ChannelMessage arg0,
List<PeerCard> arg1,
MessageListener arg2)
Multicast send
|
void |
sendAll(ChannelMessage arg0,
MessageListener arg1)
Broadcast implementation of the send
|
public void dispose()
Module
public String getDescription()
getDescription
in interface Module
public String getProvider()
getProvider
in interface Module
public String getVersion()
getVersion
in interface Module
public boolean init()
Module
public void loadConfigurations(Dictionary arg0)
loadConfigurations
in interface Module
public void addMessageListener(MessageListener arg0, String arg1)
CommunicationModule
addMessageListener
in interface CommunicationModule
public MessageListener getListenerByNameAndType(String arg0, Class arg1)
CommunicationModule
getListenerByNameAndType
in interface CommunicationModule
public boolean hasChannel(String arg0)
CommunicationModule
hasChannel
in interface CommunicationModule
arg0
- name of the channel.public void messageReceived(ChannelMessage arg0)
CommunicationModule
messageReceived
in interface CommunicationModule
public void removeMessageListener(MessageListener arg0, String arg1)
CommunicationModule
removeMessageListener
in interface CommunicationModule
public void send(ChannelMessage arg0, PeerCard arg1) throws CommunicationModuleException
CommunicationModule
send
in interface CommunicationModule
CommunicationModuleException
public void send(ChannelMessage arg0, MessageListener arg1, PeerCard arg2) throws CommunicationModuleException
CommunicationModule
send
in interface CommunicationModule
arg1
- that will manage message failuresCommunicationModuleException
public void sendAll(ChannelMessage arg0) throws CommunicationModuleException
CommunicationModule
sendAll
in interface CommunicationModule
CommunicationModuleException
public void sendAll(ChannelMessage arg0, List<PeerCard> arg1) throws CommunicationModuleException
CommunicationModule
sendAll
in interface CommunicationModule
CommunicationModuleException
public void sendAll(ChannelMessage arg0, MessageListener arg1) throws CommunicationModuleException
CommunicationModule
sendAll
in interface CommunicationModule
arg1
- The listener that will manage failures during the message sendCommunicationModuleException
public void sendAll(ChannelMessage arg0, List<PeerCard> arg1, MessageListener arg2) throws CommunicationModuleException
CommunicationModule
sendAll
in interface CommunicationModule
arg0
- Message to sendarg1
- A list of receiversarg2
- The listener manages failures during the message sendCommunicationModuleException
Copyright © 2018 universAAL Consortium. All rights reserved.