mirror of https://github.com/apache/jclouds.git
Merge pull request #1482 from rackspace/1.6.x
Fix missing final keyword for private member variables in cloudloadbalancers api.
This commit is contained in:
commit
789fc2c79e
|
@ -30,11 +30,11 @@ import com.google.common.base.Optional;
|
|||
* @author Everett Toews
|
||||
*/
|
||||
public final class AccountUsage {
|
||||
private int numPublicVIPs;
|
||||
private int numServiceNetVIPs;
|
||||
private int numLoadBalancers;
|
||||
private Date startTime;
|
||||
private Optional<Date> endTime;
|
||||
private final int numPublicVIPs;
|
||||
private final int numServiceNetVIPs;
|
||||
private final int numLoadBalancers;
|
||||
private final Date startTime;
|
||||
private final Optional<Date> endTime;
|
||||
|
||||
@ConstructorProperties({ "numPublicVips", "numServicenetVips", "numLoadBalancers", "startTime", "endTime" })
|
||||
protected AccountUsage(int numPublicVIPs, int numServiceNetVIPs, int numLoadBalancers, Date startTime, Date endTime) {
|
||||
|
|
|
@ -30,9 +30,9 @@ import com.google.common.collect.Iterables;
|
|||
* @author Everett Toews
|
||||
*/
|
||||
public final class HistoricalUsage {
|
||||
private int accountId;
|
||||
private Map<String, Iterable<AccountUsage>> accountUsage;
|
||||
private Iterable<LoadBalancerInfo> loadBalancerUsages;
|
||||
private final int accountId;
|
||||
private final Map<String, Iterable<AccountUsage>> accountUsage;
|
||||
private final Iterable<LoadBalancerInfo> loadBalancerUsages;
|
||||
|
||||
@ConstructorProperties({ "accountId", "accountUsage", "loadBalancerUsages" })
|
||||
protected HistoricalUsage(int accountId, Map<String, Iterable<AccountUsage>> accountUsage,
|
||||
|
|
|
@ -28,9 +28,9 @@ import com.google.common.base.Objects;
|
|||
* @author Everett Toews
|
||||
*/
|
||||
public final class LoadBalancerInfo {
|
||||
private int loadBalancerId;
|
||||
private String loadBalancerName;
|
||||
private Iterable<LoadBalancerUsage> loadBalancerUsageRecords;
|
||||
private final int loadBalancerId;
|
||||
private final String loadBalancerName;
|
||||
private final Iterable<LoadBalancerUsage> loadBalancerUsageRecords;
|
||||
|
||||
@ConstructorProperties({ "loadBalancerId", "loadBalancerName", "loadBalancerUsageRecords" })
|
||||
protected LoadBalancerInfo(int id, String name, Iterable<LoadBalancerUsage> loadBalancerUsageRecords) {
|
||||
|
|
|
@ -26,12 +26,12 @@ import com.google.common.base.Objects;
|
|||
* @author Everett Toews
|
||||
*/
|
||||
public final class LoadBalancerStats {
|
||||
private int connectTimeOut;
|
||||
private int connectError;
|
||||
private int connectFailure;
|
||||
private int dataTimedOut;
|
||||
private int keepAliveTimedOut;
|
||||
private int maxConn;
|
||||
private final int connectTimeOut;
|
||||
private final int connectError;
|
||||
private final int connectFailure;
|
||||
private final int dataTimedOut;
|
||||
private final int keepAliveTimedOut;
|
||||
private final int maxConn;
|
||||
|
||||
@ConstructorProperties({ "connectTimeOut", "connectError", "connectFailure", "dataTimedOut", "keepAliveTimedOut",
|
||||
"maxConn" })
|
||||
|
|
|
@ -32,20 +32,20 @@ import com.google.common.base.Optional;
|
|||
* @author Everett Toews
|
||||
*/
|
||||
public final class LoadBalancerUsage {
|
||||
private int id;
|
||||
private float averageNumConnections;
|
||||
private float averageNumConnectionsSsl;
|
||||
private int incomingTransferInBytes;
|
||||
private int outgoingTransferInBytes;
|
||||
private int incomingTransferSslInBytes;
|
||||
private int outgoingTransferSslInBytes;
|
||||
private int numVIPs;
|
||||
private int numPolls;
|
||||
private Date startTime;
|
||||
private Date endTime;
|
||||
private VirtualIP.Type vipType;
|
||||
private String sslMode;
|
||||
private Optional<String> eventType;
|
||||
private final int id;
|
||||
private final float averageNumConnections;
|
||||
private final float averageNumConnectionsSsl;
|
||||
private final int incomingTransferInBytes;
|
||||
private final int outgoingTransferInBytes;
|
||||
private final int incomingTransferSslInBytes;
|
||||
private final int outgoingTransferSslInBytes;
|
||||
private final int numVIPs;
|
||||
private final int numPolls;
|
||||
private final Date startTime;
|
||||
private final Date endTime;
|
||||
private final VirtualIP.Type vipType;
|
||||
private final String sslMode;
|
||||
private final Optional<String> eventType;
|
||||
|
||||
@ConstructorProperties({ "id", "averageNumConnections", "averageNumConnectionsSsl", "incomingTransfer",
|
||||
"outgoingTransfer", "incomingTransferSsl", "outgoingTransferSsl", "numVips", "numPolls", "startTime",
|
||||
|
|
|
@ -32,8 +32,8 @@ import com.google.common.collect.Sets;
|
|||
* @author Everett Toews
|
||||
*/
|
||||
public class Metadata extends ForwardingMap<String, String> {
|
||||
private Map<String, String> metadata = Maps.newHashMap();
|
||||
private Map<String, Integer> keyToId = Maps.newHashMap();
|
||||
private final Map<String, String> metadata = Maps.newHashMap();
|
||||
private final Map<String, Integer> keyToId = Maps.newHashMap();
|
||||
|
||||
public Metadata(Metadata metadata) {
|
||||
super();
|
||||
|
|
|
@ -28,8 +28,8 @@ import com.google.common.base.Objects;
|
|||
* @author Everett Toews
|
||||
*/
|
||||
public final class Protocol {
|
||||
private String name;
|
||||
private int port;
|
||||
private final String name;
|
||||
private final int port;
|
||||
|
||||
@ConstructorProperties({ "name", "port" })
|
||||
protected Protocol(String name, int port) {
|
||||
|
|
|
@ -30,12 +30,12 @@ import com.google.common.base.Objects.ToStringHelper;
|
|||
* @author Everett Toews
|
||||
*/
|
||||
public class UpdateLoadBalancer {
|
||||
private String name;
|
||||
private String protocol;
|
||||
private Integer port;
|
||||
private Algorithm algorithm;
|
||||
private Integer timeout;
|
||||
private Boolean halfClosed;
|
||||
private final String name;
|
||||
private final String protocol;
|
||||
private final Integer port;
|
||||
private final Algorithm algorithm;
|
||||
private final Integer timeout;
|
||||
private final Boolean halfClosed;
|
||||
|
||||
protected UpdateLoadBalancer(String name, String protocol, Integer port, Algorithm algorithm, Integer timeout,
|
||||
Boolean halfClosed) {
|
||||
|
|
|
@ -31,9 +31,9 @@ import com.google.common.base.Objects.ToStringHelper;
|
|||
* @author Everett Toews
|
||||
*/
|
||||
public class UpdateNode {
|
||||
private Condition condition;
|
||||
private Type type;
|
||||
private Integer weight;
|
||||
private final Condition condition;
|
||||
private final Type type;
|
||||
private final Integer weight;
|
||||
|
||||
protected UpdateNode(Condition condition, Type type, Integer weight) {
|
||||
this.condition = condition;
|
||||
|
|
|
@ -32,8 +32,8 @@ import com.google.common.base.Objects.ToStringHelper;
|
|||
*/
|
||||
public class VirtualIP {
|
||||
|
||||
private Type type;
|
||||
private IPVersion ipVersion;
|
||||
private final Type type;
|
||||
private final IPVersion ipVersion;
|
||||
|
||||
/**
|
||||
* Use this method to easily create virtual IPs. Only public IPv6 virtual IPs can be created.
|
||||
|
|
|
@ -30,8 +30,8 @@ import com.google.common.base.Objects.ToStringHelper;
|
|||
*/
|
||||
public class VirtualIPWithId extends VirtualIP {
|
||||
|
||||
private int id;
|
||||
private String address;
|
||||
private final int id;
|
||||
private final String address;
|
||||
|
||||
public VirtualIPWithId(Type type, IPVersion ipVersion, int id, String address) {
|
||||
super(type, ipVersion);
|
||||
|
|
Loading…
Reference in New Issue