public static APIGetVmStartingCandidateClustersHostsMsg __example__() { APIGetVmStartingCandidateClustersHostsMsg msg = new APIGetVmStartingCandidateClustersHostsMsg(); msg.uuid = uuid(); return msg; }
private void handle(final APIGetVmStartingCandidateClustersHostsMsg msg) { APIGetVmStartingCandidateClustersHostsReply reply = new APIGetVmStartingCandidateClustersHostsReply(); final GetVmStartingCandidateClustersHostsMsg gmsg = new GetVmStartingCandidateClustersHostsMsg(); gmsg.setUuid(msg.getUuid()); bus.makeLocalServiceId(gmsg, VmInstanceConstant.SERVICE_ID); bus.send(gmsg, new CloudBusCallBack(msg) { @Override public void run(MessageReply re) { GetVmStartingCandidateClustersHostsReply greply = (GetVmStartingCandidateClustersHostsReply) re; if (!re.isSuccess()) { reply.setSuccess(false); reply.setError(re.getError()); if (greply.getHostInventories() != null) { reply.setHostInventories(greply.getHostInventories()); reply.setClusterInventories(greply.getClusterInventories()); } } else { reply.setHostInventories(greply.getHostInventories()); reply.setClusterInventories(greply.getClusterInventories()); } bus.reply(msg, reply); } }); }