public OperationFuture < Server > setAutoscalePolicyOnServer ( AutoscalePolicy autoscalePolicy , Server server ) { autoscalePolicyClient . setAutoscalePolicyOnServer ( serverService . findByRef ( server ) . getId ( ) , new SetAutoscalePolicyRequest ( ) . id ( findByRef ( autoscalePolicy ) . getId ( ) ) ) ; return new OperationFuture <> ( server , new NoWaitingJobFuture ( ) ) ; }
Set autoscale policy on server