org.universAAL.middleware.broker.client
Class BrokerClientImpl

Package class diagram package BrokerClientImpl
java.lang.Object
  extended by org.universAAL.middleware.broker.client.BrokerClientImpl
All Implemented Interfaces:
Broker, MessageListener

public class BrokerClientImpl
extends Object
implements Broker, MessageListener

Simple Broker showing how to access to an AALSpace and how to send messages

Author:
Michele Girolami, Francesco Furfari, Stefano Lenzi

Constructor Summary
BrokerClientImpl(ModuleContext module)
           
 
Method Summary
 void dispose()
          Release the resources
 String getBrokerName()
           
 void handleSendError(ChannelMessage message, CommunicationConnectorException e)
          Callback for error handling
 boolean init()
           
 void messageReceived(ChannelMessage message)
          Callback for the reception of messages
 void setStop(boolean stop)
           
 void startBrokerClient()
           
 BrokerMessage unmarshall(String message)
          From String to Broker Message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrokerClientImpl

public BrokerClientImpl(ModuleContext module)
Method Detail

startBrokerClient

public void startBrokerClient()

setStop

public void setStop(boolean stop)

handleSendError

public void handleSendError(ChannelMessage message,
                            CommunicationConnectorException e)
Description copied from interface: MessageListener
Callback for error handling

Specified by:
handleSendError in interface MessageListener

messageReceived

public void messageReceived(ChannelMessage message)
Description copied from interface: MessageListener
Callback for the reception of messages

Specified by:
messageReceived in interface MessageListener

getBrokerName

public String getBrokerName()
Specified by:
getBrokerName in interface Broker

dispose

public void dispose()
Description copied from interface: Broker
Release the resources

Specified by:
dispose in interface Broker

init

public boolean init()
Specified by:
init in interface Broker

unmarshall

public BrokerMessage unmarshall(String message)
Description copied from interface: Broker
From String to Broker Message

Specified by:
unmarshall in interface Broker
Returns:


Copyright © 2014 universAAL Consortium. All Rights Reserved.