Commit Graph

191 Commits

Author SHA1 Message Date
Andrew Gaul 93d69ece2b Enforce newline at end of file via Checkstyle
Also address all warnings, via:

find -name \*.java | while read i; do if [ x`tail -c 1 $i` != x"" ]; then echo >> $i; fi; done
2012-10-29 22:12:44 -07:00
Andrew Gaul 709ca69a2d Enforce that all imports are used via Checkstyle
Also remove all unused imports, via:

mvn checkstyle:checkstyle -Dcheckstyle.output.file=/dev/stdout -Dcheckstyle.output.format=plain | tac | awk -v FS=: '/warning/{print "sed -i " $2 "d " $1}' | while read i; do $i; done
2012-10-29 17:11:08 -07:00
Andrew Gaul 28d7a6f143 Prefer immutable over empty collections
The former does not create an object when calling iterator(), as
discussed here:

https://groups.google.com/d/msg/jclouds-dev/l7BviKDXreA/mP6Ow_RYxIgJ
2012-10-20 15:35:29 -07:00
Adrian Cole 28d766b9df bumped to 1.6.0-SNAPSHOT 2012-09-17 01:43:52 -07:00
Adrian Cole bb5927515e Issue 934: templateOptions.tags,userMetadata for vcloud 2012-08-01 16:56:19 -07:00
Andrew Gaul 8ed0e28e68 Spelling corrections 2012-07-26 22:39:35 -07:00
Adrian Cole 5bd9e3ad9f Issue 1028:vCloud Director 1.5: require x-vcloud-authorization header on vcloud api 2012-07-23 19:28:58 -07:00
Andrew Gaul 985cccff9a Prefer valueOf over explicit object creation
This allows use of cached values.  Patched with:

find -name \*.java | xargs sed -i 's/new Boolean(false)/Boolean.FALSE/g'
find -name \*.java | xargs sed -i 's/new Boolean(true)/Boolean.TRUE/g'
find -name \*.java | xargs sed -i 's/new Boolean(/Boolean.valueOf(/g'
find -name \*.java | xargs sed -i 's/new Integer(/Integer.valueOf(/g'
find -name \*.java | xargs sed -i 's/new Long(/Long.valueOf(/g'
2012-07-22 21:01:46 -07:00
Andrew Gaul a40983a39d Prefer InputSupplier helpers
These ensure that inputs are closed properly.

Updated with: find -name \*.java | xargs sed -i
's/toStringAndClose(\(.*\)\.getInput())/toString(\1)/'
2012-07-18 17:42:48 -07:00
Adrian Cole 05fd64af44 cleaned up http builders and expect tests 2012-07-15 01:50:38 -07:00
Adrian Cole 397231284d vcloud tidies 2012-07-12 18:09:14 -07:00
Adrian Cole ead47d9893 tidied toString on vCloud 2012-07-11 20:17:13 -07:00
Adrian Cole 65b9955abe Issue 1019:add VCloudTemplateOptions.parentNetwork, bridgeMode 2012-07-11 19:16:57 -07:00
Adrian Cole fb98ce82f7 cleanup of module binding, clarity in toStrings, reduced wrapper depth for memoized sets 2012-07-02 19:36:27 -07:00
Adrian Cole 1c6e2c64d3 Merge pull request #682 from aledsage/issue-994-vcloud-npe-parsing-image
Issue 994: fix vcloud sax parsing of namespaces
2012-06-21 16:24:47 -07:00
Aled Sage 8e1542e90a Issue 995: handle illegal argument in vcloud images 2012-06-21 21:16:39 +01:00
Aled Sage cf422fb683 Issue 994: fix vcloud sax parsing of namespaces
Handles when xml tags are qualified with and without xmlns.
2012-06-21 15:36:40 +01:00
Adrian Cole d980b4fd42 changed test poms to use provider.template and provider.ec2-template accordingly 2012-06-15 23:35:10 -04:00
Adrian Cole bcd3d50ad6 Issue 956:add getImage by id to ComputeService 2012-06-04 16:54:49 -07:00
Ioannis Canellos b078adc3ce Removed fragments and dynamic imports. Added centralized control of the maven-bundle-plugin. 2012-06-03 19:41:54 +03:00
Adrian Cole 96773b8a1b Issue 952:add status field to image 2012-05-30 21:22:10 -07:00
Adrian Cole 07c2c24721 Issue 949:Introduce: ComputeMetadataIncludingStatus; Deprecate NodeState -> NodeMetadata.Status 2012-05-29 20:41:10 -07:00
Adrian Cole d0947bbda0 fixed NPE 2012-05-21 02:45:34 -06:00
Adrian Cole 5c647df129 Issue 938:TemplateBuilderSpec 2012-05-21 02:45:25 -06:00
Adam Lowe cc016d5dc8 Adjusting MapBinder to take Map<String,Object> so BindToJsonPayload can bind objects annotated with PayloadParam correctly 2012-05-14 13:09:22 +01:00
Adrian Cole 19390ea87d Merge pull request #602 from andrewgaul/propagate-or-null
Eliminate Throwables2.propagateOrNull
2012-05-02 15:21:30 -07:00
Andrew Gaul 74440a7a87 Eliminate Throwables2.propagateOrNull
Throwables.propagate always propagates the Throwable; there is no need
to return null.
2012-05-02 13:51:36 -07:00
Andrew Gaul 646f8d8b13 Improve use of Throwables.propagate
Throwing the return value removes some unneeded asserts and return
statements.  Also remove some useless and misspelled propogate
wrappers.
2012-05-02 11:05:22 -07:00
Matt Stephenson 381851b8ab Remove IPSocket class, replace with Guava's HostAndPort class. 2012-04-25 17:52:01 -07:00
Adrian Cole df7d2acbb4 wrapper -> view 2012-04-23 19:14:36 -07:00
Adrian Cole 886d2cafb9 created base Context class with ProviderMetadata and Identity 2012-04-23 16:16:51 -07:00
Adrian Cole dab1dd69fc fix covariance/assignability in RestContext<? extends Client> subclasses 2012-04-18 15:05:39 -07:00
Adrian Cole 5ea29cbbb7 Merge pull request #560 from danikov/covariant-future-iterables
covariant compatible version of futureIterables
2012-04-18 07:35:23 -07:00
danikov fff1c7dc2d make FutureIterables covariant compatible + update tests 2012-04-18 13:06:54 +01:00
Adrian Cole 0b59dea073 removed ContextBuilder subclasses; added unwrap; undid generic params 2012-04-16 00:44:20 -07:00
Andrew Donald Kennedy a919985b2b Fix broken build due to ApiMetadata changes 2012-04-12 23:11:00 +01:00
Adrian Cole 23cb01f977 refactor PropertiesBuilder and related types into ApiMetadata and ProviderMetadata, and update all usage 2012-04-11 19:47:09 -06:00
Andrew Gaul b47860afc1 Use inference to elide duplicated type parameters
Found with:
grep 'Builder.*<.*>.*Immutable.*<.*>.*builder();'
2012-04-08 22:32:04 -07:00
Adrian Cole 764e0907f7 Issue 657:ApiMetadata 2012-04-01 18:43:31 -07:00
Adrian Cole 49e475edcd Issue 888: consolidate code that addresses naming conventions, using hyphen as default delimiter 2012-03-28 03:37:54 -04:00
Adrian Cole 5c6ce9f081 organize imports 2012-03-28 03:37:48 -04:00
Adrian Cole 343470d0a5 removed deprecated RunScriptOptions & TemplateOptions 2012-03-28 03:37:43 -04:00
Adrian Cole 2373f89c78 cleaned up toString/equals/hashCode in base options objects 2012-03-21 19:11:49 -07:00
Adrian Cole 74891be16f no need to check for writable catalog on vcloud 1.5 2012-03-15 22:39:34 -07:00
Adrian Cole 0365e58566 Issue 873:NPE on InstantiateVAppTemplate 2012-03-15 22:38:46 -07:00
Adrian Cole dadd4f6515 changed bindings that imply i/o to Supplier<X> 2012-02-26 13:54:43 +02:00
Adrian Cole fa7f81c4e7 Issue 847:version updates 2012-02-23 15:11:05 +02:00
Ioannis Canellos 5490b3068c [842] Added required import packages to cloudfiles api bundle. Improved import packages in all bundles. 2012-02-17 00:49:39 +02:00
Adrian Cole fe4d148528 updated current version to 1.5.0-SNAPSHOT 2012-02-04 11:06:07 -08:00
Adrian Cole c388fc41b4 Issue 826: removed eager supplier of @Provider endpoint 2012-02-03 13:51:26 -08:00
Adrian Cole dc78a443de vcloud related changes for Issue 826 2012-02-03 00:29:31 -08:00
Adrian Cole abeffc1119 Issue 824:add field for hypervisor 2012-01-30 22:52:35 -08:00
Adrian Cole 55975af60d Issue 820:Move off PropertiesBuilder for rocoto 2012-01-29 23:11:37 +08:00
Adrian Cole f93c495c43 refactored to use consistent setup*Properties methods like expect tt tests 2012-01-29 20:36:24 +08:00
Ioannis Canellos cfe88031a2 Updated OSGi package imports for compute providers & apis. 2012-01-18 15:02:16 +02:00
Adrian Cole 3df052565f updated current version to 1.4.0-SNAPSHOT 2012-01-16 13:08:32 -08:00
Adrian Cole 0b40a3b280 hostname is the same as vm name in vCloud 2012-01-15 02:14:57 -08:00
Adrian Cole 87ced325e1 Issue 710: support vCloud Director 1.5 via vCloud 1.0 API 2012-01-15 02:14:53 -08:00
Adrian Cole 16a973c08c handle case when image location is null (ex. not scoped to a location)
work on templates where image and hardware have no location

better warning messages on templates we cannot use

lookup images less often in vcloud
2012-01-15 02:12:14 -08:00
Adrian Cole ea81b058a4 Issue 710: added expect test for vCloud 2012-01-12 19:24:30 -08:00
Adrian Cole c964b207a7 Issue 710: public templates are now readable 2012-01-12 19:23:39 -08:00
Adrian Cole 61f2ff6468 vcloud director 1.5 adds suffix of ;1.0 on content type 2012-01-12 19:06:06 -08:00
Adrian Cole 260c23170b Issue 710:customize is not supported on vCloud 1.0 2012-01-12 19:04:12 -08:00
Adrian Cole e46ee9fbc4 Issue 807:update license headers 2012-01-09 10:54:57 -08:00
Adrian Cole f06e6982eb Issue 800:introduce property for build version 2012-01-05 17:51:55 -08:00
Adrian Cole 42137677da Issue 801:fix inconsistency in test property test.provider.apiversion set in pom.xml -> api-version 2012-01-05 13:09:45 -08:00
Adrian Cole 2ce0825e62 vcloud test stabilization 2011-12-22 04:34:13 -08:00
Adrian Cole 4bbb9a9cc1 fixed problem where passwords in the vapptemplate were being exposed. these are always reset on instantiate, so no use exposing them. in this case they were masking the real vapp pass 2011-12-22 03:19:08 -08:00
Adrian Cole 535c035ae6 refactored and slimmed vcloud compute impl 2011-12-22 02:18:51 -08:00
Adrian Cole 302321ce18 Issue 730: removed deprecated vcloud methods 2011-12-21 18:46:58 -08:00
Adrian Cole f9b38f646c Issue 730: removed deprecated methods from ComputeService RunScript/TemplateOptions SshClient.Factory and replaced occurences of Credentials with LoginCredentials whereever possible 2011-12-20 23:19:45 -08:00
Andrew Donald Kennedy e4c8789917 The template entries in a catalog may have different names to the acutal VAppTemplates, so check the URIs 2011-12-20 18:29:13 +00:00
Andrew Donald Kennedy 1b10e19e0b The deleteVAppTemplate method returns Task XML data 2011-12-20 18:29:10 +00:00
Adrian Cole 4a5af1e7a5 Issue 441: added new type: LoginCredentials, and (jclouds|provider).image.(login-user|authenticate-sudo) context properties 2011-11-21 11:00:12 +02:00
Adrian Cole 4329129c25 Issue 750:property to set the image id for the default template 2011-11-14 19:25:46 +02:00
Adrian Cole 69467b04e3 Issue 752:move off deprecated systemProperties to systemPropertyVariables in surefire 2011-11-14 19:25:45 +02:00
Adrian Cole c08a7884bd Issue 750:property to set the image id for the default template 2011-11-11 19:48:28 +02:00
Adrian Cole 1cf2be9b09 Merge pull request #127 from jsonking/master
Issue 695: Updated test url and refactored credentials code into singe location.
2011-11-10 00:52:53 -08:00
Andrew Phillips d3d361c4eb Removed duplicate dependencies com.jamesmurty.utils:java-xmlbuilder and org.jclouds:jclouds-core from vCloud 2011-11-10 01:53:32 -05:00
Jason King 98e7c6047c Refactored frequently repeated service config (provider,credential etc) into new class BaseVersionedServiceLiveTest and used it in BaseCompute, BaseTerremarkClient and BaseVCloudClient live tests 2011-11-09 15:27:46 +00:00
Andrew Phillips 893171ba59 Fixed licence header (thanks, Andrei!) 2011-10-29 11:53:30 -04:00
Andrew Phillips 0e06eedcdb Ignoring the tests that cause issue 402 on Windows for the 1.0.0 release 2011-10-29 11:53:27 -04:00
Adrian Cole dd89ad3068 backfilled tests and refactored most of org.jclouds.location.suppliers package 2011-10-23 04:38:25 +02:00
Adrian Cole 552242e863 moved to 1.3.0-SNAPSHOT 2011-10-16 12:26:31 -07:00
Adrian Cole 842da34982 Issue 713:support userMetadata in createNodesInGroup in byon, cloudservers, and aws-ec2 2011-10-07 00:34:44 -07:00
Richard Downer bc99e9e7ee Update unit tests for deleteVApp 2011-10-05 16:22:43 +01:00
Richard Downer 7f9973e037 VAppAsyncClient.deleteVApp (deprecated API) requires @Consume(TASK_XML) annotation 2011-10-05 14:20:05 +01:00
Richard Downer 148339858c VAppAsyncClient.deleteVApp requires @Consume(TASK_XML) annotation 2011-10-05 13:38:05 +01:00
Guillaume Nodet 87dd23551c Avoid using a non official jsr and use our own annotations 2011-09-16 17:52:12 +02:00
Adrian Cole 960bfe709f Issue 663:Update license headers to jclouds, Inc. and setup NOTICE file 2011-08-16 18:14:30 -07:00
Adrian Cole 0a8f38b90e bumped snapshot version to 1.2.0-SNAPSHOT 2011-08-05 04:09:23 +01:00
Adrian Cole 0dfecb0a47 stabilizing vcloud tests 2011-08-04 11:24:46 +02:00
Adrian Cole e2397d6302 stabilize vcloud-based providers for 1.1.0 release 2011-08-03 10:13:54 -07:00
Adrian Cole edc1b10610 Issue 637: moved to sshj and tested on aws-ec2 gogrid cloudservers elastichosts-lon-p trmk-* 2011-07-25 03:59:01 -07:00
Adrian Cole 6f6b11c45a revised terremark implementation to only include the minimum vCloud vocabulary it needs 2011-07-24 21:39:23 +10:00
Adrian Cole 560aa95e90 flattened vCloud classes now that vcloud 0.8 doesn't need to share hierarchy with 1.0 2011-07-24 13:37:03 +10:00
Adrian Cole 81bf7268be Issue 487: rimu returns consistent hostname, but vcloud does not 2011-07-23 23:20:13 +10:00
Adrian Cole 323e775a08 Issue 634: folded vcloud-common into vcloud and trmk-common 2011-07-23 12:06:04 +10:00
Adrian Cole 2ac2524baa Issue 628: fixed error on vCloud find network 2011-07-23 10:17:09 +10:00
Adrian Cole 6928082674 Issue 487:Add hostname property to nodemetadata 2011-07-22 21:21:33 +10:00