Skip to content

Commit d620df2

Browse files
author
Alex Huang
committed
Reformatted all of the code.
1 parent eaa250f commit d620df2

3,156 files changed

Lines changed: 43769 additions & 36087 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

agent/src/com/cloud/agent/Agent.java

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@
3535

3636
import javax.naming.ConfigurationException;
3737

38-
import org.apache.cloudstack.managed.context.ManagedContextTimerTask;
3938
import org.apache.log4j.Logger;
4039

40+
import org.apache.cloudstack.managed.context.ManagedContextTimerTask;
41+
4142
import com.cloud.agent.api.AgentControlAnswer;
4243
import com.cloud.agent.api.AgentControlCommand;
4344
import com.cloud.agent.api.Answer;
@@ -132,11 +133,13 @@ public Agent(IAgentShell shell) {
132133

133134
Runtime.getRuntime().addShutdownHook(new ShutdownThread(this));
134135

135-
_ugentTaskPool = new ThreadPoolExecutor(shell.getPingRetries(), 2 * shell.getPingRetries(), 10, TimeUnit.MINUTES, new SynchronousQueue<Runnable>(), new NamedThreadFactory(
136-
"UgentTask"));
136+
_ugentTaskPool =
137+
new ThreadPoolExecutor(shell.getPingRetries(), 2 * shell.getPingRetries(), 10, TimeUnit.MINUTES, new SynchronousQueue<Runnable>(), new NamedThreadFactory(
138+
"UgentTask"));
137139

138-
_executor = new ThreadPoolExecutor(_shell.getWorkers(), 5 * _shell.getWorkers(), 1, TimeUnit.DAYS, new LinkedBlockingQueue<Runnable>(), new NamedThreadFactory(
139-
"agentRequest-Handler"));
140+
_executor =
141+
new ThreadPoolExecutor(_shell.getWorkers(), 5 * _shell.getWorkers(), 1, TimeUnit.DAYS, new LinkedBlockingQueue<Runnable>(), new NamedThreadFactory(
142+
"agentRequest-Handler"));
140143
}
141144

142145
public Agent(IAgentShell shell, int localAgentId, ServerResource resource) throws ConfigurationException {
@@ -168,14 +171,16 @@ public Agent(IAgentShell shell, int localAgentId, ServerResource resource) throw
168171
s_logger.debug("Adding shutdown hook");
169172
Runtime.getRuntime().addShutdownHook(new ShutdownThread(this));
170173

171-
_ugentTaskPool = new ThreadPoolExecutor(shell.getPingRetries(), 2 * shell.getPingRetries(), 10, TimeUnit.MINUTES, new SynchronousQueue<Runnable>(), new NamedThreadFactory(
172-
"UgentTask"));
174+
_ugentTaskPool =
175+
new ThreadPoolExecutor(shell.getPingRetries(), 2 * shell.getPingRetries(), 10, TimeUnit.MINUTES, new SynchronousQueue<Runnable>(), new NamedThreadFactory(
176+
"UgentTask"));
173177

174-
_executor = new ThreadPoolExecutor(_shell.getWorkers(), 5 * _shell.getWorkers(), 1, TimeUnit.DAYS, new LinkedBlockingQueue<Runnable>(), new NamedThreadFactory(
175-
"agentRequest-Handler"));
178+
_executor =
179+
new ThreadPoolExecutor(_shell.getWorkers(), 5 * _shell.getWorkers(), 1, TimeUnit.DAYS, new LinkedBlockingQueue<Runnable>(), new NamedThreadFactory(
180+
"agentRequest-Handler"));
176181

177182
s_logger.info("Agent [id = " + (_id != null ? _id : "new") + " : type = " + getResourceName() + " : zone = " + _shell.getZone() + " : pod = " + _shell.getPod() +
178-
" : workers = " + _shell.getWorkers() + " : host = " + _shell.getHost() + " : port = " + _shell.getPort());
183+
" : workers = " + _shell.getWorkers() + " : host = " + _shell.getHost() + " : port = " + _shell.getPort());
179184
}
180185

181186
public String getVersion() {
@@ -489,7 +494,7 @@ protected void processRequest(final Request request, final Link link) {
489494

490495
} else {
491496
if (cmd instanceof ReadyCommand) {
492-
processReadyCommand((ReadyCommand)cmd);
497+
processReadyCommand(cmd);
493498
}
494499
_inProgress.incrementAndGet();
495500
try {

agent/src/com/cloud/agent/AgentShell.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ public synchronized int getNextAgentId() {
401401
return _nextAgentId++;
402402
}
403403

404+
@Override
404405
public void start() {
405406
try {
406407
/* By default we only search for log4j.xml */
@@ -444,10 +445,12 @@ public void start() {
444445
}
445446
}
446447

448+
@Override
447449
public void stop() {
448450
_exit = true;
449451
}
450452

453+
@Override
451454
public void destroy() {
452455

453456
}

agent/src/com/cloud/agent/dhcp/DhcpProtocolParserServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import java.net.DatagramPacket;
2121
import java.net.DatagramSocket;
2222
import java.net.InetAddress;
23-
2423
import java.util.concurrent.ExecutorService;
2524
import java.util.concurrent.LinkedBlockingQueue;
2625
import java.util.concurrent.ThreadPoolExecutor;
@@ -42,6 +41,7 @@ public DhcpProtocolParserServer(int workers) {
4241
_running = true;
4342
}
4443

44+
@Override
4545
public void run() {
4646
while (_running) {
4747
try {

agent/src/com/cloud/agent/dhcp/DhcpSnooper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public interface DhcpSnooper extends Adapter {
3333

3434
public Map<String, InetAddress> syncIpAddr();
3535

36+
@Override
3637
public boolean stop();
3738

3839
public void initializeMacTable(List<Pair<String, String>> macVmNameList);

agent/src/com/cloud/agent/mockvm/MockVmMgr.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public Set<String> getCurrentVMs() {
5353
}
5454

5555
@Override
56-
public String startVM(String vmName, String vnetId, String gateway, String dns, String privateIP, String privateMac, String privateMask, String publicIP, String publicMac,
57-
String publicMask, int cpuCount, int cpuUtilization, long ramSize, String localPath, String vncPassword) {
56+
public String startVM(String vmName, String vnetId, String gateway, String dns, String privateIP, String privateMac, String privateMask, String publicIP,
57+
String publicMac, String publicMask, int cpuCount, int cpuUtilization, long ramSize, String localPath, String vncPassword) {
5858

5959
if (s_logger.isInfoEnabled()) {
6060
StringBuffer sb = new StringBuffer();
@@ -132,6 +132,7 @@ public boolean migrate(String vmName, String params) {
132132
return false;
133133
}
134134

135+
@Override
135136
public MockVm getVm(String vmName) {
136137
synchronized (this) {
137138
MockVm vm = vms.get(vmName);

agent/src/com/cloud/agent/mockvm/VmMgr.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
public interface VmMgr {
2626
public Set<String> getCurrentVMs();
2727

28-
public String startVM(String vmName, String vnetId, String gateway, String dns, String privateIP, String privateMac, String privateMask, String publicIP, String publicMac,
29-
String publicMask, int cpuCount, int cpuUtilization, long ramSize, String localPath, String vncPassword);
28+
public String startVM(String vmName, String vnetId, String gateway, String dns, String privateIP, String privateMac, String privateMask, String publicIP,
29+
String publicMac, String publicMask, int cpuCount, int cpuUtilization, long ramSize, String localPath, String vncPassword);
3030

3131
public String stopVM(String vmName, boolean force);
3232

agent/src/com/cloud/agent/resource/DummyResource.java

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
import com.cloud.agent.api.PingCommand;
3333
import com.cloud.agent.api.StartupCommand;
3434
import com.cloud.agent.api.StartupRoutingCommand;
35+
import com.cloud.agent.api.StartupRoutingCommand.VmState;
3536
import com.cloud.agent.api.StartupStorageCommand;
3637
import com.cloud.agent.api.StoragePoolInfo;
37-
import com.cloud.agent.api.StartupRoutingCommand.VmState;
3838
import com.cloud.host.Host;
3939
import com.cloud.host.Host.Type;
4040
import com.cloud.hypervisor.Hypervisor.HypervisorType;
@@ -110,14 +110,14 @@ protected List<Object> getHostInfo() {
110110

111111
protected void fillNetworkInformation(final StartupCommand cmd) {
112112

113-
cmd.setPrivateIpAddress((String)getConfiguredProperty("private.ip.address", "127.0.0.1"));
114-
cmd.setPrivateMacAddress((String)getConfiguredProperty("private.mac.address", "8A:D2:54:3F:7C:C3"));
115-
cmd.setPrivateNetmask((String)getConfiguredProperty("private.ip.netmask", "255.255.255.0"));
113+
cmd.setPrivateIpAddress(getConfiguredProperty("private.ip.address", "127.0.0.1"));
114+
cmd.setPrivateMacAddress(getConfiguredProperty("private.mac.address", "8A:D2:54:3F:7C:C3"));
115+
cmd.setPrivateNetmask(getConfiguredProperty("private.ip.netmask", "255.255.255.0"));
116116

117-
cmd.setStorageIpAddress((String)getConfiguredProperty("private.ip.address", "127.0.0.1"));
118-
cmd.setStorageMacAddress((String)getConfiguredProperty("private.mac.address", "8A:D2:54:3F:7C:C3"));
119-
cmd.setStorageNetmask((String)getConfiguredProperty("private.ip.netmask", "255.255.255.0"));
120-
cmd.setGatewayIpAddress((String)getConfiguredProperty("gateway.ip.address", "127.0.0.1"));
117+
cmd.setStorageIpAddress(getConfiguredProperty("private.ip.address", "127.0.0.1"));
118+
cmd.setStorageMacAddress(getConfiguredProperty("private.mac.address", "8A:D2:54:3F:7C:C3"));
119+
cmd.setStorageNetmask(getConfiguredProperty("private.ip.netmask", "255.255.255.0"));
120+
cmd.setGatewayIpAddress(getConfiguredProperty("gateway.ip.address", "127.0.0.1"));
121121

122122
}
123123

@@ -133,13 +133,13 @@ private Map<String, String> getVersionStrings() {
133133
}
134134

135135
protected StoragePoolInfo initializeLocalStorage() {
136-
String hostIp = (String)getConfiguredProperty("private.ip.address", "127.0.0.1");
137-
String localStoragePath = (String)getConfiguredProperty("local.storage.path", "/mnt");
136+
String hostIp = getConfiguredProperty("private.ip.address", "127.0.0.1");
137+
String localStoragePath = getConfiguredProperty("local.storage.path", "/mnt");
138138
String lh = hostIp + localStoragePath;
139139
String uuid = UUID.nameUUIDFromBytes(lh.getBytes()).toString();
140140

141-
String capacity = (String)getConfiguredProperty("local.storage.capacity", "1000000000");
142-
String available = (String)getConfiguredProperty("local.storage.avail", "10000000");
141+
String capacity = getConfiguredProperty("local.storage.capacity", "1000000000");
142+
String available = getConfiguredProperty("local.storage.avail", "10000000");
143143

144144
return new StoragePoolInfo(uuid, hostIp, localStoragePath, localStoragePath, StoragePoolType.Filesystem, Long.parseLong(capacity), Long.parseLong(available));
145145

@@ -151,8 +151,9 @@ public StartupCommand[] initialize() {
151151

152152
final List<Object> info = getHostInfo();
153153

154-
final StartupRoutingCommand cmd = new StartupRoutingCommand((Integer)info.get(0), (Long)info.get(1), (Long)info.get(2), (Long)info.get(4), (String)info.get(3),
155-
HypervisorType.KVM, RouterPrivateIpStrategy.HostLocal, changes, null);
154+
final StartupRoutingCommand cmd =
155+
new StartupRoutingCommand((Integer)info.get(0), (Long)info.get(1), (Long)info.get(2), (Long)info.get(4), (String)info.get(3), HypervisorType.KVM,
156+
RouterPrivateIpStrategy.HostLocal, changes, null);
156157
fillNetworkInformation(cmd);
157158
cmd.getHostDetails().putAll(getVersionStrings());
158159
cmd.setCluster(getConfiguredProperty("cluster", "1"));

api/src/com/cloud/agent/api/to/FirewallRuleTO.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
import com.cloud.network.rules.FirewallRule;
2525
import com.cloud.network.rules.FirewallRule.State;
26-
import com.cloud.network.rules.FirewallRule.TrafficType;
2726
import com.cloud.utils.net.NetUtils;
2827

2928
/**
@@ -60,8 +59,8 @@ public class FirewallRuleTO implements InternalIdentity {
6059
protected FirewallRuleTO() {
6160
}
6261

63-
public FirewallRuleTO(long id, String srcIp, String protocol, Integer srcPortStart, Integer srcPortEnd, boolean revoked, boolean alreadyAdded, FirewallRule.Purpose purpose,
64-
List<String> sourceCidr, Integer icmpType, Integer icmpCode) {
62+
public FirewallRuleTO(long id, String srcIp, String protocol, Integer srcPortStart, Integer srcPortEnd, boolean revoked, boolean alreadyAdded,
63+
FirewallRule.Purpose purpose, List<String> sourceCidr, Integer icmpType, Integer icmpCode) {
6564
this(id, null, srcIp, protocol, srcPortStart, srcPortEnd, revoked, alreadyAdded, purpose, sourceCidr, icmpType, icmpCode);
6665
}
6766

@@ -157,7 +156,8 @@ public FirewallRuleTO(FirewallRule rule, String srcVlanTag, String srcIp, Firewa
157156
this.trafficType = trafficType;
158157
}
159158

160-
public FirewallRuleTO(FirewallRule rule, String srcVlanTag, String srcIp, FirewallRule.Purpose purpose, FirewallRule.TrafficType trafficType, boolean defaultEgressPolicy) {
159+
public FirewallRuleTO(FirewallRule rule, String srcVlanTag, String srcIp, FirewallRule.Purpose purpose, FirewallRule.TrafficType trafficType,
160+
boolean defaultEgressPolicy) {
161161
this(rule.getId(),
162162
srcVlanTag,
163163
srcIp,
@@ -213,6 +213,7 @@ public FirewallRule.TrafficType getTrafficType() {
213213
return trafficType;
214214
}
215215

216+
@Override
216217
public long getId() {
217218
return id;
218219
}

api/src/com/cloud/agent/api/to/LoadBalancerTO.java

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
import com.cloud.network.lb.LoadBalancingRule.LbCondition;
3232
import com.cloud.network.lb.LoadBalancingRule.LbDestination;
3333
import com.cloud.network.lb.LoadBalancingRule.LbHealthCheckPolicy;
34-
import com.cloud.network.lb.LoadBalancingRule.LbStickinessPolicy;
3534
import com.cloud.network.lb.LoadBalancingRule.LbSslCert;
35+
import com.cloud.network.lb.LoadBalancingRule.LbStickinessPolicy;
3636
import com.cloud.utils.Pair;
3737

3838
public class LoadBalancerTO {
@@ -83,7 +83,8 @@ public LoadBalancerTO(String id, String srcIp, int srcPort, String protocol, Str
8383
}
8484

8585
public LoadBalancerTO(String id, String srcIp, int srcPort, String protocol, String algorithm, boolean revoked, boolean alreadyAdded, boolean inline,
86-
List<LbDestination> arg_destinations, List<LbStickinessPolicy> stickinessPolicies, List<LbHealthCheckPolicy> healthCheckPolicies, LbSslCert sslCert, String lbProtocol) {
86+
List<LbDestination> arg_destinations, List<LbStickinessPolicy> stickinessPolicies, List<LbHealthCheckPolicy> healthCheckPolicies, LbSslCert sslCert,
87+
String lbProtocol) {
8788
this(id, srcIp, srcPort, protocol, algorithm, revoked, alreadyAdded, inline, arg_destinations);
8889
this.stickinessPolicies = null;
8990
this.healthCheckPolicies = null;
@@ -106,8 +107,9 @@ public LoadBalancerTO(String id, String srcIp, int srcPort, String protocol, Str
106107
this.healthCheckPolicies = new HealthCheckPolicyTO[MAX_HEALTHCHECK_POLICIES];
107108
int index = 0;
108109
for (LbHealthCheckPolicy hcp : healthCheckPolicies) {
109-
this.healthCheckPolicies[0] = new HealthCheckPolicyTO(hcp.getpingpath(), hcp.getDescription(), hcp.getResponseTime(), hcp.getHealthcheckInterval(),
110-
hcp.getHealthcheckThresshold(), hcp.getUnhealthThresshold(), hcp.isRevoked());
110+
this.healthCheckPolicies[0] =
111+
new HealthCheckPolicyTO(hcp.getpingpath(), hcp.getDescription(), hcp.getResponseTime(), hcp.getHealthcheckInterval(), hcp.getHealthcheckThresshold(),
112+
hcp.getUnhealthThresshold(), hcp.isRevoked());
111113
index++;
112114
if (index == MAX_HEALTHCHECK_POLICIES)
113115
break;
@@ -215,7 +217,8 @@ public static class HealthCheckPolicyTO {
215217
private int unhealthThresshold;
216218
private boolean revoke = false;
217219

218-
public HealthCheckPolicyTO(String pingPath, String description, int responseTime, int healthcheckInterval, int healthcheckThresshold, int unhealthThresshold, boolean revoke) {
220+
public HealthCheckPolicyTO(String pingPath, String description, int responseTime, int healthcheckInterval, int healthcheckThresshold, int unhealthThresshold,
221+
boolean revoke) {
219222

220223
this.description = description;
221224
this.pingPath = pingPath;
@@ -411,8 +414,9 @@ public static class AutoScaleVmProfileTO implements Serializable {
411414
private final String vmName;
412415
private final String networkId;
413416

414-
public AutoScaleVmProfileTO(String zoneId, String domainId, String cloudStackApiUrl, String autoScaleUserApiKey, String autoScaleUserSecretKey, String serviceOfferingId,
415-
String templateId, String vmName, String networkId, String otherDeployParams, List<Pair<String, String>> counterParamList, Integer destroyVmGraceperiod) {
417+
public AutoScaleVmProfileTO(String zoneId, String domainId, String cloudStackApiUrl, String autoScaleUserApiKey, String autoScaleUserSecretKey,
418+
String serviceOfferingId, String templateId, String vmName, String networkId, String otherDeployParams, List<Pair<String, String>> counterParamList,
419+
Integer destroyVmGraceperiod) {
416420
this.zoneId = zoneId;
417421
this.domainId = domainId;
418422
this.serviceOfferingId = serviceOfferingId;
@@ -487,8 +491,8 @@ public static class AutoScaleVmGroupTO implements Serializable {
487491
private final String state;
488492
private final String currentState;
489493

490-
AutoScaleVmGroupTO(String uuid, int minMembers, int maxMembers, int memberPort, int interval, List<AutoScalePolicyTO> policies, AutoScaleVmProfileTO profile, String state,
491-
String currentState) {
494+
AutoScaleVmGroupTO(String uuid, int minMembers, int maxMembers, int memberPort, int interval, List<AutoScalePolicyTO> policies, AutoScaleVmProfileTO profile,
495+
String state, String currentState) {
492496
this.uuid = uuid;
493497
this.minMembers = minMembers;
494498
this.maxMembers = maxMembers;
@@ -551,20 +555,21 @@ public void setAutoScaleVmGroup(LbAutoScaleVmGroup lbAutoScaleVmGroup) {
551555
conditionTOs.add(conditionTO);
552556
}
553557
AutoScalePolicy autoScalePolicy = lbAutoScalePolicy.getPolicy();
554-
autoScalePolicyTOs.add(new AutoScalePolicyTO(autoScalePolicy.getId(), autoScalePolicy.getDuration(), autoScalePolicy.getQuietTime(), autoScalePolicy.getAction(),
555-
conditionTOs, lbAutoScalePolicy.isRevoked()));
558+
autoScalePolicyTOs.add(new AutoScalePolicyTO(autoScalePolicy.getId(), autoScalePolicy.getDuration(), autoScalePolicy.getQuietTime(),
559+
autoScalePolicy.getAction(), conditionTOs, lbAutoScalePolicy.isRevoked()));
556560
}
557561
LbAutoScaleVmProfile lbAutoScaleVmProfile = lbAutoScaleVmGroup.getProfile();
558562
AutoScaleVmProfile autoScaleVmProfile = lbAutoScaleVmProfile.getProfile();
559563

560-
AutoScaleVmProfileTO autoScaleVmProfileTO = new AutoScaleVmProfileTO(lbAutoScaleVmProfile.getZoneId(), lbAutoScaleVmProfile.getDomainId(), lbAutoScaleVmProfile.getCsUrl(),
561-
lbAutoScaleVmProfile.getAutoScaleUserApiKey(), lbAutoScaleVmProfile.getAutoScaleUserSecretKey(), lbAutoScaleVmProfile.getServiceOfferingId(),
562-
lbAutoScaleVmProfile.getTemplateId(), lbAutoScaleVmProfile.getVmName(), lbAutoScaleVmProfile.getNetworkId(), autoScaleVmProfile.getOtherDeployParams(),
563-
autoScaleVmProfile.getCounterParams(), autoScaleVmProfile.getDestroyVmGraceperiod());
564+
AutoScaleVmProfileTO autoScaleVmProfileTO =
565+
new AutoScaleVmProfileTO(lbAutoScaleVmProfile.getZoneId(), lbAutoScaleVmProfile.getDomainId(), lbAutoScaleVmProfile.getCsUrl(),
566+
lbAutoScaleVmProfile.getAutoScaleUserApiKey(), lbAutoScaleVmProfile.getAutoScaleUserSecretKey(), lbAutoScaleVmProfile.getServiceOfferingId(),
567+
lbAutoScaleVmProfile.getTemplateId(), lbAutoScaleVmProfile.getVmName(), lbAutoScaleVmProfile.getNetworkId(), autoScaleVmProfile.getOtherDeployParams(),
568+
autoScaleVmProfile.getCounterParams(), autoScaleVmProfile.getDestroyVmGraceperiod());
564569

565570
AutoScaleVmGroup autoScaleVmGroup = lbAutoScaleVmGroup.getVmGroup();
566-
autoScaleVmGroupTO = new AutoScaleVmGroupTO(autoScaleVmGroup.getUuid(), autoScaleVmGroup.getMinMembers(), autoScaleVmGroup.getMaxMembers(),
567-
autoScaleVmGroup.getMemberPort(), autoScaleVmGroup.getInterval(), autoScalePolicyTOs, autoScaleVmProfileTO, autoScaleVmGroup.getState(),
568-
lbAutoScaleVmGroup.getCurrentState());
571+
autoScaleVmGroupTO =
572+
new AutoScaleVmGroupTO(autoScaleVmGroup.getUuid(), autoScaleVmGroup.getMinMembers(), autoScaleVmGroup.getMaxMembers(), autoScaleVmGroup.getMemberPort(),
573+
autoScaleVmGroup.getInterval(), autoScalePolicyTOs, autoScaleVmProfileTO, autoScaleVmGroup.getState(), lbAutoScaleVmGroup.getCurrentState());
569574
}
570575
}

api/src/com/cloud/agent/api/to/NetworkACLTO.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
import java.util.ArrayList;
2121
import java.util.List;
2222

23-
import com.cloud.network.vpc.NetworkACLItem;
24-
import com.cloud.network.vpc.NetworkACLItem.TrafficType;
2523
import org.apache.cloudstack.api.InternalIdentity;
2624

25+
import com.cloud.network.vpc.NetworkACLItem;
26+
import com.cloud.network.vpc.NetworkACLItem.TrafficType;
2727
import com.cloud.utils.net.NetUtils;
2828

2929
public class NetworkACLTO implements InternalIdentity {
@@ -95,6 +95,7 @@ public NetworkACLTO(NetworkACLItem rule, String vlanTag, NetworkACLItem.TrafficT
9595
rule.getNumber());
9696
}
9797

98+
@Override
9899
public long getId() {
99100
return id;
100101
}

0 commit comments

Comments
 (0)