@Override public Long getSyncObjId() { return getNetworkId(); } }
@Override public String getEventDescription() { return "creating load balancer: " + getName() + " account: " + getAccountName(); }
@Override public String getEventDescription() { return "creating a load balancer stickiness policy: " + getLBStickinessPolicyName(); }
@Override public long getEntityOwnerId() { return getAccountId(); }
@Override public String getEventDescription() { return "creating load balancer: " + getName() + " account: " + getAccountId(); }
@Override public void checkUuid() { if (this.getCustomId() != null) { _uuidMgr.checkUuid(this.getCustomId(), FirewallRule.class); } } }
@Override public String getEventDescription() { return "removing instances from load balancer: " + getId() + " (ids: " + StringUtils.join(getVirtualMachineIds(), ",") + ")"; }
@Override public String getEventDescription() { return "applying instances for load balancer: " + getLoadBalancerId() + " (ids: " + StringUtils.join(getVirtualMachineIds(), ",") + ")"; }
@Override public long getEntityOwnerId() { LoadBalancer lb = _entityMgr.findById(LoadBalancer.class, getId()); if (lb == null) { return Account.ACCOUNT_ID_SYSTEM; // bad id given, parent this command to SYSTEM so ERROR events are tracked } return lb.getAccountId(); }
@Override public String getEventDescription() { return "deleting load balancer health check policy: " + getId(); }
@Override public String getEventDescription() { return "deleting load balancer stickiness policy: " + getId(); }
@Override public long getEntityOwnerId() { return getAccountId(); }
@Override public String getEventDescription() { return "Removing a certificate from a load balancer with ID " + getLbRuleId(); }
@Override public String getEventDescription() { return "deleting load balancer: " + getId(); }
@Override public String getEventDescription() { return "deleting load balancer: " + getId(); }
@Override public String getEventDescription() { return "updating load balancer: " + getId(); }
@Override public void checkUuid() { if (this.getCustomId() != null) { _uuidMgr.checkUuid(this.getCustomId(), StickinessPolicy.class); } } }
@Override public void checkUuid() { if (this.getCustomId() != null) { _uuidMgr.checkUuid(this.getCustomId(), StickinessPolicy.class); } } }
@Override public void checkUuid() { if (this.getCustomId() != null) { _uuidMgr.checkUuid(this.getCustomId(), FirewallRule.class); } } }
public Boolean getOpenFirewall() { boolean isVpc = getVpcId() == null ? false : true; if (openFirewall != null) { if (isVpc && openFirewall) { throw new InvalidParameterValueException("Can't have openFirewall=true when IP address belongs to VPC"); } return openFirewall; } else { if (isVpc) { return false; } return true; } }