Beispiel #1
0
 private void handle(APIGetZoneMsg msg) {
   GetQuery query = new GetQuery();
   String inv = query.getAsString(msg.getUuid(), ZoneInventory.class);
   APIGetZoneReply reply = new APIGetZoneReply();
   reply.setInventory(inv);
   bus.reply(msg, reply);
 }
 private void handle(APIGetNetworkServiceProviderMsg msg) {
   GetQuery q = new GetQuery();
   String res = q.getAsString(msg, NetworkServiceProviderInventory.class);
   APIGetNetworkServiceProviderReply reply = new APIGetNetworkServiceProviderReply();
   reply.setInventory(res);
   bus.reply(msg, reply);
 }