66 Commits

Author SHA1 Message Date
Adrian Cole
878ec1bcab undid Serializable and added checkstyle InterfaceIsType:allowMarkerInterfaces=false 2012-11-18 09:23:44 -08:00
Andrew Gaul
3ad36d25d5 Enforce no unnecessary parentheses via Checkstyle 2012-11-10 13:22:12 -08:00
Andrew Gaul
cca02ae02d Improve use of Splitter.omitEmptyStrings 2012-11-07 22:30:52 -08:00
Andrew Gaul
3d191253ec Enforce use of Collection helpers via Checkstyle
This ensures that we do not repeat the type name.  Some instances remain
due to auto-generated code in dmtf/cim/Cim*.
2012-11-04 20:45:49 -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
3d2504e1e4 updated cloudsigma tests 2012-09-16 23:40:10 -07:00
Adrian Cole
c7f35d3bb1 removed invalid @Nullable usage and also usage of javax package usage 2012-08-11 20:59:16 -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
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
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
5c647df129 Issue 938:TemplateBuilderSpec 2012-05-21 02:45:25 -06:00
Adrian Cole
8e27b180aa Merge pull request #632 from andrewgaul/static-block
Throw exceptions in static blocks
2012-05-14 10:22:47 -07:00
Andrew Gaul
d45404a338 Throw exceptions in static blocks
This reports any errors instead of silently ignoring them.
2012-05-14 09:37:20 -07: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
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
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
3ebdb89e1d template changes in cloudsigma 2012-03-13 14:43:37 -07:00
Adrian Cole
38fd18e8f0 cloudsigma related changes for Issue 826 2012-02-03 00:29:37 -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
andreisavu
88400f6441 Add TemplateOptions to create SSD Drives on CloudSigma providers 2012-01-15 21:58:12 +02:00
Adrian Cole
99fb37f6cf refactored LiveTest code to share property initialization 2012-01-05 17:51:03 -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
a80e1b07e6 updated to guava 11 cache miss behavior 2011-12-22 03:21:54 -08:00
Adrian Cole
cd9b140ad0 Merge pull request #273 from alasdairhodge/CloudSigma-SSD-support
CloudSigma support for drive tags and SSD affinity
2011-12-21 18:41:23 -08:00
Alasdair Hodge
601922a8e4 Specify tags to cloneDrive() and assert they are retrieved 2011-12-22 01:11:17 +00:00
Alasdair Hodge
91c0492e6a Increase timeout on potentially-lengthy cloneDrive() operation 2011-12-22 00:58:15 +00:00
Alasdair Hodge
df8d529235 Include tags in existing toString() methods on Drive and subclasses 2011-12-22 00:09:27 +00:00
Alasdair Hodge
5ef0d04448 update resource-based drive <-> map tests 2011-12-21 14:41:23 +00:00
Alasdair Hodge
7e0244edae Unit test tags as part of map <-> drive conversions 2011-12-21 14:10:36 +00:00
Alasdair Hodge
5dedb8b81c builders perform necessary casting of return type when setting tags 2011-12-21 14:09:12 +00:00
Alasdair Hodge
422bf8371a More thorough testing of tags/affintity interaction 2011-12-21 13:51:23 +00:00
Alasdair Hodge
5f63768d4d Update CloneDriveOptions unit test to include tags and affinity 2011-12-21 13:04:44 +00:00