private void handle(APISearchInstanceOfferingMsg msg) { SearchQuery<InstanceOfferingInventory> query = SearchQuery.create(msg, InstanceOfferingInventory.class); query.add("visible", SearchOp.AND_EQ, Boolean.TRUE.toString()); String content = query.listAsString(); APISearchInstanceOfferingReply reply = new APISearchInstanceOfferingReply(); reply.setContent(content); bus.reply(msg, reply); }
private void handle(APISearchL2VlanNetworkMsg msg) { SearchQuery<L2VlanNetworkInventory> sq = SearchQuery.create(msg, L2VlanNetworkInventory.class); String content = sq.listAsString(); APISearchL2VlanNetworkReply reply = new APISearchL2VlanNetworkReply(); reply.setContent(content); bus.reply(msg, reply); }
private void handle(APISearchL3NetworkMsg msg) { SearchQuery<L3NetworkInventory> sq = SearchQuery.create(msg, L3NetworkInventory.class); String content = sq.listAsString(); APISearchL3NetworkReply reply = new APISearchL3NetworkReply(); reply.setContent(content); bus.reply(msg, reply); }
private void handle(APISearchSftpBackupStorageMsg msg) { SearchQuery<SftpBackupStorageInventory> sq = SearchQuery.create(msg, SftpBackupStorageInventory.class); String content = sq.listAsString(); APISearchSftpBackupStorageReply reply = new APISearchSftpBackupStorageReply(); reply.setContent(content); bus.reply(msg, reply); }
private void handle(APISearchNetworkServiceProviderMsg msg) { SearchQuery<NetworkServiceProviderInventory> q = SearchQuery.create(msg, NetworkServiceProviderInventory.class); APISearchNetworkServiceProviderReply reply = new APISearchNetworkServiceProviderReply(); String res = q.listAsString(); reply.setContent(res); bus.reply(msg, reply); }
private void handle(APISearchClusterMsg msg) { SearchQuery<ClusterInventory> query = SearchQuery.create(msg, ClusterInventory.class); String ret = query.listAsString(); APISearchClusterReply reply = new APISearchClusterReply(); reply.setContent(ret); bus.reply(msg, reply); }
private void handle(APISearchPrimaryStorageMsg msg) { SearchQuery<PrimaryStorageInventory> sq = SearchQuery.create(msg, PrimaryStorageInventory.class); String content = sq.listAsString(); APISearchPrimaryStorageReply reply = new APISearchPrimaryStorageReply(); reply.setContent(content); bus.reply(msg, reply); }
private void handle(APISearchVirtualRouterOffingMsg msg) { SearchQuery<VirtualRouterOfferingInventory> q = SearchQuery.create(msg, VirtualRouterOfferingInventory.class); APISearchVirtualRouterOffingReply reply = new APISearchVirtualRouterOffingReply(); String res = q.listAsString(); reply.setContent(res); bus.reply(msg, reply); }
private void handle(APISearchL2NetworkMsg msg) { SearchQuery<L2NetworkInventory> sq = SearchQuery.create(msg, L2NetworkInventory.class); String content = sq.listAsString(); APISearchL2NetworkReply reply = new APISearchL2NetworkReply(); reply.setContent(content); bus.reply(msg, reply); }
private void handle(APISearchDiskOfferingMsg msg) { SearchQuery<DiskOfferingInventory> query = SearchQuery.create(msg, DiskOfferingInventory.class); String content = query.listAsString(); APISearchDiskOfferingReply reply = new APISearchDiskOfferingReply(); reply.setContent(content); bus.reply(msg, reply); }
private void handle(APISearchZoneMsg msg) { SearchQuery<ZoneInventory> query = SearchQuery.create(msg, ZoneInventory.class); String res = query.listAsString(); APISearchZoneReply reply = new APISearchZoneReply(); reply.setContent(res); bus.reply(msg, reply); }
private void handle(APISearchBackupStorageMsg msg) { SearchQuery<BackupStorageInventory> sq = SearchQuery.create(msg, BackupStorageInventory.class); String content = sq.listAsString(); APISearchBackupStorageReply reply = new APISearchBackupStorageReply(); reply.setContent(content); bus.reply(msg, reply); }
private void handle(APISearchImageMsg msg) { SearchQuery<ImageInventory> sq = SearchQuery.create(msg, ImageInventory.class); sq.addAccountAsAnd(msg); String content = sq.listAsString(); APISearchImageReply reply = new APISearchImageReply(); reply.setContent(content); bus.reply(msg, reply); }
private void handle(APISearchVmInstanceMsg msg) { SearchQuery<VmInstanceInventory> query = SearchQuery.create(msg, VmInstanceInventory.class); query.addAccountAsAnd(msg); String content = query.listAsString(); APISearchVmInstanceReply reply = new APISearchVmInstanceReply(); reply.setContent(content); bus.reply(msg, reply); }
private void handle(APISearchVolumeMsg msg) { SearchQuery<VolumeInventory> q = SearchQuery.create(msg, VolumeInventory.class); q.addAccountAsAnd(msg); String res = q.listAsString(); APISearchVolumeReply reply = new APISearchVolumeReply(); reply.setContent(res); bus.reply(msg, reply); }