This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PathNode { | |
PathNode pre; | |
String word; | |
int pathLength; | |
PathNode(PathNode pre, String word, int len) { | |
this.pre = pre; | |
this.word = word; | |
this.pathLength = len; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PathNode { | |
PathNode pre; | |
String word; | |
int pathLength; | |
PathNode(PathNode pre, String word, int len) { | |
this.pre = pre; | |
this.word = word; | |
this.pathLength = len; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java -cp ".:lib/*" JCloudsSwift | |
Exception in thread "main" com.google.common.util.concurrent.UncheckedExecutionException: java.lang.RuntimeException: java.util.concurrent.TimeoutException: Timeout waiting for task. | |
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2258) | |
at com.google.common.cache.LocalCache.get(LocalCache.java:3990) | |
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3994) | |
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4878) | |
at org.jclouds.openstack.keystone.v2_0.config.KeystoneAuthenticationModule$2.get(KeystoneAuthenticationModule.java:206) | |
at org.jclouds.openstack.keystone.v2_0.config.KeystoneAuthenticationModule$2.get(KeystoneAuthenticationModule.java:202) | |
at org.jclouds.openstack.keystone.v2_0.suppliers.LocationIdToURIFromAccessForTypeAndVersion.get(LocationIdToURIFromAccessForTypeAndVersion.java:97) | |
at org.jclouds.openstack.keystone.v2_0.suppliers.LocationIdToURIFromAccessForTypeAndVersion.get(LocationIdToURIFromAcces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Set; | |
import java.lang.Thread.UncaughtExceptionHandler; | |
import org.jclouds.ContextBuilder; | |
import org.jclouds.compute.ComputeService; | |
import org.jclouds.compute.ComputeServiceContext; | |
import org.jclouds.compute.domain.ComputeMetadata; | |
import org.jclouds.openstack.nova.v2_0.features.ImageApi; | |
import org.jclouds.openstack.nova.v2_0.domain.Image; | |
import org.jclouds.rest.RestContext; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Properties; | |
import org.jclouds.ContextBuilder; | |
import org.jclouds.blobstore.BlobStore; | |
import org.jclouds.blobstore.BlobStoreContext; | |
import org.jclouds.openstack.swift.CommonSwiftAsyncClient; | |
import org.jclouds.openstack.swift.CommonSwiftClient; | |
import org.jclouds.openstack.swift.options.CreateContainerOptions; | |
import org.jclouds.rest.RestContext; | |
import org.jclouds.openstack.swift.domain.ContainerMetadata; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Properties; | |
import org.jclouds.ContextBuilder; | |
import org.jclouds.blobstore.BlobStore; | |
import org.jclouds.blobstore.BlobStoreContext; | |
import org.jclouds.openstack.swift.CommonSwiftAsyncClient; | |
import org.jclouds.openstack.swift.CommonSwiftClient; | |
import org.jclouds.openstack.swift.options.CreateContainerOptions; | |
import org.jclouds.rest.RestContext; | |
import org.jclouds.openstack.swift.domain.ContainerMetadata; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ java -cp ".:lib/*" JCloudsSwift | |
Exception in thread "main" java.util.NoSuchElementException: no endpoints for apiType object-store are of version 1.0, or version agnostic: [Service{type=object-store, name=swift, endpoints=[Endpoint{versionId=67c8c6f39bff4483bb35c6c5da2832f6, region=RegionOne, publicURL=http://67.23.43.219:8080/v1/AUTH_f0f19bb840f748539dc406ad79562ef1, internalURL=http://67.23.43.219:8080/v1/AUTH_f0f19bb840f748539dc406ad79562ef1, adminURL=http://67.23.43.219:8080, versionInfo=null, versionList=null, tenantId=null}]}] | |
at org.jclouds.openstack.keystone.v2_0.suppliers.LocationIdToURIFromAccessForTypeAndVersion.get(LocationIdToURIFromAccessForTypeAndVersion.java:89) | |
at org.jclouds.openstack.keystone.v2_0.suppliers.LocationIdToURIFromAccessForTypeAndVersion.get(LocationIdToURIFromAccessForTypeAndVersion.java:42) | |
at org.jclouds.util.Suppliers2$2.get(Suppliers2.java:68) | |
at org.jclouds.rest.internal.RestAnnotationProcessor.getEndpointFor(RestAnnotationProcessor.java:771) | |
at org.jclouds.r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ java -cp ".:lib/*" JCloudsOpenStack | |
- >> "{"auth":{"passwordCredentials":{"username":"demo","password":"devstack"},"tenantName":"demo"}}" | |
- >> POST http://67.23.43.219:5000/v2.0/tokens HTTP/1.1 | |
- >> Accept: application/json | |
- >> Content-Type: application/json | |
- >> Content-Length: 94 | |
- << HTTP/1.1 200 OK | |
- << Vary: X-Auth-Token | |
- << Date: Fri, 16 Nov 2012 21:36:06 GMT | |
- << Connection: keep-alive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ java -cp ".:lib/*" JCloudsOpenStack | |
- >> "{"auth":{"passwordCredentials":{"username":"demo","password":"devstack"},"tenantName":"demo"}}" | |
- >> POST http://166.78.5.234:5000/v2.0/tokens HTTP/1.1 | |
- >> Accept: application/json | |
- >> Content-Type: application/json | |
- >> Content-Length: 94 | |
- << HTTP/1.1 200 OK | |
- << Vary: X-Auth-Token | |
- << Date: Wed, 14 Nov 2012 15:17:20 GMT | |
- << Connection: keep-alive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
saasbook@saasbook:~/jclouds-test$ ls | |
CreateContainer.class JCloudsOpenStack$1.class JCloudsOpenStack.java~ JCloudsTest.java project.clj | |
CreateContainer.java JCloudsOpenStack.class JCloudsTest$1.class lein.sh | |
CreateContainer.java~ JCloudsOpenStack.java JCloudsTest.class lib | |
saasbook@saasbook:~/jclouds-test$ java -cp ".:lib/*" JCloudsOpenStack | |
java.lang.reflect.UndeclaredThrowableException | |
at $Proxy62.getConfiguredZones(Unknown Source) | |
at JCloudsOpenStack.init(JCloudsOpenStack.java:54) | |
at JCloudsOpenStack.main(JCloudsOpenStack.java:26) | |
Caused by: java.lang.reflect.InvocationTargetException |
NewerOlder