Search in sources :

Example 6 with GlobalLoadBalancerRule

use of com.cloud.region.ha.GlobalLoadBalancerRule in project cloudstack by apache.

the class CreateGlobalLoadBalancerRuleCmd method execute.

@Override
public void execute() throws ResourceAllocationException, ResourceUnavailableException {
    GlobalLoadBalancerRule rule = _entityMgr.findById(GlobalLoadBalancerRule.class, getEntityId());
    if (rule != null) {
        GlobalLoadBalancerResponse response = _responseGenerator.createGlobalLoadBalancerResponse(rule);
        response.setResponseName(getCommandName());
        this.setResponseObject(response);
    }
}
Also used : GlobalLoadBalancerResponse(org.apache.cloudstack.api.response.GlobalLoadBalancerResponse) GlobalLoadBalancerRule(com.cloud.region.ha.GlobalLoadBalancerRule)

Aggregations

GlobalLoadBalancerRule (com.cloud.region.ha.GlobalLoadBalancerRule)6 GlobalLoadBalancerResponse (org.apache.cloudstack.api.response.GlobalLoadBalancerResponse)3 ArrayList (java.util.ArrayList)2 ServerApiException (org.apache.cloudstack.api.ServerApiException)2 InvalidParameterValueException (com.cloud.exception.InvalidParameterValueException)1 ResourceAllocationException (com.cloud.exception.ResourceAllocationException)1 ResourceUnavailableException (com.cloud.exception.ResourceUnavailableException)1 Account (com.cloud.user.Account)1 ListResponse (org.apache.cloudstack.api.response.ListResponse)1 CallContext (org.apache.cloudstack.context.CallContext)1