Commit Graph

6773 Commits

Author SHA1 Message Date
Andrew Gaul 562f8277d3 Introduce LocalAsyncBlobStore
This commit unifies the filesystem and transient blobstores.
2012-07-23 09:20:41 -07:00
Adrian Cole 5101cd0a76 Merge pull request #740 from andrewgaul/local-blobstore-misc
Miscellaneous local blobstore cleanups
2012-07-23 09:01:41 -07:00
Andrew Gaul 756e46333f Miscellaneous local blobstore cleanups
There are no more functional differences between the filesystem and
transient blobstores.  This is the last commit before introducing a
unified LocalAsyncBlobStore class.
2012-07-23 08:06:36 -07:00
Adrian Cole b890765e9e Merge pull request #738 from andrewgaul/local-blobstore-move-helper-method
Move helper method to TransientStorageStrategy
2012-07-23 07:37:30 -07:00
Adrian Cole d5f9bb3172 Merge pull request #739 from andrewgaul/prefer-valueof
Prefer valueOf over explicit object creation
2012-07-22 22:00:09 -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 22da88d2ae Move helper method to TransientStorageStrategy
Also move etag generation since we cannot reuse Payloads in the
general case.
2012-07-22 20:02:59 -07:00
Adrian Cole 7a13dffeed Merge pull request #737 from andrewgaul/mutable-blob-metadata-copy
Move copy(MutableBlobMetadata) to BlobStoreUtils
2012-07-22 18:20:43 -07:00
Andrew Gaul 0bc5c69a4f Move copy(MutableBlobMetadata) to BlobStoreUtils 2012-07-22 17:37:18 -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