
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()
Modulepublic String getDescription()
getDescription in interface Modulepublic String getProvider()
getProvider in interface Modulepublic String getVersion()
getVersion in interface Modulepublic boolean init()
Modulepublic void loadConfigurations(Dictionary arg0)
loadConfigurations in interface Modulepublic void addMessageListener(MessageListener arg0, String arg1)
CommunicationModuleaddMessageListener in interface CommunicationModulepublic MessageListener getListenerByNameAndType(String arg0, Class arg1)
CommunicationModulegetListenerByNameAndType in interface CommunicationModulepublic boolean hasChannel(String arg0)
CommunicationModulehasChannel in interface CommunicationModulearg0 - name of the channel.public void messageReceived(ChannelMessage arg0)
CommunicationModulemessageReceived in interface CommunicationModulepublic void removeMessageListener(MessageListener arg0, String arg1)
CommunicationModuleremoveMessageListener in interface CommunicationModulepublic void send(ChannelMessage arg0, PeerCard arg1) throws CommunicationModuleException
CommunicationModulesend in interface CommunicationModuleCommunicationModuleExceptionpublic void send(ChannelMessage arg0, MessageListener arg1, PeerCard arg2) throws CommunicationModuleException
CommunicationModulesend in interface CommunicationModulearg1 - that will manage message failuresCommunicationModuleExceptionpublic void sendAll(ChannelMessage arg0) throws CommunicationModuleException
CommunicationModulesendAll in interface CommunicationModuleCommunicationModuleExceptionpublic void sendAll(ChannelMessage arg0, List<PeerCard> arg1) throws CommunicationModuleException
CommunicationModulesendAll in interface CommunicationModuleCommunicationModuleExceptionpublic void sendAll(ChannelMessage arg0, MessageListener arg1) throws CommunicationModuleException
CommunicationModulesendAll in interface CommunicationModulearg1 - The listener that will manage failures during the message sendCommunicationModuleExceptionpublic void sendAll(ChannelMessage arg0, List<PeerCard> arg1, MessageListener arg2) throws CommunicationModuleException
CommunicationModulesendAll in interface CommunicationModulearg0 - Message to sendarg1 - A list of receiversarg2 - The listener manages failures during the message sendCommunicationModuleExceptionCopyright © 2018 universAAL Consortium. All rights reserved.