@@ -795,6 +795,7 @@ public AutoScaleVmGroup createAutoScaleVmGroup(CreateAutoScaleVmGroupCmd cmd) {
795795 }
796796
797797 @ Override
798+ @ ActionEvent (eventType = EventTypes .EVENT_AUTOSCALEVMGROUP_CREATE , eventDescription = "creating autoscale vm group" , async = true )
798799 public boolean configureAutoScaleVmGroup (CreateAutoScaleVmGroupCmd cmd ) throws ResourceUnavailableException {
799800 return configureAutoScaleVmGroup (cmd .getEntityId (), AutoScaleVmGroup .State_New );
800801 }
@@ -823,7 +824,7 @@ private boolean configureAutoScaleVmGroup(long vmGroupid, String currentState) t
823824
824825 @ Override
825826 @ DB
826- @ ActionEvent (eventType = EventTypes .EVENT_AUTOSCALEVMGROUP_DELETE , eventDescription = "deleting autoscale vm group" )
827+ @ ActionEvent (eventType = EventTypes .EVENT_AUTOSCALEVMGROUP_DELETE , eventDescription = "deleting autoscale vm group" , async = true )
827828 public boolean deleteAutoScaleVmGroup (final long id ) {
828829 AutoScaleVmGroupVO autoScaleVmGroupVO = getEntityInDatabase (CallContext .current ().getCallingAccount (), "AutoScale Vm Group" , id , _autoScaleVmGroupDao );
829830
@@ -997,7 +998,7 @@ public AutoScaleVmGroupVO doInTransaction(TransactionStatus status) {
997998 }
998999
9991000 @ Override
1000- @ ActionEvent (eventType = EventTypes .EVENT_AUTOSCALEVMGROUP_UPDATE , eventDescription = "updating autoscale vm group" )
1001+ @ ActionEvent (eventType = EventTypes .EVENT_AUTOSCALEVMGROUP_UPDATE , eventDescription = "updating autoscale vm group" , async = true )
10011002 public AutoScaleVmGroup updateAutoScaleVmGroup (UpdateAutoScaleVmGroupCmd cmd ) {
10021003 Long vmGroupId = cmd .getId ();
10031004 Integer minMembers = cmd .getMinMembers ();
@@ -1046,7 +1047,7 @@ public AutoScaleVmGroup updateAutoScaleVmGroup(UpdateAutoScaleVmGroupCmd cmd) {
10461047
10471048 @ Override
10481049 @ DB
1049- @ ActionEvent (eventType = EventTypes .EVENT_AUTOSCALEVMGROUP_ENABLE , eventDescription = "enabling autoscale vm group" )
1050+ @ ActionEvent (eventType = EventTypes .EVENT_AUTOSCALEVMGROUP_ENABLE , eventDescription = "enabling autoscale vm group" , async = true )
10501051 public AutoScaleVmGroup enableAutoScaleVmGroup (Long id ) {
10511052 AutoScaleVmGroupVO vmGroup = getEntityInDatabase (CallContext .current ().getCallingAccount (), "AutoScale Vm Group" , id , _autoScaleVmGroupDao );
10521053 boolean success = false ;
@@ -1072,7 +1073,7 @@ public AutoScaleVmGroup enableAutoScaleVmGroup(Long id) {
10721073 }
10731074
10741075 @ Override
1075- @ ActionEvent (eventType = EventTypes .EVENT_AUTOSCALEVMGROUP_DISABLE , eventDescription = "disabling autoscale vm group" )
1076+ @ ActionEvent (eventType = EventTypes .EVENT_AUTOSCALEVMGROUP_DISABLE , eventDescription = "disabling autoscale vm group" , async = true )
10761077 @ DB
10771078 public AutoScaleVmGroup disableAutoScaleVmGroup (Long id ) {
10781079 AutoScaleVmGroupVO vmGroup = getEntityInDatabase (CallContext .current ().getCallingAccount (), "AutoScale Vm Group" , id , _autoScaleVmGroupDao );
0 commit comments