I think using transient fields is fine, maybe you could add this to UserVMVO if this is applicable only to guest VMs.
Prachi -----Original Message----- From: Nitin Mehta [mailto:nitin.me...@citrix.com] Sent: Wednesday, February 27, 2013 7:51 PM To: cloudstack-dev@incubator.apache.org Subject: vm state transition related question On vm state transition I need to communicate some extra information to one of the listeners which is listening for the transition. How do I achieve that ? It is not generic enough and specific to only one of the listeners. My use case is as follows When vm is dynamically scaled up on a host I need to increment the capacity only by delta amount (new - old offering) for which I need to communicate both old & new offering details to the capacity listener. One way of doing this is put this information in the transient fields of vminstancevo. Is this ok ? Or do I create another object extending vminstancevo with all this additional information ? Thanks, -Nitin