125 Commits

Author SHA1 Message Date
adriancole
1894b093a3 naming convention and warning feedback from issue #1511 2013-04-10 08:26:33 -07:00
adriancole
294807a103 Deprecated remaining code related to RestContext, RestApiMetadata, and RestClientModule for ApiContext, HttpApiMetadata, HttpApiModule 2013-04-09 23:17:03 -07:00
Adrian Cole
c23ea656c6 Merge pull request #1510 from jclouds/deprecate-async-1.6.x
Deprecate async 1.6.x
2013-04-09 22:42:07 -07:00
adriancole
9d57af1c2e deprecated all top-level Async apis and clients 2013-04-09 13:38:43 -07:00
Andrew Bayer
15046719eb Adding listNodesByIds across the board.
Adding to both ListNodesStrategy and ComputeServiceAdapter. When
possible, does a query explicitly for the specified IDs. When not,
falls back on either listDetailsOnNodesMatching (for ListNodesStrategy
implementations and in BaseComputeService) or filters listNodes output
itself (in ComputeServiceAdapter).
2013-04-08 20:02:32 -07:00
adriancole
a7bb80bd44 issue #1501: add Closeable annotation to all top-level apis 2013-04-08 18:06:33 -07:00
digitalsanctum
20375b9f91 relaxed vApp description parsing 2013-02-26 22:05:14 -05:00
Andrew Gaul
1f995879d6 Address FindBugs errors 2013-02-22 20:59:29 -08:00
adriancole
a51e6a8323 issue #1089 removed default timeout values so that those not using async will have simpler debugging 2013-01-29 04:19:00 -08:00
Adrian Cole
37e587ee51 changes related to centralizing construction of invokables 2013-01-19 17:17:30 -08:00
Adrian Cole
4980367991 centralize TypeToken creation 2013-01-19 11:31:55 -08:00
Adrian Cole
1ab3f0bb44 accomodate runtime credential changes 2013-01-15 22:26:50 -08:00
Adrian Cole
a49a060152 There can be only one retryable predicate; use Predicates2.retry decorator 2013-01-13 20:30:34 -08:00
Adrian Cole
3962b30808 updated to use standard guava Futures and ListenableFuture 2013-01-13 09:31:10 -08:00
Adrian Cole
45bb35971e replaced usage of checkNotEmpty with checkNotNull(emptyToNull 2013-01-12 15:20:11 -08:00
Adrian Cole
47c215c63c removed custom guava code for scoped binding and type params 2013-01-08 22:48:10 -08:00
Adrian Cole
3089111621 refactored internal code and tests to use FunctionalReflection 2013-01-07 00:36:31 -08:00
Adrian Cole
a17e8e25d7 removed need to support multiple @EndpointParam annotations 2013-01-04 11:31:06 -08:00
Adrian Cole
42c7037a59 removed unused code or duplicated code; moved code only used once to where its used 2013-01-01 00:08:34 -08:00
Adrian Cole
9745e9dc2f fixed covariance and warnings on ApiMetadata subclasses 2012-12-31 19:40:49 -08:00
Adrian Cole
2a3280fba5 removed AuthorizationException catch, as error handler already coerces auth exception to ResourceNotFound 2012-12-31 16:07:35 -08:00
Adrian Cole
13d8b9c402 replaced @Timeout w/explicit properties 2012-12-30 12:31:43 -08:00
Adrian Cole
9b1872c6ff removed custom code that duplicates functionality of guava fallbacks 2012-12-27 16:54:31 -08:00
Anton Panasenko
e293e65538 Filter null organization in VCloud API 2012-12-04 19:36:54 +02:00
Adrian Cole
878ec1bcab undid Serializable and added checkstyle InterfaceIsType:allowMarkerInterfaces=false 2012-11-18 09:23:44 -08:00
Andrew Gaul
b9e4543cdb Enforce no use of star imports via Checkstyle 2012-11-13 20:51:59 -08:00
Andrew Gaul
3ad36d25d5 Enforce no unnecessary parentheses via Checkstyle 2012-11-10 13:22:12 -08:00
Andrew Gaul
08b9982384 Enforce modifier order via Checkstyle
Also fix violations, via:

find -name \*.java | xargs sed -i 's/final static/static final/'
find -name \*.java | xargs sed -i 's/static private/private static/'
find -name \*.java | xargs sed -i 's/static abstract/abstract static/'
2012-11-01 20:01:30 -07:00
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
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
bcd3d50ad6 Issue 956:add getImage by id to ComputeService 2012-06-04 16:54:49 -07: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