Skip to content

Commit babc9a2

Browse files
Aligning use of terminology, fix typos and other grammar mistakes in the server
1 parent 540dcc1 commit babc9a2

File tree

1,125 files changed

+6789
-6789
lines changed

Some content is hidden

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

1,125 files changed

+6789
-6789
lines changed

agent/src/main/java/com/cloud/agent/resource/consoleproxy/ConsoleProxyResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ public String authenticateConsoleAccess(String host, String port, String vmId, S
420420
result.setTunnelUrl(authAnswer.getTunnelUrl());
421421
result.setTunnelSession(authAnswer.getTunnelSession());
422422
} else {
423-
s_logger.error("Authentication failed for vm: " + vmId + " with sid: " + sid);
423+
s_logger.error("Authentication failed for Instance: " + vmId + " with sid: " + sid);
424424
}
425425
} catch (AgentControlChannelException e) {
426426
s_logger.error("Unable to send out console access authentication request due to " + e.getMessage(), e);

api/src/main/java/com/cloud/agent/api/storage/OVFHelper.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ private DatadiskTO generateDiskTO(OVFFile file, OVFDisk disk, String ovfParentPa
277277
if (StringUtils.isNotBlank(path)) {
278278
File f = new File(path);
279279
if (!f.exists() || f.isDirectory()) {
280-
s_logger.error("One of the attached disk or iso does not exists " + path);
281-
throw new InternalErrorException("One of the attached disk or iso as stated on OVF does not exists " + path);
280+
s_logger.error("One of the attached disk or ISO does not exists " + path);
281+
throw new InternalErrorException("One of the attached disk or ISO as stated on OVF does not exists " + path);
282282
}
283283
}
284284
Long capacity = disk != null ? disk._capacity : file._size;
@@ -522,7 +522,7 @@ OVFFile getFileDefinitionFromDiskDefinition(String fileRef, List<OVFFile> files)
522522
public List<OVFNetworkTO> getNetPrerequisitesFromDocument(Document doc) throws InternalErrorException {
523523
if (doc == null) {
524524
if (s_logger.isTraceEnabled()) {
525-
s_logger.trace("no document to parse; returning no prerequisite networks");
525+
s_logger.trace("No document to parse; returning no prerequisite Networks");
526526
}
527527
return Collections.emptyList();
528528
}
@@ -540,7 +540,7 @@ private void matchNicsToNets(Map<String, OVFNetworkTO> nets, Node systemElement)
540540
final DocumentTraversal traversal = (DocumentTraversal) systemElement;
541541
final NodeIterator iterator = traversal.createNodeIterator(systemElement, NodeFilter.SHOW_ELEMENT, null, true);
542542
if (s_logger.isTraceEnabled()) {
543-
s_logger.trace(String.format("starting out with %d network-prerequisites, parsing hardware",nets.size()));
543+
s_logger.trace(String.format("Starting out with %d network-prerequisites, parsing hardware",nets.size()));
544544
}
545545
int nicCount = 0;
546546
for (Node n = iterator.nextNode(); n != null; n = iterator.nextNode()) {
@@ -550,7 +550,7 @@ private void matchNicsToNets(Map<String, OVFNetworkTO> nets, Node systemElement)
550550
String name = e.getTextContent(); // should be in our nets
551551
if(nets.get(name) == null) {
552552
if(s_logger.isInfoEnabled()) {
553-
s_logger.info(String.format("found a nic definition without a network definition byname %s, adding it to the list.", name));
553+
s_logger.info(String.format("Found a NIC definition without a Network definition by name %s, adding it to the list.", name));
554554
}
555555
nets.put(name, new OVFNetworkTO());
556556
}
@@ -561,7 +561,7 @@ private void matchNicsToNets(Map<String, OVFNetworkTO> nets, Node systemElement)
561561
}
562562
}
563563
if (s_logger.isTraceEnabled()) {
564-
s_logger.trace(String.format("ending up with %d network-prerequisites, parsed %d nics", nets.size(), nicCount));
564+
s_logger.trace(String.format("Ending up with %d network-prerequisites, parsed %d NICs", nets.size(), nicCount));
565565
}
566566
}
567567

@@ -630,7 +630,7 @@ private Map<String, OVFNetworkTO> getNetworksFromDocumentTree(Document doc) {
630630
nets.put(networkName,network);
631631
}
632632
if (s_logger.isTraceEnabled()) {
633-
s_logger.trace(String.format("found %d networks in template", nets.size()));
633+
s_logger.trace(String.format("Found %d Networks in Template", nets.size()));
634634
}
635635
return nets;
636636
}

api/src/main/java/com/cloud/api/commands/ListRecurringSnapshotScheduleCmd.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ public class ListRecurringSnapshotScheduleCmd extends BaseListCmd {
3535
//////////////// API parameters /////////////////////
3636
/////////////////////////////////////////////////////
3737

38-
@Parameter(name = ApiConstants.SNAPSHOT_POLICY_ID, type = CommandType.LONG, description = "lists recurring snapshots by snapshot policy ID")
38+
@Parameter(name = ApiConstants.SNAPSHOT_POLICY_ID, type = CommandType.LONG, description = "Lists recurring Snapshots by Snapshot policy ID")
3939
private Long snapshotPolicyId;
4040

41-
@Parameter(name = ApiConstants.VOLUME_ID, type = CommandType.LONG, required = true, description = "list recurring snapshots by volume ID")
41+
@Parameter(name = ApiConstants.VOLUME_ID, type = CommandType.LONG, required = true, description = "List recurring Snapshots by volume ID")
4242
private Long volumeId;
4343

4444
/////////////////////////////////////////////////////

api/src/main/java/com/cloud/network/Ipv6Service.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public interface Ipv6Service extends PluggableService, Configurable {
4545
static final ConfigKey<Boolean> Ipv6OfferingCreationEnabled = new ConfigKey<Boolean>("Advanced", Boolean.class,
4646
"ipv6.offering.enabled",
4747
"false",
48-
"Indicates whether creation of IPv6 network/VPC offering is enabled or not.",
48+
"Indicates whether creation of IPv6 Network/VPC offering is enabled or not.",
4949
true);
5050

5151
static final ConfigKey<Integer> Ipv6PrefixSubnetCleanupInterval = new ConfigKey<Integer>("Advanced", Integer.class,

api/src/main/java/com/cloud/network/Network.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ enum Event {
322322

323323
public enum State {
324324

325-
Allocated("Indicates the network configuration is in allocated but not setup"), Setup("Indicates the network configuration is setup"), Implementing(
326-
"Indicates the network configuration is being implemented"), Implemented("Indicates the network configuration is in use"), Shutdown(
327-
"Indicates the network configuration is being destroyed"), Destroy("Indicates that the network is destroyed");
325+
Allocated("Indicates the Network configuration is in allocated but not setup"), Setup("Indicates the Network configuration is setup"), Implementing(
326+
"Indicates the Network configuration is being implemented"), Implemented("Indicates the Network configuration is in use"), Shutdown(
327+
"Indicates the Network configuration is being destroyed"), Destroy("Indicates that the Network is destroyed");
328328

329329
protected static final StateMachine2<State, Network.Event, Network> s_fsm = new StateMachine2<State, Network.Event, Network>();
330330

api/src/main/java/com/cloud/network/NetworkService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public interface NetworkService {
7575
true, ConfigKey.Scope.Zone);
7676

7777
public static final ConfigKey<Boolean> AllowUsersToSpecifyVRMtu = new ConfigKey<>("Advanced", Boolean.class,
78-
"allow.end.users.to.specify.vr.mtu", "false", "Allow end users to specify VR MTU",
78+
"allow.end.users.to.specify.vr.mtu", "false", "Allow end Users to specify VR MTU",
7979
true, ConfigKey.Scope.Zone);
8080

8181
List<? extends Network> getIsolatedNetworksOwnedByAccountInZone(long zoneId, Account owner);

api/src/main/java/com/cloud/network/as/AutoScaleVmGroup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static State fromValue(String state) {
4343
} else if (state.equalsIgnoreCase("scaling")) {
4444
return SCALING;
4545
} else {
46-
throw new IllegalArgumentException("Unexpected AutoScale VM group state : " + state);
46+
throw new IllegalArgumentException("Unexpected AutoScale Instance group state : " + state);
4747
}
4848
}
4949
}

api/src/main/java/com/cloud/user/ResourceLimitService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
public interface ResourceLimitService {
3030

3131
static final ConfigKey<Long> MaxAccountSecondaryStorage = new ConfigKey<>("Account Defaults", Long.class, "max.account.secondary.storage", "400",
32-
"The default maximum secondary storage space (in GiB) that can be used for an account", false);
32+
"The default maximum secondary storage space (in GiB) that can be used for an Account", false);
3333
static final ConfigKey<Long> MaxProjectSecondaryStorage = new ConfigKey<>("Project Defaults", Long.class, "max.project.secondary.storage", "400",
3434
"The default maximum secondary storage space (in GiB) that can be used for a project", false);
3535
static final ConfigKey<Long> ResourceCountCheckInterval = new ConfigKey<>("Advanced", Long.class, "resourcecount.check.interval", "300",

api/src/main/java/com/cloud/vm/snapshot/VMSnapshot.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
public interface VMSnapshot extends ControlledEntity, Identity, InternalIdentity, StateObject<VMSnapshot.State> {
3030

3131
enum State {
32-
Allocated("The VM snapshot is allocated but has not been created yet."), Creating("The VM snapshot is being created."), Ready(
33-
"The VM snapshot is ready to be used."), Reverting("The VM snapshot is being used to revert"), Expunging("The volume is being expunging"), Removed(
32+
Allocated("The Instance Snapshot is allocated but has not been created yet."), Creating("The Instance Snapshot is being created."), Ready(
33+
"The Instance Snapshot is ready to be used."), Reverting("The Instance Snapshot is being used to revert"), Expunging("The volume is being expunging"), Removed(
3434
"The volume is destroyed, and can't be recovered."), Error("The volume is in error state, and can't be recovered");
3535

3636
String _description;

api/src/main/java/org/apache/cloudstack/acl/RoleType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ public static Long getRoleByAccountType(final Long roleId, final Account.Type ac
104104
* */
105105
public static Account.Type getAccountTypeByRole(final Role role, final Account.Type defautAccountType) {
106106
if (role != null) {
107-
logger.debug(String.format("Role [%s] is not null; therefore, we use its account type [%s].", role, defautAccountType));
107+
logger.debug(String.format("Role [%s] is not null; therefore, we use its Account type [%s].", role, defautAccountType));
108108
return role.getRoleType().getAccountType();
109109
}
110-
logger.debug(String.format("Role is null; therefore, we use the default account type [%s] value.", defautAccountType));
110+
logger.debug(String.format("Role is null; therefore, we use the default Account type [%s] value.", defautAccountType));
111111
return defautAccountType;
112112
}
113113
}

0 commit comments

Comments
 (0)