Package lupos.event.communication

Examples of lupos.event.communication.ModelUpdateMessage


          break;
        }
      }
      if (subBroker != null){
        // update model of this sub broker
        ModelUpdateMessage message = (ModelUpdateMessage)msg;
        subBroker.setRegisteredProducers(message.getProducers());
        subBroker.setRegisteredConsumers(message.getConsumers());
        System.out.println("Recieved and stored update from SubBroker "+tcpInfo.getHost()+":"+tcpInfo.getPort());
      }
    }
  }
View Full Code Here


   * Gets a modelupdatemessage which can be directly sent
   * to the master broker sending all the model data
   * @return
   */
  public ModelUpdateMessage getUpdateMessage(){
    return new ModelUpdateMessage(this.bProducers, this.bConsumers);
  }
View Full Code Here

TOP

Related Classes of lupos.event.communication.ModelUpdateMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.