Skip to content
This repository was archived by the owner on Jan 15, 2020. It is now read-only.

Commit 2061459

Browse files
pborrelimilamberspace
authored andcommitted
Fixed typos
Signed-off-by: Milamber <milamber@apache.org>
1 parent ed2aa9f commit 2061459

21 files changed

Lines changed: 42 additions & 42 deletions

File tree

api/src/com/cloud/vm/DiskProfile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public void setHyperType(HypervisorType hyperType) {
139139
this.hyperType = hyperType;
140140
}
141141

142-
public HypervisorType getHypersorType() {
142+
public HypervisorType getHypervisorType() {
143143
return this.hyperType;
144144
}
145145

client/tomcatconf/applicationContext.xml.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,11 +454,11 @@
454454
<property name="name" value="Balance"/>
455455
</bean>
456456

457-
<bean id="ExteralIpAddressAllocator" class="com.cloud.network.ExteralIpAddressAllocator">
457+
<bean id="ExternalIpAddressAllocator" class="com.cloud.network.ExternalIpAddressAllocator">
458458
<property name="name" value="Basic"/>
459459
</bean>
460460

461-
<bean id="hyervisorTemplateAdapter" class="com.cloud.template.HypervisorTemplateAdapter" />
461+
<bean id="hypervisorTemplateAdapter" class="com.cloud.template.HypervisorTemplateAdapter" />
462462
<bean id="clusterAlertAdapter" class="com.cloud.alert.ClusterAlertAdapter" />
463463
<bean id="consoleProxyAlertAdapter" class="com.cloud.alert.ConsoleProxyAlertAdapter" />
464464
<bean id="secondaryStorageVmAlertAdapter" class="com.cloud.alert.SecondaryStorageVmAlertAdapter" />
@@ -733,7 +733,7 @@
733733
<bean id="defaultEndPointSelector" class="org.apache.cloudstack.storage.endpoint.DefaultEndPointSelector" />
734734
<bean id="defaultPrimaryDataStoreProviderManagerImpl" class="org.apache.cloudstack.storage.datastore.manager.DefaultPrimaryDataStoreProviderManagerImpl" />
735735
<bean id="eventUtils" class="com.cloud.event.EventUtils" />
736-
<bean id="hypervsiorHostEndPointRpcServer" class="org.apache.cloudstack.storage.HypervsiorHostEndPointRpcServer" />
736+
<bean id="hypervisorHostEndPointRpcServer" class="org.apache.cloudstack.storage.HypervisorHostEndPointRpcServer" />
737737
<bean id="iSCSI" class="org.apache.cloudstack.storage.datastore.type.ISCSI" />
738738
<bean id="ISO" class="org.apache.cloudstack.storage.image.format.ISO" />
739739
<bean id="imageDataFactoryImpl" class="org.apache.cloudstack.storage.image.ImageDataFactoryImpl" />

engine/api/src/org/apache/cloudstack/engine/subsystem/api/storage/CommandResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public boolean isFailed() {
3434
return !this.success;
3535
}
3636

37-
public void setSucess(boolean success) {
37+
public void setSuccess(boolean success) {
3838
this.success = success;
3939
}
4040

engine/api/src/org/apache/cloudstack/engine/subsystem/api/storage/ObjectInDataStoreStateMachine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ enum State {
2626
Creating2("This is only used with createOnlyRequested event"),
2727
Creating("The object is being creating on data store"),
2828
Created("The object is created"),
29-
Ready("Template downloading is complished"),
29+
Ready("Template downloading is accomplished"),
3030
Copying("The object is being coping"),
3131
Destroying("Template is destroying"),
3232
Destroyed("Template is destroyed"),

engine/storage/imagemotion/src/org/apache/cloudstack/storage/image/motion/DefaultImageMotionStrategy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ public Object copyTemplateCallBack(AsyncCallbackDispatcher<DefaultImageMotionStr
7070
CommandResult result = new CommandResult();
7171
7272
if (!answer.getResult()) {
73-
result.setSucess(answer.getResult());
73+
result.setSuccess(answer.getResult());
7474
result.setResult(answer.getDetails());
7575
} else {
7676
TemplateOnPrimaryDataStoreInfo templateStore = context.getTemplate();
7777
templateStore.setPath(answer.getPath());
78-
result.setSucess(true);
78+
result.setSuccess(true);
7979
}
8080
8181
parentCall.complete(result);

engine/storage/integration-test/test/org/apache/cloudstack/storage/test/MockHypervsiorHostEndPointRpcServer.java renamed to engine/storage/integration-test/test/org/apache/cloudstack/storage/test/MockHypervisorHostEndPointRpcServer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
import com.cloud.agent.api.Answer;
3030
import com.cloud.agent.api.Command;
3131

32-
public class MockHypervsiorHostEndPointRpcServer implements HostEndpointRpcServer {
32+
public class MockHypervisorHostEndPointRpcServer implements HostEndpointRpcServer {
3333
private ScheduledExecutorService executor;
34-
public MockHypervsiorHostEndPointRpcServer() {
34+
public MockHypervisorHostEndPointRpcServer() {
3535
executor = Executors.newScheduledThreadPool(10);
3636
}
3737

engine/storage/integration-test/test/resource/component.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
</bean>
7676

7777

78-
<bean id="ExteralIpAddressAllocator" class="com.cloud.network.ExteralIpAddressAllocator">
78+
<bean id="ExternalIpAddressAllocator" class="com.cloud.network.ExternalIpAddressAllocator">
7979
<property name="name" value="Basic"/>
8080
</bean>
8181

engine/storage/src/org/apache/cloudstack/storage/HypervsiorHostEndPointRpcServer.java renamed to engine/storage/src/org/apache/cloudstack/storage/HypervisorHostEndPointRpcServer.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@
3636
import com.cloud.utils.exception.CloudRuntimeException;
3737

3838
@Component
39-
public class HypervsiorHostEndPointRpcServer implements HostEndpointRpcServer {
40-
private static final Logger s_logger = Logger.getLogger(HypervsiorHostEndPointRpcServer.class);
39+
public class HypervisorHostEndPointRpcServer implements HostEndpointRpcServer {
40+
private static final Logger s_logger = Logger.getLogger(HypervisorHostEndPointRpcServer.class);
4141

4242
@Inject
4343
private RpcProvider rpcProvider;
4444

45-
public HypervsiorHostEndPointRpcServer() {
45+
public HypervisorHostEndPointRpcServer() {
4646
}
4747

48-
public HypervsiorHostEndPointRpcServer(RpcProvider rpcProvider) {
48+
public HypervisorHostEndPointRpcServer(RpcProvider rpcProvider) {
4949
rpcProvider = rpcProvider;
5050
rpcProvider.registerRpcServiceEndpoint(RpcServiceDispatcher.getDispatcher(this));
5151
}
@@ -91,7 +91,7 @@ public T getAnswer() {
9191
@Override
9292
public Answer sendCommand(HypervisorHostEndPoint host, Command command) {
9393
SendCommandContext<Answer> context = new SendCommandContext<Answer>(null);
94-
AsyncCallbackDispatcher<HypervsiorHostEndPointRpcServer, Answer> caller = AsyncCallbackDispatcher.create(this);
94+
AsyncCallbackDispatcher<HypervisorHostEndPointRpcServer, Answer> caller = AsyncCallbackDispatcher.create(this);
9595
caller.setCallback(caller.getTarget().sendCommandCallback(null, null))
9696
.setContext(context);
9797

@@ -109,7 +109,7 @@ public Answer sendCommand(HypervisorHostEndPoint host, Command command) {
109109
return context.getAnswer();
110110
}
111111

112-
protected Object sendCommandCallback(AsyncCallbackDispatcher<HypervsiorHostEndPointRpcServer, Answer> callback, SendCommandContext<Answer> context) {
112+
protected Object sendCommandCallback(AsyncCallbackDispatcher<HypervisorHostEndPointRpcServer, Answer> callback, SendCommandContext<Answer> context) {
113113
context.setAnswer((Answer)callback.getResult());
114114
synchronized(context) {
115115
context.notify();

engine/storage/src/org/apache/cloudstack/storage/allocator/AbstractStoragePoolAllocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ protected boolean filter(ExcludeList avoid, StoragePool pool, DiskProfile dskCh,
176176

177177
Long clusterId = pool.getClusterId();
178178
ClusterVO cluster = _clusterDao.findById(clusterId);
179-
if (!(cluster.getHypervisorType() == dskCh.getHypersorType())) {
179+
if (!(cluster.getHypervisorType() == dskCh.getHypervisorType())) {
180180
if (s_logger.isDebugEnabled()) {
181181
s_logger.debug("StoragePool's Cluster does not have required hypervisorType, skipping this pool");
182182
}

engine/storage/src/org/apache/cloudstack/storage/allocator/ZoneWideStoragePoolAllocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected List<StoragePool> select(DiskProfile dskCh,
5757
DeploymentPlan plan, ExcludeList avoid, int returnUpTo) {
5858
s_logger.debug("ZoneWideStoragePoolAllocator to find storage pool");
5959
List<StoragePool> suitablePools = new ArrayList<StoragePool>();
60-
HypervisorType hypervisor = dskCh.getHypersorType();
60+
HypervisorType hypervisor = dskCh.getHypervisorType();
6161
if (hypervisor != null) {
6262
if (hypervisor != HypervisorType.KVM) {
6363
s_logger.debug("Only kvm supports zone wide storage");

0 commit comments

Comments
 (0)