Merge pull request #757 from andrewgaul/spelling

Spelling corrections
This commit is contained in:
Adrian Cole 2012-07-27 01:09:15 -07:00
commit 986f92d0a4
93 changed files with 147 additions and 147 deletions

View File

@ -393,7 +393,7 @@ public class SSHJava extends Java {
}
/**
* All files transfered to the host will be relative to this. The java process itself will be at
* All files transferred to the host will be relative to this. The java process itself will be at
* this path/{@code id}.
*/
public void setRemotebase(File remotebase) {

View File

@ -227,7 +227,7 @@ public class SSHExecute {
}
/**
* Open an ssh seession.
* Open an ssh session.
*
* @return the opened session
* @throws JSchException

View File

@ -167,7 +167,7 @@ public class LoadBalancer extends BaseLoadBalancer<Node, LoadBalancer> {
* configuration change or update, the status of the load balancer will change to PENDING_UPDATE
* to signify configuration changes are in progress but have not yet been finalized. Load
* balancers in a SUSPENDED status are configured to reject traffic and will not forward requests
* to back-end nodess.
* to back-end nodes.
*/
public static enum Status {
/**

View File

@ -32,7 +32,7 @@ import com.google.gson.stream.JsonReader;
* Data adapter for the date formats used by CloudStack.
*
* Essentially this is a workaround for the CloudStack getUsage() API call returning a
* corrupted formn of ISO-8601 dates, which have an unexpected pair of apostrophes, like
* corrupted form of ISO-8601 dates, which have an unexpected pair of apostrophes, like
* 2011-12-12'T'00:00:00+00:00
*
* @author Richard Downer

View File

@ -333,7 +333,7 @@ public class Snapshot {
}
/**
* @return valid types are hourly, daily, weekly, monthy, template, and none.
* @return valid types are hourly, daily, weekly, monthly, template, and none.
*/
@Nullable
public Snapshot.Interval getInterval() {

View File

@ -150,7 +150,7 @@ public class SnapshotPolicy {
}
/**
* @return valid types are hourly, daily, weekly, monthy, template, and none.
* @return valid types are hourly, daily, weekly, monthly, template, and none.
*/
@Nullable
public Snapshot.Interval getInterval() {

View File

@ -940,7 +940,7 @@ public class VirtualMachine {
}
/**
* @return the ID of the availablility zone for the virtual machine
* @return the ID of the availability zone for the virtual machine
*/
@Nullable
public String getZoneId() {

View File

@ -95,7 +95,7 @@ public interface FirewallClient {
* @param options
* if present, how to constrain the list.
* @return PortForwardingRules matching query, or empty set, if no
* PortForwardingRulees are found
* PortForwardingRules are found
*/
Set<PortForwardingRule> listPortForwardingRules(ListPortForwardingRulesOptions... options);

View File

@ -170,7 +170,7 @@ public interface TemplateClient {
/**
* Updates a template visibility permissions. A public template is visible to
* all accounts within the same domain. A private template is visible only to
* the owner of the template. A priviledged template is a private template
* the owner of the template. A privileged template is a private template
* with account permissions added. Only accounts specified under the template
* permissions are visible to them.
*

View File

@ -67,7 +67,7 @@ public class CreateTemplateOptions extends BaseHttpRequestOptions {
}
/**
* true if the template requres HVM, false otherwise
* true if the template requires HVM, false otherwise
*/
public CreateTemplateOptions requiresHVM(boolean requiresHVM) {
this.queryParameters.replaceValues("requireshvm", ImmutableSet.of(requiresHVM + ""));

View File

@ -43,7 +43,7 @@ public class ListFirewallRulesOptions extends AccountInDomainOptions {
/**
* @param ipAddressId
* the id of IP address of the firwall services
* the id of IP address of the firewall services
*/
public ListFirewallRulesOptions ipAddressId(String ipAddressId) {
this.queryParameters.replaceValues("ipaddressid", ImmutableSet.of(ipAddressId + ""));

View File

@ -223,7 +223,7 @@ public class EC2ComputeService extends BaseComputeService {
// resources existing.
// Also in #445, in aws-ec2 the deleteSecurityGroup sometimes fails after terminating the final VM using a
// given security group, if called very soon after the VM's state reports terminated. Emprically, it seems that
// given security group, if called very soon after the VM's state reports terminated. Empirically, it seems that
// waiting a small time (e.g. enabling logging or debugging!) then the tests pass. We therefore retry.
final int maxAttempts = 3;
Retryables.retryNumTimes(new Predicate<Void>() {

View File

@ -103,7 +103,7 @@ public class BundleInstanceS3Storage {
@Override
public String toString() {
return "[ccessKeyId=" + ccessKeyId + ", bucket=" + bucket + ", prefix=" + prefix + ", secreAccessKey="
return "[ccessKeyId=" + ccessKeyId + ", bucket=" + bucket + ", prefix=" + prefix + ", secretAccessKey="
+ secretAccessKey + ", uploadPolicy=" + uploadPolicy + ", uploadPolicySignature=" + uploadPolicySignature
+ "]";
}

View File

@ -40,7 +40,7 @@ public class DescribeAvailabilityZonesResponseHandler extends ParseSax.HandlerWi
private StringBuilder currentText = new StringBuilder();
private final Supplier<String> defaultRegion;
private Set<AvailabilityZoneInfo> availablilityZones = Sets.newLinkedHashSet();
private Set<AvailabilityZoneInfo> availabilityZones = Sets.newLinkedHashSet();
private String zone;
@Resource
protected Logger logger = Logger.NULL;
@ -63,7 +63,7 @@ public class DescribeAvailabilityZonesResponseHandler extends ParseSax.HandlerWi
}
public Set<AvailabilityZoneInfo> getResult() {
return availablilityZones;
return availabilityZones;
}
public void startElement(String uri, String name, String qName, Attributes attrs) {
@ -89,7 +89,7 @@ public class DescribeAvailabilityZonesResponseHandler extends ParseSax.HandlerWi
} else if (qName.equals("messageSet")) {
inMessageSet = false;
} else if (qName.equals("item") && !inMessageSet) {
availablilityZones.add(new AvailabilityZoneInfo(zone, zoneState, region, messages));
availabilityZones.add(new AvailabilityZoneInfo(zone, zoneState, region, messages));
this.zone = null;
this.region = defaultRegion.get();
this.zoneState = null;

View File

@ -233,7 +233,7 @@ public class FilesystemStorageStrategyImpl implements LocalStorageStrategy {
File fileToBeDeleted = new File(fileName);
fileToBeDeleted.delete();
// now examins if the key of the blob is a complex key (with a directory structure)
// now examine if the key of the blob is a complex key (with a directory structure)
// and eventually remove empty directory
removeDirectoriesTreeOfBlobKey(container, blobKey);
}

View File

@ -107,16 +107,16 @@ public class ApplyNovaTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddT
templateOptions);
}
boolean keyPairExensionPresent = novaApi.getKeyPairExtensionForZone(zone).isPresent();
boolean keyPairExtensionPresent = novaApi.getKeyPairExtensionForZone(zone).isPresent();
if (templateOptions.shouldGenerateKeyPair()) {
checkArgument(keyPairExensionPresent,
checkArgument(keyPairExtensionPresent,
"Key Pairs are required by options, but the extension is not available! options: %s", templateOptions);
KeyPair keyPair = keyPairCache.getUnchecked(ZoneAndName.fromZoneAndName(zone, namingConvention.create()
.sharedNameForGroup(group)));
keyPairCache.asMap().put(ZoneAndName.fromZoneAndName(zone, keyPair.getName()), keyPair);
templateOptions.keyPairName(keyPair.getName());
} else if (templateOptions.getKeyPairName() != null) {
checkArgument(keyPairExensionPresent,
checkArgument(keyPairExtensionPresent,
"Key Pairs are required by options, but the extension is not available! options: %s", templateOptions);
if (templateOptions.getLoginPrivateKey() != null) {
String pem = templateOptions.getLoginPrivateKey();
@ -126,13 +126,13 @@ public class ApplyNovaTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddT
}
}
boolean securityGroupExensionPresent = novaApi.getSecurityGroupExtensionForZone(zone).isPresent();
boolean securityGroupExtensionPresent = novaApi.getSecurityGroupExtensionForZone(zone).isPresent();
List<Integer> inboundPorts = Ints.asList(templateOptions.getInboundPorts());
if (templateOptions.getSecurityGroupNames().size() > 0) {
checkArgument(novaApi.getSecurityGroupExtensionForZone(zone).isPresent(),
"Security groups are required by options, but the extension is not available! options: %s",
templateOptions);
} else if (securityGroupExensionPresent && inboundPorts.size() > 0) {
} else if (securityGroupExtensionPresent && inboundPorts.size() > 0) {
String securityGroupName = namingConvention.create().sharedNameForGroup(group);
try {
securityGroupCache.get(new ZoneSecurityGroupNameAndPorts(zone, securityGroupName, inboundPorts));

View File

@ -411,7 +411,7 @@ public class Server extends Resource {
}
/**
* @return keyName if extension is present and there is a valur for this server
* @return keyName if extension is present and there is a value for this server
* @see KeyPairApi
*/
@Nullable

View File

@ -76,7 +76,7 @@ public class SimpleServerUsage {
protected String tenantId;
protected String flavorName;
protected Date instanceCreated;
protected Date instanceTerminiated;
protected Date instanceTerminated;
protected SimpleServerUsage.Status instanceStatus;
protected long uptime;
@ -145,10 +145,10 @@ public class SimpleServerUsage {
}
/**
* @see SimpleServerUsage#getInstanceTerminiated()
* @see SimpleServerUsage#getInstanceTerminated()
*/
public T instanceTerminiated(Date instanceTerminiated) {
this.instanceTerminiated = instanceTerminiated;
public T instanceTerminated(Date instanceTerminated) {
this.instanceTerminated = instanceTerminated;
return self();
}
@ -169,7 +169,7 @@ public class SimpleServerUsage {
}
public SimpleServerUsage build() {
return new SimpleServerUsage(instanceName, hours, flavorMemoryMb, flavorLocalGb, flavorVcpus, tenantId, flavorName, instanceCreated, instanceTerminiated, instanceStatus, uptime);
return new SimpleServerUsage(instanceName, hours, flavorMemoryMb, flavorLocalGb, flavorVcpus, tenantId, flavorName, instanceCreated, instanceTerminated, instanceStatus, uptime);
}
public T fromSimpleServerUsage(SimpleServerUsage in) {
@ -182,7 +182,7 @@ public class SimpleServerUsage {
.tenantId(in.getTenantId())
.flavorName(in.getFlavorName())
.instanceCreated(in.getInstanceCreated())
.instanceTerminiated(in.getInstanceTerminiated())
.instanceTerminated(in.getInstanceTerminated())
.instanceStatus(in.getInstanceStatus())
.uptime(in.getUptime());
}
@ -211,7 +211,7 @@ public class SimpleServerUsage {
@Named("started_at")
private final Date instanceCreated;
@Named("ended_at")
private final Date instanceTerminiated;
private final Date instanceTerminated;
@Named("state")
private final SimpleServerUsage.Status instanceStatus;
private final long uptime;
@ -219,7 +219,7 @@ public class SimpleServerUsage {
@ConstructorProperties({
"name", "hours", "memory_mb", "local_gb", "vcpus", "tenant_id", "flavor", "started_at", "ended_at", "state", "uptime"
})
protected SimpleServerUsage(String instanceName, double hours, double flavorMemoryMb, double flavorLocalGb, double flavorVcpus, String tenantId, String flavorName, Date instanceCreated, @Nullable Date instanceTerminiated, SimpleServerUsage.Status instanceStatus, long uptime) {
protected SimpleServerUsage(String instanceName, double hours, double flavorMemoryMb, double flavorLocalGb, double flavorVcpus, String tenantId, String flavorName, Date instanceCreated, @Nullable Date instanceTerminated, SimpleServerUsage.Status instanceStatus, long uptime) {
this.instanceName = checkNotNull(instanceName, "instanceName");
this.hours = hours;
this.flavorMemoryMb = flavorMemoryMb;
@ -228,7 +228,7 @@ public class SimpleServerUsage {
this.tenantId = checkNotNull(tenantId, "tenantId");
this.flavorName = checkNotNull(flavorName, "flavorName");
this.instanceCreated = checkNotNull(instanceCreated, "instanceCreated");
this.instanceTerminiated = instanceTerminiated;
this.instanceTerminated = instanceTerminated;
this.instanceStatus = checkNotNull(instanceStatus, "instanceStatus");
this.uptime = uptime;
}
@ -266,8 +266,8 @@ public class SimpleServerUsage {
}
@Nullable
public Date getInstanceTerminiated() {
return this.instanceTerminiated;
public Date getInstanceTerminated() {
return this.instanceTerminated;
}
public SimpleServerUsage.Status getInstanceStatus() {
@ -280,7 +280,7 @@ public class SimpleServerUsage {
@Override
public int hashCode() {
return Objects.hashCode(instanceName, hours, flavorMemoryMb, flavorLocalGb, flavorVcpus, tenantId, flavorName, instanceCreated, instanceTerminiated, instanceStatus, uptime);
return Objects.hashCode(instanceName, hours, flavorMemoryMb, flavorLocalGb, flavorVcpus, tenantId, flavorName, instanceCreated, instanceTerminated, instanceStatus, uptime);
}
@Override
@ -296,14 +296,14 @@ public class SimpleServerUsage {
&& Objects.equal(this.tenantId, that.tenantId)
&& Objects.equal(this.flavorName, that.flavorName)
&& Objects.equal(this.instanceCreated, that.instanceCreated)
&& Objects.equal(this.instanceTerminiated, that.instanceTerminiated)
&& Objects.equal(this.instanceTerminated, that.instanceTerminated)
&& Objects.equal(this.instanceStatus, that.instanceStatus)
&& Objects.equal(this.uptime, that.uptime);
}
protected ToStringHelper string() {
return Objects.toStringHelper(this)
.add("instanceName", instanceName).add("hours", hours).add("flavorMemoryMb", flavorMemoryMb).add("flavorLocalGb", flavorLocalGb).add("flavorVcpus", flavorVcpus).add("tenantId", tenantId).add("flavorName", flavorName).add("instanceCreated", instanceCreated).add("instanceTerminiated", instanceTerminiated).add("instanceStatus", instanceStatus).add("uptime", uptime);
.add("instanceName", instanceName).add("hours", hours).add("flavorMemoryMb", flavorMemoryMb).add("flavorLocalGb", flavorLocalGb).add("flavorVcpus", flavorVcpus).add("tenantId", tenantId).add("flavorName", flavorName).add("instanceCreated", instanceCreated).add("instanceTerminated", instanceTerminated).add("instanceStatus", instanceStatus).add("uptime", uptime);
}
@Override

View File

@ -87,7 +87,7 @@ public interface HostAggregateAsyncApi {
@Produces(MediaType.APPLICATION_JSON)
@WrapWith("aggregate")
ListenableFuture<HostAggregate> createAggregate(@PayloadParam("name") String name,
@PayloadParam("availability_zone") String availablityZone);
@PayloadParam("availability_zone") String availabilityZone);
/**
* @see HostAggregateApi#updateName

View File

@ -38,14 +38,14 @@ import org.jclouds.openstack.v2_0.services.Extension;
public interface SimpleTenantUsageApi {
/**
* Retrive tenant_usage for all tenants
* Retrieve tenant_usage for all tenants
*
* @return the set of TenantUsage reports
*/
Set<SimpleTenantUsage> listTenantUsages();
/**
* Retrive tenant_usage for a specified tenant
* Retrieve tenant_usage for a specified tenant
*
* @return the requested tenant usage
*/

View File

@ -150,7 +150,7 @@ public interface ServerApi {
* @param id
* id of the server
* @param options
* Optional paramaters to the rebuilding operation.
* Optional parameters to the rebuilding operation.
*/
void rebuildServer(String id, RebuildServerOptions... options);

View File

@ -65,7 +65,7 @@ public interface CommonSwiftClient {
* are supported with this request.
* <ul>
* <li>limit - For an integer value N, limits the number of results to at most N values.</li>
* <li>marker - Given a string value X, return Object names greater in value than the specied
* <li>marker - Given a string value X, return Object names greater in value than the specified
* marker.</li>
* <li>format - Specify either json or xml to return the respective serialized response.</li>
* </ul>

View File

@ -223,7 +223,7 @@ public class VCloudRestClientModule extends RestClientModule<VCloudClient, VClou
@Provides
@Singleton
@org.jclouds.vcloud.endpoints.VDC
protected Supplier<Map<String, String>> provideVDCtoORG(Supplier<Map<String, Org>> orgNameToOrgSuppier) {
protected Supplier<Map<String, String>> provideVDCtoORG(Supplier<Map<String, Org>> orgNameToOrgSupplier) {
return Suppliers2.compose(new Function<Map<String, Org>, Map<String, String>>() {
@Override
@ -236,7 +236,7 @@ public class VCloudRestClientModule extends RestClientModule<VCloudClient, VClou
}
return returnVal.build();
}
}, orgNameToOrgSuppier);
}, orgNameToOrgSupplier);
}

View File

@ -54,7 +54,7 @@ public class DhcpService {
}
/**
* default duration of a DCHP address lease
* default duration of a DHCP address lease
*
* @since vcloud api 0.9
*/
@ -64,7 +64,7 @@ public class DhcpService {
}
/**
* maximum duration of a DCHP address lease.
* maximum duration of a DHCP address lease.
*
* @since vcloud api 0.9
*/

View File

@ -54,7 +54,7 @@ public interface VAppClient {
Task deployVApp(URI href);
/**
* like {@link #deployVApp(URI)}, except deploy transistions to power on state
* like {@link #deployVApp(URI)}, except deploy transitions to power on state
*
*/
Task deployAndPowerOnVApp(URI href);

View File

@ -98,7 +98,7 @@ public class ListOptions implements Cloneable {
/**
* Place to continue a listing at. This must be the value returned from the last list object, as
* not all blobstores use lexigraphic lists.
* not all blobstores use lexicographic lists.
*/
public ListOptions afterMarker(String marker) {
this.marker = checkNotNull(marker, "marker");

View File

@ -37,7 +37,7 @@ import com.google.common.collect.Multimap;
* <p/>
* AzureQueueClient connection = // get connection
* Multimap<String,String> metadata = // ...
* boolean createdWithPublicAcl = connection.createQueue("containerName", withMetdata(metadata));
* boolean createdWithPublicAcl = connection.createQueue("containerName", withMetadata(metadata));
* <code> *
*
* @see <a href="http://msdn.microsoft.com/en-us/library/dd179466.aspx" />

View File

@ -142,7 +142,7 @@ public class TerremarkVCloudRestClientModule<S, A> extends RestClientModule<S, A
@Singleton
@org.jclouds.trmk.vcloud_0_8.endpoints.VDC
protected Supplier<Map<String, String>> provideVDCtoORG(
Supplier<Map<String, ? extends org.jclouds.trmk.vcloud_0_8.domain.Org>> orgNameToOrgSuppier) {
Supplier<Map<String, ? extends org.jclouds.trmk.vcloud_0_8.domain.Org>> orgNameToOrgSupplier) {
return Suppliers2.compose(
new Function<Map<String, ? extends org.jclouds.trmk.vcloud_0_8.domain.Org>, Map<String, String>>() {
@ -156,7 +156,7 @@ public class TerremarkVCloudRestClientModule<S, A> extends RestClientModule<S, A
}
return returnVal.build();
}
}, orgNameToOrgSuppier);
}, orgNameToOrgSupplier);
}

View File

@ -666,7 +666,7 @@ public class ResourceAllocationSettingData extends ManagedElement {
/**
* This property exposes specific assignment of resources. Each non-null
* value of the HostResource property shall be formated as a URI per RFC3986.
* value of the HostResource property shall be formatted as a URI per RFC3986.
* If this resource is modeled then a value should be a WBEM URI (DSP0207).
* If the resource is not modeled then see the appropriate profile. Profiles
* may further constrain the type of URI. A NULL value or empty array

View File

@ -478,7 +478,7 @@ public class VirtualSystemSettingData extends ManagedElement {
}
/**
* Filepath of a file where recovery relateded information of the virtual system is stored.Format
* Filepath of a file where recovery related information of the virtual system is stored.Format
* shall be URI based on RFC 2079.
*/
public URI getRecoveryFile() {
@ -517,7 +517,7 @@ public class VirtualSystemSettingData extends ManagedElement {
* virtualization platform. Note that the VirtualSystemIdentifier is not the hostname assigned to
* the operating system instance running within the virtual system, nor is it an IP address or
* MAC address assigned to any of its network ports. On create requests VirtualSystemIdentifier
* may contain implementation specific rules (like simple patterns or regular expresssion) that
* may contain implementation specific rules (like simple patterns or regular expression) that
* may be interpreted by the implementation when assigning a VirtualSystemIdentifier.
*/
public String getVirtualSystemIdentifier() {

View File

@ -186,7 +186,7 @@ public interface ComputeService {
/**
* nodes matching the filter are treated as a logical set. Using the resume command, you can save
* time by resumeing the nodes in parallel.
* time by resuming the nodes in parallel.
*
* <h4>note</h4>
*

View File

@ -24,7 +24,7 @@ import org.jclouds.scriptbuilder.InitScript;
import com.google.common.annotations.Beta;
/**
* An init script was submitted to a node for exectuion.
* An init script was submitted to a node for execution.
* <p/>
* Note this does not guarantee that there was success, nor that the init script started.
*

View File

@ -24,7 +24,7 @@ import org.jclouds.scriptbuilder.domain.Statement;
import com.google.common.annotations.Beta;
/**
* A statement was submitted to a node for exectuion.
* A statement was submitted to a node for execution.
* <p/>
* Note this does not guarantee that there was success, nor that the node
* received the statement.

View File

@ -69,7 +69,7 @@ public class ComputeServiceUtils {
return String.format("%s[%s]", resource.getStatus(), resource.getBackendStatus());
}
public static final Pattern DELIMETED_BY_HYPHEN_ENDING_IN_HYPHEN_HEX = Pattern.compile("(.+)-[0-9a-f]+");
public static final Pattern DELIMITED_BY_HYPHEN_ENDING_IN_HYPHEN_HEX = Pattern.compile("(.+)-[0-9a-f]+");
/**
* build a shell script that invokes the contents of the http request in bash.

View File

@ -160,7 +160,7 @@ public interface Constants {
/**
* Boolean property.
* <p/>
* allow mismatch between hostname and ssl cerificate. Set to true in DNS_based services like
* allow mismatch between hostname and ssl certificate. Set to true in DNS_based services like
* Amazon S3.
*/
public static final String PROPERTY_RELAX_HOSTNAME = "jclouds.relax-hostname";

View File

@ -59,7 +59,7 @@ public abstract class ForwardingCacheLoader<K, V> extends CacheLoader<K, V> {
/**
* A simplified version of {@link ForwardingCacheLoader} where subclasses can pass in an already
* constructed {@link CacheLoader} as the delegete.
* constructed {@link CacheLoader} as the delegate.
*
*/
@Beta

View File

@ -140,7 +140,7 @@ public class DynamicExecutors {
* A priority based thread factory, for all Thread priority constants:
* <tt>Thread.MIN_PRIORITY, Thread.NORM_PRIORITY, Thread.MAX_PRIORITY</tt>;
* <p/>
* This factory is used instead of Executers.DefaultThreadFactory to allow manipulation of
* This factory is used instead of Executors.DefaultThreadFactory to allow manipulation of
* priority and thread owner name.
*
* @param namePrefix
@ -173,7 +173,7 @@ public class DynamicExecutors {
* A priority based thread factory, for all Thread priority constants:
* <tt>Thread.MIN_PRIORITY, Thread.NORM_PRIORITY, Thread.MAX_PRIORITY</tt>;
* <p/>
* This factory is used instead of Executers.DefaultThreadFactory to allow manipulation of
* This factory is used instead of Executors.DefaultThreadFactory to allow manipulation of
* priority and thread owner name.
*
* @param priority

View File

@ -86,7 +86,7 @@ public abstract class BaseLifeCycle implements Runnable, LifeCycle {
*/
protected boolean shouldDoWork() {
try {
exceptionIfDepedenciesNotActive();
exceptionIfDependenciesNotActive();
} catch (IllegalStateException e) {
return false;
}
@ -112,14 +112,14 @@ public abstract class BaseLifeCycle implements Runnable, LifeCycle {
throw new IllegalStateException("Illegal state: " + this.status);
}
exceptionIfDepedenciesNotActive();
exceptionIfDependenciesNotActive();
this.status = Status.ACTIVE;
}
executorService.execute(this);
}
protected void exceptionIfDepedenciesNotActive() {
protected void exceptionIfDependenciesNotActive() {
for (LifeCycle dependency : dependencies) {
if (dependency.getStatus().compareTo(Status.ACTIVE) != 0) {
throw new IllegalStateException(String.format("Illegal state: %s for component: %s",

View File

@ -19,7 +19,7 @@
package org.jclouds.logging;
/**
* JCloud log abstraction layer.
* JClouds log abstraction layer.
* <p/>
* Implementations of logging are optional and injected if they are configured.
* <p/>

View File

@ -35,7 +35,7 @@ import java.util.HashMap;
import java.util.Map;
/**
* A {@link BundleListener} that listens for {@link BundleEvent} and searches for {@link org.jclouds.providers.ProviderMetadata} and {@ling org.jclouds.apis.ApiMetadata} in newly
* A {@link BundleListener} that listens for {@link BundleEvent} and searches for {@link org.jclouds.providers.ProviderMetadata} and {@link org.jclouds.apis.ApiMetadata} in newly
* installed Bundles. This is used as a workaround for OSGi environments where the ServiceLoader cannot cross bundle
* boundaries.
*/

View File

@ -22,7 +22,7 @@ import org.jclouds.javax.annotation.Nullable;
import org.jclouds.predicates.Validator;
/**
* Validates that the string paremeter doesn't have any uppercase letters.
* Validates that the string parameter doesn't have any uppercase letters.
*
* @see org.jclouds.rest.InputParamValidator
* @see org.jclouds.predicates.Validator

View File

@ -25,7 +25,7 @@ import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Unwraps the only value in a nested json reponse
* Unwraps the only value in a nested json response
*
* ex. { "foo" :"bar" } becomes "bar"
*

View File

@ -1047,7 +1047,7 @@ public class RestAnnotationProcessor<T> {
private Set<HttpRequestOptions> findOptionsIn(Method method, Object... args) throws ExecutionException {
ImmutableSet.Builder<HttpRequestOptions> result = ImmutableSet.builder();
for (int index : methodToIndexesOfOptions.get(method)) {
if (args.length >= index + 1) {// accomodate varargs
if (args.length >= index + 1) {// accommodate varargs
if (args[index] instanceof Object[]) {
for (Object option : (Object[]) args[index]) {
if (option instanceof HttpRequestOptions) {

View File

@ -145,7 +145,7 @@ public class Throwables2 {
if (aex != null)
throw aex;
propagate(e);
assert false : "exception should have propogated " + e;
assert false : "exception should have propagated " + e;
return null;
}

View File

@ -102,7 +102,7 @@ public class GetPath {
}
} finally {
// Close connecton
// Close connection
Closeables.closeQuietly(input);
}
}

View File

@ -98,7 +98,7 @@ public class SpeedTest {
runTests(queueName, messageCount, isEnterprise ? "enterprise" : "default", context);
} finally {
purgeQueues(queueName, context);
// Close connectons
// Close connections
context.close();
System.exit(0);
}

View File

@ -101,7 +101,7 @@ public class SpeedTest {
runTests(messageCount, isEnterprise ? "enterprise" : "default", context, queues);
} finally {
purgeQueues(queueName, context);
// Close connectons
// Close connections
context.close();
System.exit(0);
}

View File

@ -363,7 +363,7 @@ public class TransactionlessXmlSchedulingDataProcessorPlugin implements
file = new File(furl);
try {
f = url.openStream();
} catch (IOException ignor) {
} catch (IOException ignore) {
// Swallow the exception
}
}

View File

@ -363,7 +363,7 @@ public class TransactionlessXmlSchedulingDataProcessorPlugin implements
file = new File(furl);
try {
f = url.openStream();
} catch (IOException ignor) {
} catch (IOException ignore) {
// Swallow the exception
}
}

View File

@ -31,7 +31,7 @@ public class CarrenzaVCloudDirectorComputeServiceContextModule extends AbstractM
@Override
protected void configure() {
} // FIXME: enable when compute serivce done
} // FIXME: enable when compute service done
//extends VCloudDirectorComputeServiceContextModule {
//
// @Override

View File

@ -808,7 +808,7 @@ public class ResourceAllocationSettingData {
/**
* This property exposes specific assignment of resources. Each non-null
* value of the HostResource property shall be formated as a URI per RFC3986.
* value of the HostResource property shall be formatted as a URI per RFC3986.
* If this resource is modeled then a value should be a WBEM URI (DSP0207).
* If the resource is not modeled then see the appropriate profile. Profiles
* may further constrain the type of URI. A NULL value or empty array

View File

@ -589,7 +589,7 @@ public class VirtualSystemSettingData {
}
/**
* Filepath of a file where recovery relateded information of the virtual system is stored.
* Filepath of a file where recovery related information of the virtual system is stored.
*
* Format shall be String based on RFC-2079.
*/
@ -637,7 +637,7 @@ public class VirtualSystemSettingData {
* Note that the VirtualSystemIdentifier is not the hostname assigned to
* the operating system instance running within the virtual system, nor is it an IP address or
* MAC address assigned to any of its network ports. On create requests VirtualSystemIdentifier
* may contain implementation specific rules (like simple patterns or regular expresssion) that
* may contain implementation specific rules (like simple patterns or regular expression) that
* may be interpreted by the implementation when assigning a VirtualSystemIdentifier.
*/
public String getVirtualSystemIdentifier() {

View File

@ -154,7 +154,7 @@ public class Listener {
}
/**
* pecifies the protocol to use for routing traffic to back-end instances - HTTP, HTTPS, TCP, or
* Specifies the protocol to use for routing traffic to back-end instances - HTTP, HTTPS, TCP, or
* SSL. This property cannot be modified for the life of the LoadBalancer.
*/
public Protocol getInstanceProtocol() {

View File

@ -30,7 +30,7 @@ import com.google.common.collect.ImmutableSet;
/**
* Detailed information about a server such as cpuCores, hardware configuration
* (cpu, memory and disk), ip adresses, cost, transfer, os and more.
* (cpu, memory and disk), ip addresses, cost, transfer, os and more.
*
* @author Adrian Cole
* @see <a href= "https://customer.glesys.com/api.php?a=doc#server_details" />

View File

@ -9,11 +9,11 @@
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles required by applicable law or agreed to in writing,
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either expres or implied. See the License for the
* specific language governing permisions and limitations
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.jclouds.joyent.cloudapi.v6_5.suppliers;

View File

@ -41,7 +41,7 @@ public class BindVMSpecToXmlPayload extends BaseBindVMSpecToXmlPayload<VMSpec> {
return VMSpec.class.cast(arg);
}
}
throw new IllegalArgumentException("Iterbable<VMSpec> must be included in the argument list");
throw new IllegalArgumentException("Iterable<VMSpec> must be included in the argument list");
}
@Override

View File

@ -48,7 +48,7 @@ public class BindVMSpecsToXmlPayload extends BaseBindVMSpecToXmlPayload<Iterable
return specs;
}
}
throw new IllegalArgumentException("Iterbable<VMSpec> must be included in the argument list");
throw new IllegalArgumentException("Iterable<VMSpec> must be included in the argument list");
}
@Override

View File

@ -36,7 +36,7 @@ public class NetworkConnectionSection extends Section<NetworkConnectionSection>
*/
@Override
public Builder toBuilder() {
return builder().fromNetworkConectionSection(this);
return builder().fromNetworkConnectionSection(this);
}
public static class Builder extends Section.Builder<NetworkConnectionSection> {
@ -61,7 +61,7 @@ public class NetworkConnectionSection extends Section<NetworkConnectionSection>
return new NetworkConnectionSection(info, network, ipAddress);
}
public Builder fromNetworkConectionSection(NetworkConnectionSection in) {
public Builder fromNetworkConnectionSection(NetworkConnectionSection in) {
return fromSection(in).network(in.getNetwork()).ipAddress(in.getIpAddress());
}

View File

@ -29,7 +29,7 @@ public class VmNIC {
public String netmask;
public String gateway;
public Builder simpleDCHPNic() {
public Builder simpleDHCPNic() {
tag = "admin";
ip = "dhcp";
return this;

View File

@ -61,7 +61,7 @@ public class SmartOSComputeServiceAdapter implements ComputeServiceAdapter<VM, V
public NodeAndInitialCredentials<VM> createNodeWithGroupEncodedIntoName(String tag, String name, Template template) {
VmSpecification specification = VmSpecification.builder().alias(name)
.dataset(getHost().getDataSet(UUID.fromString(template.getImage().getProviderId())))
.nic(VmNIC.builder().simpleDCHPNic().build()).build();
.nic(VmNIC.builder().simpleDHCPNic().build()).build();
VM from = getHost().createVM(specification);
@ -74,7 +74,7 @@ public class SmartOSComputeServiceAdapter implements ComputeServiceAdapter<VM, V
List<VmSpecification> specificationList = new ArrayList<VmSpecification>();
VmSpecification vs = VmSpecification.builder().alias("Standard Joyent VM")
.nic(VmNIC.builder().simpleDCHPNic().build()).build();
.nic(VmNIC.builder().simpleDHCPNic().build()).build();
specificationList.add(vs);

View File

@ -71,5 +71,5 @@ public class CatalogReference extends Reference {
return super.equals(that);
}
// NOTE hashcode inheritted from Reference
// NOTE hashcode inherited from Reference
}

View File

@ -71,5 +71,5 @@ public class RoleReference extends Reference {
return super.equals(that);
}
// NOTE hashcode inheritted from Reference
// NOTE hashcode inherited from Reference
}

View File

@ -85,6 +85,6 @@ public class RoleReferences extends QueryResultReferences {
return super.equals(that);
}
// NOTE hashcode inheritted from QueryResultReferences
// NOTE hashcode inherited from QueryResultReferences
}

View File

@ -64,7 +64,7 @@ public class Task extends Entity {
@XmlEnumValue("queued") QUEUED("queued"),
/** The task is awaiting preprocessing or, if it is a blocking task, administrative action. */
@XmlEnumValue("preRunning") PRE_RUNNING("preRunning"),
/** The task is runnning. */
/** The task is running. */
@XmlEnumValue("running") RUNNING("running"),
/** The task completed with a status of success. */
@XmlEnumValue("success") SUCCESS("success"),

View File

@ -71,5 +71,5 @@ public class VAppReference extends Reference {
return super.equals(that);
}
// NOTE hashcode inheritted from Reference
// NOTE hashcode inherited from Reference
}

View File

@ -74,5 +74,5 @@ public class CatalogReferences extends QueryResultReferences {
return super.equals(that);
}
// NOTE hashcode inheritted from QueryResultReferences
// NOTE hashcode inherited from QueryResultReferences
}

View File

@ -484,7 +484,7 @@ public class QueryResultAdminVdcRecord extends QueryResultRecordType {
}
/**
* Shows wheter it is a system vDC
* Shows whether it is a system vDC
*/
public Boolean isSystemVdc() {
return isSystemVdc;

View File

@ -74,5 +74,5 @@ public class VAppReferences extends QueryResultReferences {
return super.equals(that);
}
// NOTE hashcode inheritted from QueryResultReferences
// NOTE hashcode inherited from QueryResultReferences
}

View File

@ -27,7 +27,7 @@ import org.jclouds.vcloud.director.v1_5.domain.MetadataValue;
import org.jclouds.vcloud.director.v1_5.domain.Task;
/**
* Provides synchronous access to {@linkl Metadata}.
* Provides synchronous access to {@link Metadata}.
*
* @see MetadataAsyncApi
* @author danikov

View File

@ -51,18 +51,18 @@ public class BridgedIfStringToBridgedIf implements Function<String, BridgedIf> {
checkNotNull(rawBridgedIf, "rawBridgedIf");
String transformedBridgedIf = transformRawBridgedIf(rawBridgedIf);
Map<String, String> bridegedIfMap = Splitter.on("\n")
Map<String, String> bridgedIfMap = Splitter.on("\n")
.omitEmptyStrings().withKeyValueSeparator("=")
.split(transformedBridgedIf);
return BridgedIf
.builder()
.name(getValueFromMap(bridegedIfMap, BRIDGED_IF_NAME))
.guid(getValueFromMap(bridegedIfMap, BRIDGED_IF_GUID))
.ip(getValueFromMap(bridegedIfMap, BRIDGED_IF_IP_ADDRESS))
.networkMask(getValueFromMap(bridegedIfMap, BRIDGED_IF_NETWORK_MASK))
.mediumType(getValueFromMap(bridegedIfMap, BRIDGED_IF_MEDIUM_TYPE))
.status(getValueFromMap(bridegedIfMap, BRIDGED_IF_STATUS))
.name(getValueFromMap(bridgedIfMap, BRIDGED_IF_NAME))
.guid(getValueFromMap(bridgedIfMap, BRIDGED_IF_GUID))
.ip(getValueFromMap(bridgedIfMap, BRIDGED_IF_IP_ADDRESS))
.networkMask(getValueFromMap(bridgedIfMap, BRIDGED_IF_NETWORK_MASK))
.mediumType(getValueFromMap(bridgedIfMap, BRIDGED_IF_MEDIUM_TYPE))
.status(getValueFromMap(bridgedIfMap, BRIDGED_IF_STATUS))
.build();
}

View File

@ -124,8 +124,8 @@ public class IMachineToSshClient implements Function<IMachine, SshClient> {
String network) {
// RetrieveActiveBridgedInterfaces
List<BridgedIf> activeBridgedInterfaces = new RetrieveActiveBridgedInterfaces(scriptRunnerFactory).apply(hostSupplier.get());
BridgedIf activeBrigedIf = checkNotNull(Iterables.get(activeBridgedInterfaces, 0), "activeBridgrdIf");
network = activeBrigedIf.getIpAddress();
BridgedIf activeBridgedIf = checkNotNull(Iterables.get(activeBridgedInterfaces, 0), "activeBridgedInterfaces");
network = activeBridgedIf.getIpAddress();
// scan ip
RunScriptOnNode ipScanRunScript = scriptRunnerFactory.create(

View File

@ -75,22 +75,22 @@ public class IMachineToVmSpec implements Function<IMachine, VmSpec> {
List<StorageController> controllers = Lists.newArrayList();
for (IStorageController iStorageController : machine.getStorageControllers()) {
Builder storageControlleBuiler = StorageController.builder();
Builder storageControllerBuilder = StorageController.builder();
for (IMediumAttachment iMediumAttachment : machine.getMediumAttachmentsOfController(iStorageController
.getName())) {
IMedium iMedium = iMediumAttachment.getMedium();
if(iMedium != null) {
if (iMedium.getDeviceType().equals(DeviceType.HardDisk)) {
storageControlleBuiler.attachHardDisk(HardDisk.builder().diskpath(iMedium.getLocation())
storageControllerBuilder.attachHardDisk(HardDisk.builder().diskpath(iMedium.getLocation())
.autoDelete(true).controllerPort(iMediumAttachment.getPort())
.deviceSlot(iMediumAttachment.getDevice().intValue()).build());
} else if (iMedium.getDeviceType().equals(DeviceType.DVD)) {
storageControlleBuiler.attachISO(iMediumAttachment.getPort(), iMediumAttachment.getDevice().intValue(),
storageControllerBuilder.attachISO(iMediumAttachment.getPort(), iMediumAttachment.getDevice().intValue(),
iMedium.getLocation());
}
}
}
controllers.add(storageControlleBuiler.name(iStorageController.getName()).bus(iStorageController.getBus())
controllers.add(storageControllerBuilder.name(iStorageController.getName()).bus(iStorageController.getBus())
.build());
}
return controllers;

View File

@ -242,11 +242,11 @@ public class NodeCreator implements Function<NodeSpec, NodeAndInitialCredentials
private String createHostOnlyIf() {
final String hostOnlyIfName;
ExecResponse createHostOnyResponse = runScriptOnNodeFactory
ExecResponse createHostOnlyResponse = runScriptOnNodeFactory
.create(host.get(), Statements.exec("VBoxManage hostonlyif create"),
runAsRoot(false).wrapInInitScript(false)).init().call();
String output = createHostOnyResponse.getOutput();
checkState(createHostOnyResponse.getExitStatus()==0);
String output = createHostOnlyResponse.getOutput();
checkState(createHostOnlyResponse.getExitStatus()==0);
checkState(output.contains("'"), "cannot create hostonlyif");
hostOnlyIfName = output.substring(output.indexOf("'") + 1, output.lastIndexOf("'"));
return hostOnlyIfName;

View File

@ -91,14 +91,14 @@ public class TakeSnapshotIfNotAlreadyAttached implements Function<IMachine, ISna
retries--;
if (retries == 0) {
logger.error(e,
"Problem creating snapshot (too many retries) %s (descripton: %s) from machine %s",
"Problem creating snapshot (too many retries) %s (description: %s) from machine %s",
snapshotName, snapshotDesc, machine.getName());
throw Throwables.propagate(e);
}
Thread.sleep(1000L);
continue;
}
logger.error(e, "Problem creating snapshot %s (descripton: %s) from machine %s", snapshotName,
logger.error(e, "Problem creating snapshot %s (description: %s) from machine %s", snapshotName,
snapshotDesc, machine.getName());
throw Throwables.propagate(e);
}

View File

@ -44,7 +44,7 @@ import com.google.common.base.Predicate;
import com.google.common.collect.Iterables;
/**
* Mounts the DVD with guest additions that was downloaded and attached as removeable storage. If no
* Mounts the DVD with guest additions that was downloaded and attached as removable storage. If no
* guest additions is attached to the vmspec then it is downloaded.
*
* @author David Alves

View File

@ -90,7 +90,7 @@ public class CallForImages implements Callable<Iterable<Image>> {
@Override
public String toString() {
return String.format("desribingImages(filter=%s,regions=%s)", filter, regions);
return String.format("describingImages(filter=%s,regions=%s)", filter, regions);
}
}

View File

@ -119,7 +119,7 @@ public class GoGridComputeServiceContextModule extends
/**
* Finds matches to required configurations. GoGrid's documentation only specifies how much RAM
* one can get with different instance types. The # of cores and disk sizes are purely empyrical
* one can get with different instance types. The # of cores and disk sizes are purely empirical
* and aren't guaranteed. However, these are the matches found: Ram: 512MB, CPU: 1 core, HDD: 28
* GB Ram: 1GB, CPU: 1 core, HDD: 57 GB Ram: 2GB, CPU: 1 core, HDD: 113 GB Ram: 4GB, CPU: 3
* cores, HDD: 233 GB Ram: 8GB, CPU: 6 cores, HDD: 462 GB (as of March 2010)

View File

@ -73,10 +73,10 @@ public class HPCloudObjectStorageBlobStoreContextModule extends SwiftBlobStoreCo
@Override
public URI load(String container) {
Optional<HPCloudCDNClient> cdnExension = client.getCDNExtension();
checkArgument(cdnExension.isPresent(), "CDN is required, but the extension is not available!");
Optional<HPCloudCDNClient> cdnExtension = client.getCDNExtension();
checkArgument(cdnExtension.isPresent(), "CDN is required, but the extension is not available!");
try {
ContainerCDNMetadata md = cdnExension.get().getCDNMetadata(container);
ContainerCDNMetadata md = cdnExtension.get().getCDNMetadata(container);
return md != null ? md.getCDNUri() : null;
} catch (HttpResponseException e) {
// TODO: this is due to beta status

View File

@ -49,9 +49,9 @@ public class EnableCDNAndCache implements Function<String, URI> {
@Override
public URI apply(String input) {
Optional<HPCloudCDNClient> cdnExension = sync.getCDNExtension();
checkArgument(cdnExension.isPresent(), "CDN is required, but the extension is not available!");
URI uri = cdnExension.get().enableCDN(input);
Optional<HPCloudCDNClient> cdnExtension = sync.getCDNExtension();
checkArgument(cdnExtension.isPresent(), "CDN is required, but the extension is not available!");
URI uri = cdnExtension.get().enableCDN(input);
cdnContainer.put(input, uri);
return uri;
}

View File

@ -27,7 +27,7 @@ import org.jclouds.openstack.swift.reference.SwiftHeaders;
/**
* Contains options supported in the REST API for the Create Container operation.
*
* This specifically enabes the Swift ACL for public reads using the 'X-Container-Read'
* This specifically enables the Swift ACL for public reads using the 'X-Container-Read'
* header. This should be refactored into the Swift API.
*
* @author Jeremy Daggett

View File

@ -22,7 +22,7 @@ import com.google.gson.annotations.SerializedName;
/**
* Options for a clone.
* TODO: test and add contructors.
* TODO: test and add constructors.
* @author Ivan Meredith
*/
public class CloneOptions implements PostData {

View File

@ -69,7 +69,7 @@ public class NewServerData implements PostData {
private String hostServerId;
/**
* These are the instantiation options.&nbsp; e.g. domain name, password, etc.&nbsp; Only provide
* these if you are not cloning a VPS (the vps_order_oid_to_clone setting). i.e. utually
* these if you are not cloning a VPS (the vps_order_oid_to_clone setting). i.e. mutually
* exclusive to instantiation_via_clone_options
*/
@SerializedName("instantiation_options")

View File

@ -23,7 +23,7 @@ import java.sql.Timestamp;
import com.google.gson.annotations.SerializedName;
/**
* Billing data. Need to make it inteface with jclouds.
* Billing data. Need to make it interface with jclouds.
* TODO: test
*
* @author Ivan Meredith

View File

@ -53,7 +53,7 @@ public class ResizeResult {
/**
* true if we made the resource changes.&nbsp; False if we did not
* make them, e.g. if we hit a billing issue, or if the host server
* did not have the resources to accomodate the change.
* did not have the resources to accommodate the change.
*/
@SerializedName("were_resources_changed")
private Boolean success;

View File

@ -37,7 +37,7 @@ import com.google.gson.annotations.SerializedName;
* However the special characters '.' and '-' may not be consecutive.
* Each alphanumeric string separated by a period is considered a label.
* Labels must begin and end with an alphanumeric character.
* Each label cannot be soley comprised of digits and must be between 1-63 characters in length.
* Each label cannot be solely comprised of digits and must be between 1-63 characters in length.
* The last label, the TLD (top level domain) must be between 2-6 alphabetic characters.
* The domain portion must consist of least one label followed by a period '.' then ending with the TLD label.
* Combining the hostname, followed by a period '.', followed by the domain gives the FQDN (fully qualified domain name),

View File

@ -91,7 +91,7 @@ public class TerremarkECloudRestClientModule extends
// VDC's
// this does not
// work well.
// Each VDC will have differnt network subnets. So we cannot assume the
// Each VDC will have different network subnets. So we cannot assume the
// default VDC's
// networks will
// work with non-default VDC's. So make PROPERTY_VCLOUD_DEFAULT_NETWORK

View File

@ -65,7 +65,7 @@ public class AddSessionTokenToRequest implements HttpRequestFilter {
}
// this is a hotspot when submitted concurrently, so be lazy.
// session tokens expire in 20 minutes of no use, but let's be a little paraniod and go 19
// session tokens expire in 20 minutes of no use, but let's be a little paranoid and go 19
public String createNewToken() {
authToken.set(authTokenProvider.get());
trigger.set(System.nanoTime() + System.nanoTime() + 19 * MINUTES);

View File

@ -353,7 +353,7 @@ public interface IBMSmartCloudClient {
* @param size
* The size of the new storage volume. Valid values may include
* SMALL, MEDIUM, and LARGE. Actual values may depend on the
* location used and may be discov- ered via the location service
* location used and may be discovered via the location service
* @param offeringID
* The offeringID which can be obtained from
* {@link #listStorageOfferings}

View File

@ -59,7 +59,7 @@ public class CreateInstanceOptions extends BaseHttpRequestOptions {
/**
*
* @param publicKeyName
* The public key to use for accessing the created instancee
* The public key to use for accessing the created instance
*/
public CreateInstanceOptions authorizePublicKey(String publicKeyName) {
checkNotNull(publicKeyName, "publicKeyName");