Commit Graph

6665 Commits

Author SHA1 Message Date
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
Adrian Cole b517bc79c7 Merge pull request #736 from abayer/master
Allow negative cpuUsed values for Cloudstack virtual machines
2012-07-22 14:38:30 -07:00
Andrew Bayer d585ace712 Cloudstack VirtualMachines can have negative cpuUsed values for some reason 2012-07-22 12:23:22 -07:00
Adrian Cole 4c31fb65f1 Merge pull request #735 from dralves/nodepool
issue 558 - corrected final bug nodepool is working
2012-07-20 16:11:14 -07:00
David Ribeiro Alves b4c6d01eba removed dead code 2012-07-20 22:24:45 +01:00
David Ribeiro Alves b45fad87d8 corrected destroyNodes bug 2012-07-20 22:23:16 +01:00
Andrew Phillips 3654527302 Fixed compilation failures caused by 70fa74df1a 2012-07-19 16:00:14 -04:00
Adrian Cole 682f047bad Merge pull request #732 from andrewgaul/local-blobstore-constructors
Shuffle blobstore parameters to match superclass
2012-07-19 12:14:08 -07:00
Adrian Cole 0fb6b12c56 Merge pull request #733 from andrewgaul/remove-encode-string
Remove encodeString() and encodeString(String)
2012-07-19 12:11:00 -07:00
Andrew Gaul 27e61f73e9 Remove encodeString() and encodeString(String)
These are not used in jclouds and callers should use
String.getBytes(Charset) directly, preferably with Guava Charsets
constants.
2012-07-19 10:55:23 -07:00
Andrew Gaul 870ed0cdb3 Shuffle blobstore parameters to match superclass
Also remove unused injected parameter.
2012-07-19 07:17:02 -07:00
Adrian Cole c4dde78b0c Merge pull request #725 from dralves/nodepool
issue 558 - nodepool
2012-07-19 04:38:59 -07:00
Adrian Cole 70fa74df1a Merge pull request #731 from andrewgaul/input-supplier
Prefer InputSupplier helpers
2012-07-19 04:34:25 -07:00
Adrian Cole aec16c184a Merge pull request #730 from andrewgaul/local-storage-strategy-injection
Inject TransientStorageStrategy
2012-07-19 04:33:53 -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
Andrew Gaul a2d5a48f3f Inject TransientStorageStrategy
Remove some unneeded checkNotNull as Guice does not inject null
parameters.
2012-07-18 16:02:07 -07:00
Adrian Cole 4ac8770e66 Merge pull request #727 from jclouds/fix-issues-building-on-win
Fix issues building on Windows
2012-07-18 15:29:48 -07:00
Adrian Cole 6cb318ece8 Merge pull request #728 from andrewgaul/local-storage-strategy-odds-and-ends
Tie up odds and ends from LocalStorageStrategy
2012-07-18 15:28:24 -07:00
Adrian Cole da86d52c65 Merge pull request #729 from andrewgaul/readme
Improve README blurb
2012-07-18 15:27:51 -07:00
Andrew Gaul cd1de16668 Improve README blurb
Make first sentence more direct, correct grammar errors, and
alphabetize providers.
2012-07-18 14:50:05 -07:00
Andrew Gaul 8a9265f015 Tie up odds and ends from LocalStorageStrategy
Use LocalStorageStrategy instead of TransientStorageStrategy and
handle IOExceptions.  Aso use dummy location in filesystem blobstore.
2012-07-18 09:45:23 -07:00
Andrew Phillips 575b0a4559 Using the 'maxmemory' option rather than the more generic 'additionalJOption' for the Javadoc plugin to allow for easier overriding 2012-07-18 09:51:08 -04:00
Andrew Phillips 75ce908c13 Made joyent-api tests compatible with Windows 2012-07-18 09:51:03 -04:00
Andrew Phillips f3419e90c9 Made virtualbox tests compatible with Windows 2012-07-18 09:51:01 -04:00
Andrew Phillips 16314f906c Made scriptbuilder tests compatible with Windows 2012-07-18 09:50:59 -04:00
David Ribeiro Alves 0949d52224 added admin access property to all unit tests as hudson requires it (no pk) 2012-07-18 11:36:57 +01:00
Adrian Cole bf06b51788 Merge pull request #726 from andrewgaul/local-storage-strategy
Introduce LocalStorageStrategy
2012-07-18 03:31:18 -07:00
Andrew Gaul c30c2c4809 Introduce LocalStorageStrategy
This commit will allow eventual unification of the filesystem and
transient blobstores.  No functional changes -- rename
FilesystemStorageStrategy to LocalStorageStrategy and implement it in
FilesystemStorageStrategyImpl and TransientStorageStrategy.
2012-07-17 23:11:10 -07:00
Adrian Cole 1ee26e4754 Issue 1024:Not possible to create hvm Linux nodes on Amazon 2012-07-17 23:15:06 -04:00
David Ribeiro Alves 240f76661c corrected assertion 2012-07-18 02:42:25 +01:00
David Ribeiro Alves 4f3de0777f readded missing test 2012-07-18 01:58:55 +01:00
David Ribeiro Alves cdde419b24 re-enabled most tests and corrected some minor bugs, only destoyPoolNodes is missing 2012-07-18 01:58:18 +01:00
Adrian Cole 6264dee999 Merge pull request #713 from magnayn/master
Initial implementation of SmartOS-SSH
2012-07-17 15:26:02 -07:00
Adrian Cole 62e8c59385 Merge pull request #724 from andrewgaul/hex-cut-and-paste
Remove duplicated hexadecimal conversion code
2012-07-17 15:24:21 -07:00
Adrian Cole 007eba6d7c Merge pull request #723 from andrewgaul/filesystem-transient-input-supplier
Ensure we close streams via InputSupplier methods
2012-07-17 15:23:47 -07:00
Adrian Cole 880388d035 Merge pull request #722 from andrewgaul/filesystem-transient-misc
Reduce filesystem and transient differences
2012-07-17 15:23:05 -07:00
Adrian Cole d3eee5a183 Merge pull request #721 from aplowe/openstack-nova2
expect tests: HttpRequests passed to orderedRequestsSendResponses need not be unique
2012-07-17 15:22:20 -07:00
Andrew Gaul d82dd32c64 Remove duplicated hexadecimal conversion code 2012-07-17 13:09:38 -07:00
Andrew Gaul bd5bf0dad2 Ensure we close streams via InputSupplier methods 2012-07-17 11:46:10 -07:00
Andrew Gaul d89153ed1f Reduce filesystem and transient differences 2012-07-17 09:50:47 -07:00
Adam Lowe 20d3d0d603 expect tests: removing requirement that requests are unique (so orderedRequestsSendResponses can tee up different responses for the same request when testing functions) 2012-07-17 15:30:03 +01:00
Adrian Cole 01f121a654 Merge pull request #720 from andrewgaul/filesystem-transient-putblob
Harmonize filesystem and transient putBlob
2012-07-17 05:37:58 -07:00
Nigel Magnay 46414e339a Initial implementation of controlling SmartOS over SSH connection.
This has been implemented mainly to allow jenkins-jclouds integration.

Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
2012-07-17 11:19:00 +01:00
Andrew Gaul 02203afb07 Harmonize filesystem and transient putBlob 2012-07-16 22:02:00 -07:00
Adrian Cole 8d58808406 Merge pull request #719 from dkoper/master
removing stray @Test on base ApiExpectTest class
2012-07-16 19:11:13 -07:00
Dies Koper f119aaa49f remove stray @Test on base class as it's causing warnings due to its public non-test methods 2012-07-17 11:50:18 +10:00
Adrian Cole a979c31d8c Merge pull request #718 from grkvlt/transform-parallel-timeout
Timeouts on FutureIterables.transformParallel
2012-07-16 16:40:45 -07:00
Adrian Cole 3154371433 Issue 1011: remove PagedIterator 2012-07-16 12:11:59 -04:00
Andrew Donald Kennedy 4463b52051 Added optional timeout to EC2 listNodes strategy and made awaitCompletion update latch in finally block 2012-07-16 16:58:37 +01:00
Adrian Cole addeb0d031 added concat to PagedIterable 2012-07-16 11:07:17 -04:00