mirror of https://github.com/apache/cloudstack.git
Fixed typos
Signed-off-by: Milamber <milamber@apache.org>
This commit is contained in:
parent
ed2aa9f9da
commit
20614598bf
|
|
@ -139,7 +139,7 @@ public class DiskProfile {
|
|||
this.hyperType = hyperType;
|
||||
}
|
||||
|
||||
public HypervisorType getHypersorType() {
|
||||
public HypervisorType getHypervisorType() {
|
||||
return this.hyperType;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -454,11 +454,11 @@
|
|||
<property name="name" value="Balance"/>
|
||||
</bean>
|
||||
|
||||
<bean id="ExteralIpAddressAllocator" class="com.cloud.network.ExteralIpAddressAllocator">
|
||||
<bean id="ExternalIpAddressAllocator" class="com.cloud.network.ExternalIpAddressAllocator">
|
||||
<property name="name" value="Basic"/>
|
||||
</bean>
|
||||
|
||||
<bean id="hyervisorTemplateAdapter" class="com.cloud.template.HypervisorTemplateAdapter" />
|
||||
<bean id="hypervisorTemplateAdapter" class="com.cloud.template.HypervisorTemplateAdapter" />
|
||||
<bean id="clusterAlertAdapter" class="com.cloud.alert.ClusterAlertAdapter" />
|
||||
<bean id="consoleProxyAlertAdapter" class="com.cloud.alert.ConsoleProxyAlertAdapter" />
|
||||
<bean id="secondaryStorageVmAlertAdapter" class="com.cloud.alert.SecondaryStorageVmAlertAdapter" />
|
||||
|
|
@ -733,7 +733,7 @@
|
|||
<bean id="defaultEndPointSelector" class="org.apache.cloudstack.storage.endpoint.DefaultEndPointSelector" />
|
||||
<bean id="defaultPrimaryDataStoreProviderManagerImpl" class="org.apache.cloudstack.storage.datastore.manager.DefaultPrimaryDataStoreProviderManagerImpl" />
|
||||
<bean id="eventUtils" class="com.cloud.event.EventUtils" />
|
||||
<bean id="hypervsiorHostEndPointRpcServer" class="org.apache.cloudstack.storage.HypervsiorHostEndPointRpcServer" />
|
||||
<bean id="hypervisorHostEndPointRpcServer" class="org.apache.cloudstack.storage.HypervisorHostEndPointRpcServer" />
|
||||
<bean id="iSCSI" class="org.apache.cloudstack.storage.datastore.type.ISCSI" />
|
||||
<bean id="ISO" class="org.apache.cloudstack.storage.image.format.ISO" />
|
||||
<bean id="imageDataFactoryImpl" class="org.apache.cloudstack.storage.image.ImageDataFactoryImpl" />
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public class CommandResult {
|
|||
return !this.success;
|
||||
}
|
||||
|
||||
public void setSucess(boolean success) {
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public interface ObjectInDataStoreStateMachine extends StateObject<ObjectInDataS
|
|||
Creating2("This is only used with createOnlyRequested event"),
|
||||
Creating("The object is being creating on data store"),
|
||||
Created("The object is created"),
|
||||
Ready("Template downloading is complished"),
|
||||
Ready("Template downloading is accomplished"),
|
||||
Copying("The object is being coping"),
|
||||
Destroying("Template is destroying"),
|
||||
Destroyed("Template is destroyed"),
|
||||
|
|
|
|||
|
|
@ -70,12 +70,12 @@ public class DefaultImageMotionStrategy implements ImageMotionStrategy {
|
|||
CommandResult result = new CommandResult();
|
||||
|
||||
if (!answer.getResult()) {
|
||||
result.setSucess(answer.getResult());
|
||||
result.setSuccess(answer.getResult());
|
||||
result.setResult(answer.getDetails());
|
||||
} else {
|
||||
TemplateOnPrimaryDataStoreInfo templateStore = context.getTemplate();
|
||||
templateStore.setPath(answer.getPath());
|
||||
result.setSucess(true);
|
||||
result.setSuccess(true);
|
||||
}
|
||||
|
||||
parentCall.complete(result);
|
||||
|
|
|
|||
|
|
@ -29,9 +29,9 @@ import org.apache.cloudstack.storage.HypervisorHostEndPoint;
|
|||
import com.cloud.agent.api.Answer;
|
||||
import com.cloud.agent.api.Command;
|
||||
|
||||
public class MockHypervsiorHostEndPointRpcServer implements HostEndpointRpcServer {
|
||||
public class MockHypervisorHostEndPointRpcServer implements HostEndpointRpcServer {
|
||||
private ScheduledExecutorService executor;
|
||||
public MockHypervsiorHostEndPointRpcServer() {
|
||||
public MockHypervisorHostEndPointRpcServer() {
|
||||
executor = Executors.newScheduledThreadPool(10);
|
||||
}
|
||||
|
||||
|
|
@ -75,7 +75,7 @@
|
|||
</bean>
|
||||
|
||||
|
||||
<bean id="ExteralIpAddressAllocator" class="com.cloud.network.ExteralIpAddressAllocator">
|
||||
<bean id="ExternalIpAddressAllocator" class="com.cloud.network.ExternalIpAddressAllocator">
|
||||
<property name="name" value="Basic"/>
|
||||
</bean>
|
||||
|
||||
|
|
|
|||
|
|
@ -36,16 +36,16 @@ import com.cloud.agent.api.Command;
|
|||
import com.cloud.utils.exception.CloudRuntimeException;
|
||||
|
||||
@Component
|
||||
public class HypervsiorHostEndPointRpcServer implements HostEndpointRpcServer {
|
||||
private static final Logger s_logger = Logger.getLogger(HypervsiorHostEndPointRpcServer.class);
|
||||
public class HypervisorHostEndPointRpcServer implements HostEndpointRpcServer {
|
||||
private static final Logger s_logger = Logger.getLogger(HypervisorHostEndPointRpcServer.class);
|
||||
|
||||
@Inject
|
||||
private RpcProvider rpcProvider;
|
||||
|
||||
public HypervsiorHostEndPointRpcServer() {
|
||||
public HypervisorHostEndPointRpcServer() {
|
||||
}
|
||||
|
||||
public HypervsiorHostEndPointRpcServer(RpcProvider rpcProvider) {
|
||||
public HypervisorHostEndPointRpcServer(RpcProvider rpcProvider) {
|
||||
rpcProvider = rpcProvider;
|
||||
rpcProvider.registerRpcServiceEndpoint(RpcServiceDispatcher.getDispatcher(this));
|
||||
}
|
||||
|
|
@ -91,7 +91,7 @@ public class HypervsiorHostEndPointRpcServer implements HostEndpointRpcServer {
|
|||
@Override
|
||||
public Answer sendCommand(HypervisorHostEndPoint host, Command command) {
|
||||
SendCommandContext<Answer> context = new SendCommandContext<Answer>(null);
|
||||
AsyncCallbackDispatcher<HypervsiorHostEndPointRpcServer, Answer> caller = AsyncCallbackDispatcher.create(this);
|
||||
AsyncCallbackDispatcher<HypervisorHostEndPointRpcServer, Answer> caller = AsyncCallbackDispatcher.create(this);
|
||||
caller.setCallback(caller.getTarget().sendCommandCallback(null, null))
|
||||
.setContext(context);
|
||||
|
||||
|
|
@ -109,7 +109,7 @@ public class HypervsiorHostEndPointRpcServer implements HostEndpointRpcServer {
|
|||
return context.getAnswer();
|
||||
}
|
||||
|
||||
protected Object sendCommandCallback(AsyncCallbackDispatcher<HypervsiorHostEndPointRpcServer, Answer> callback, SendCommandContext<Answer> context) {
|
||||
protected Object sendCommandCallback(AsyncCallbackDispatcher<HypervisorHostEndPointRpcServer, Answer> callback, SendCommandContext<Answer> context) {
|
||||
context.setAnswer((Answer)callback.getResult());
|
||||
synchronized(context) {
|
||||
context.notify();
|
||||
|
|
@ -176,7 +176,7 @@ public abstract class AbstractStoragePoolAllocator extends AdapterBase implement
|
|||
|
||||
Long clusterId = pool.getClusterId();
|
||||
ClusterVO cluster = _clusterDao.findById(clusterId);
|
||||
if (!(cluster.getHypervisorType() == dskCh.getHypersorType())) {
|
||||
if (!(cluster.getHypervisorType() == dskCh.getHypervisorType())) {
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
s_logger.debug("StoragePool's Cluster does not have required hypervisorType, skipping this pool");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ public class ZoneWideStoragePoolAllocator extends AbstractStoragePoolAllocator {
|
|||
DeploymentPlan plan, ExcludeList avoid, int returnUpTo) {
|
||||
s_logger.debug("ZoneWideStoragePoolAllocator to find storage pool");
|
||||
List<StoragePool> suitablePools = new ArrayList<StoragePool>();
|
||||
HypervisorType hypervisor = dskCh.getHypersorType();
|
||||
HypervisorType hypervisor = dskCh.getHypervisorType();
|
||||
if (hypervisor != null) {
|
||||
if (hypervisor != HypervisorType.KVM) {
|
||||
s_logger.debug("Only kvm supports zone wide storage");
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ public class DataObjectManagerImpl implements DataObjectManager {
|
|||
if (obj == null) {
|
||||
CreateCmdResult result = new CreateCmdResult(
|
||||
null, null);
|
||||
result.setSucess(false);
|
||||
result.setSuccess(false);
|
||||
result.setResult(e.toString());
|
||||
callback.complete(result);
|
||||
return;
|
||||
|
|
@ -124,7 +124,7 @@ public class DataObjectManagerImpl implements DataObjectManager {
|
|||
data, store);
|
||||
} catch (Exception e) {
|
||||
CreateCmdResult result = new CreateCmdResult(null, null);
|
||||
result.setSucess(false);
|
||||
result.setSuccess(false);
|
||||
result.setResult(e.toString());
|
||||
callback.complete(result);
|
||||
return;
|
||||
|
|
@ -153,7 +153,7 @@ public class DataObjectManagerImpl implements DataObjectManager {
|
|||
s_logger.debug("state transation failed", e1);
|
||||
}
|
||||
CreateCmdResult result = new CreateCmdResult(null, null);
|
||||
result.setSucess(false);
|
||||
result.setSuccess(false);
|
||||
result.setResult(e.toString());
|
||||
callback.complete(result);
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -144,12 +144,12 @@ public class DefaultPrimaryDataStoreDriverImpl implements PrimaryDataStoreDriver
|
|||
CreateVolumeAnswer answer = (CreateVolumeAnswer)callback.getResult();
|
||||
CommandResult result = new CommandResult();
|
||||
if (answer == null || answer.getDetails() != null) {
|
||||
result.setSucess(false);
|
||||
result.setSuccess(false);
|
||||
if (answer != null) {
|
||||
result.setResult(answer.getDetails());
|
||||
}
|
||||
} else {
|
||||
result.setSucess(true);
|
||||
result.setSuccess(true);
|
||||
VolumeObject volume = context.getVolume();
|
||||
volume.setPath(answer.getVolumeUuid());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public class DefaultPrimaryDatastoreProviderImpl implements PrimaryDataStoreProv
|
|||
@Inject
|
||||
PrimaryDataStoreProviderManager storeMgr;
|
||||
|
||||
protected DataStoreLifeCycle lifecyle;
|
||||
protected DataStoreLifeCycle lifecycle;
|
||||
protected String uuid;
|
||||
protected long id;
|
||||
@Override
|
||||
|
|
@ -52,12 +52,12 @@ public class DefaultPrimaryDatastoreProviderImpl implements PrimaryDataStoreProv
|
|||
|
||||
@Override
|
||||
public DataStoreLifeCycle getDataStoreLifeCycle() {
|
||||
return this.lifecyle;
|
||||
return this.lifecycle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean configure(Map<String, Object> params) {
|
||||
lifecyle = ComponentContext.inject(DefaultPrimaryDataStoreLifeCycleImpl.class);
|
||||
lifecycle = ComponentContext.inject(DefaultPrimaryDataStoreLifeCycleImpl.class);
|
||||
driver = ComponentContext.inject(DefaultPrimaryDataStoreDriverImpl.class);
|
||||
listener = ComponentContext.inject(DefaultHostListener.class);
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ public class TemplateInstallStrategyImpl implements TemplateInstallStrategy {
|
|||
if (obj == null) {
|
||||
CreateBaseImageResult result = new CreateBaseImageResult(
|
||||
null);
|
||||
result.setSucess(false);
|
||||
result.setSuccess(false);
|
||||
result.setResult(e.toString());
|
||||
callback.complete(result);
|
||||
return null;
|
||||
|
|
@ -122,7 +122,7 @@ public class TemplateInstallStrategyImpl implements TemplateInstallStrategy {
|
|||
template, store);
|
||||
} catch (Exception e) {
|
||||
CreateBaseImageResult result = new CreateBaseImageResult(null);
|
||||
result.setSucess(false);
|
||||
result.setSuccess(false);
|
||||
result.setResult(e.toString());
|
||||
callback.complete(result);
|
||||
return null;
|
||||
|
|
@ -145,7 +145,7 @@ public class TemplateInstallStrategyImpl implements TemplateInstallStrategy {
|
|||
s_logger.debug("state transation failed", e1);
|
||||
}
|
||||
CreateBaseImageResult result = new CreateBaseImageResult(null);
|
||||
result.setSucess(false);
|
||||
result.setSuccess(false);
|
||||
result.setResult(e.toString());
|
||||
callback.complete(result);
|
||||
return null;
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ under the License.
|
|||
<adapter name="Balance" class="com.cloud.storage.secondary.SecondaryStorageVmDefaultAllocator"/>
|
||||
</adapters>
|
||||
<adapters key="com.cloud.network.IpAddrAllocator">
|
||||
<adapter name="Basic" class="com.cloud.network.ExteralIpAddressAllocator"/>
|
||||
<adapter name="Basic" class="com.cloud.network.ExternalIpAddressAllocator"/>
|
||||
</adapters>
|
||||
<adapters key="com.cloud.server.auth.UserAuthenticator">
|
||||
<!-- <adapter name="SHA256SALT" class="com.cloud.server.auth.SHA256SaltedUserAuthenticator"/> -->
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public class CloudStackPrimaryDataStoreProviderImpl implements
|
|||
private final String providerName = "ancient primary data store provider";
|
||||
protected PrimaryDataStoreDriver driver;
|
||||
protected HypervisorHostListener listener;
|
||||
protected DataStoreLifeCycle lifecyle;
|
||||
protected DataStoreLifeCycle lifecycle;
|
||||
|
||||
CloudStackPrimaryDataStoreProviderImpl() {
|
||||
|
||||
|
|
@ -50,12 +50,12 @@ public class CloudStackPrimaryDataStoreProviderImpl implements
|
|||
|
||||
@Override
|
||||
public DataStoreLifeCycle getDataStoreLifeCycle() {
|
||||
return this.lifecyle;
|
||||
return this.lifecycle;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean configure(Map<String, Object> params) {
|
||||
lifecyle = ComponentContext.inject(CloudStackPrimaryDataStoreLifeCycleImpl.class);
|
||||
lifecycle = ComponentContext.inject(CloudStackPrimaryDataStoreLifeCycleImpl.class);
|
||||
driver = ComponentContext.inject(CloudStackPrimaryDataStoreDriverImpl.class);
|
||||
listener = ComponentContext.inject(DefaultHostListener.class);
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -37,8 +37,8 @@ import com.cloud.utils.component.AdapterBase;
|
|||
import com.cloud.utils.exception.CloudRuntimeException;
|
||||
|
||||
@Local(value=IpAddrAllocator.class)
|
||||
public class ExteralIpAddressAllocator extends AdapterBase implements IpAddrAllocator{
|
||||
private static final Logger s_logger = Logger.getLogger(ExteralIpAddressAllocator.class);
|
||||
public class ExternalIpAddressAllocator extends AdapterBase implements IpAddrAllocator{
|
||||
private static final Logger s_logger = Logger.getLogger(ExternalIpAddressAllocator.class);
|
||||
String _name;
|
||||
@Inject ConfigurationDao _configDao = null;
|
||||
@Inject IPAddressDao _ipAddressDao = null;
|
||||
|
|
@ -135,7 +135,7 @@ public class ExteralIpAddressAllocator extends AdapterBase implements IpAddrAllo
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean exteralIpAddressAllocatorEnabled() {
|
||||
public boolean externalIpAddressAllocatorEnabled() {
|
||||
return _isExternalIpAllocatorEnabled;
|
||||
}
|
||||
|
||||
|
|
@ -52,5 +52,5 @@ public interface IpAddrAllocator extends Adapter {
|
|||
public IpAddr getPrivateIpAddress(String macAddr, long dcId, long podId);
|
||||
public boolean releasePublicIpAddress(String ip, long dcId, long podId);
|
||||
public boolean releasePrivateIpAddress(String ip, long dcId, long podId);
|
||||
public boolean exteralIpAddressAllocatorEnabled();
|
||||
public boolean externalIpAddressAllocatorEnabled();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -273,7 +273,7 @@ public class TemplateManagerImpl extends ManagerBase implements TemplateManager,
|
|||
if (type == HypervisorType.BareMetal) {
|
||||
adapter = AdapterBase.getAdapterByName(_adapters, TemplateAdapterType.BareMetal.getName());
|
||||
} else {
|
||||
// see HyervisorTemplateAdapter
|
||||
// see HypervisorTemplateAdapter
|
||||
adapter = AdapterBase.getAdapterByName(_adapters, TemplateAdapterType.Hypervisor.getName());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ under the License.
|
|||
<!--<adapter name="NiciraNvpGuestNetworkGuru" class="com.cloud.network.guru.NiciraNvpGuestNetworkGuru"/> -->
|
||||
</adapters>
|
||||
<adapters key="com.cloud.network.IpAddrAllocator">
|
||||
<adapter name="Basic" class="com.cloud.network.ExteralIpAddressAllocator"/>
|
||||
<adapter name="Basic" class="com.cloud.network.ExternalIpAddressAllocator"/>
|
||||
</adapters>
|
||||
<adapters key="com.cloud.network.element.NetworkElement">
|
||||
<adapter name="VirtualRouter" class="com.cloud.network.element.VirtualRouterElement"/>
|
||||
|
|
|
|||
|
|
@ -71,14 +71,14 @@ public class ComponentContext implements ApplicationContextAware {
|
|||
beanFactory.configureBean(bean, entry.getKey());
|
||||
}
|
||||
|
||||
Map<String, ComponentLifecycle> lifecyleComponents = getApplicationContext().getBeansOfType(ComponentLifecycle.class);
|
||||
Map<String, ComponentLifecycle> lifecycleComponents = getApplicationContext().getBeansOfType(ComponentLifecycle.class);
|
||||
|
||||
Map[] classifiedComponents = new Map[ComponentLifecycle.MAX_RUN_LEVELS];
|
||||
for(int i = 0; i < ComponentLifecycle.MAX_RUN_LEVELS; i++) {
|
||||
classifiedComponents[i] = new HashMap<String, ComponentLifecycle>();
|
||||
}
|
||||
|
||||
for(Map.Entry<String, ComponentLifecycle> entry : lifecyleComponents.entrySet()) {
|
||||
for(Map.Entry<String, ComponentLifecycle> entry : lifecycleComponents.entrySet()) {
|
||||
classifiedComponents[entry.getValue().getRunLevel()].put(entry.getKey(), entry.getValue());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue