Andrew Gaul
6c5effcdb1
Address error-prone empty statement warnings
2013-11-05 16:22:44 -08:00
Andrew Gaul
17ce72794c
Enable RedundantModifier for Checkstyle
2013-10-31 10:23:30 -07:00
Niraj Tolia
53146fb7bb
[JCLOUD 301]: Make increased use of Invokable params cache
...
This patch moves the Invokable Parameter cache to Reflection2 and adds
a convenience method for it to allow it to be shared by multiple
callers. The subsequent ability of S3Utils to use this cache results
in a ~40% improvement in performance for generating signed GETs and
PUTs for S3. This commit also converts a few others calls to
Invokable.getParameters() but the observed benefit from those was
small in microbenchmarks.
2013-10-14 17:44:03 -07:00
Andrew Gaul
04c9c6afd2
JCLOUDS-339. Handle zero-length objects in Atmos
...
Atmos does not return a location header when writing zero-length
objects, which normally throws an HttpResponseException: no uri in
headers or content.
2013-10-08 22:14:37 -07:00
Shri Javadekar
af245d67fe
JCLOUDS-334. Return correct status while creating containers in Swift.
...
BlobStore.createContainerInLocation is supposed to return True if the
container was newly created and False if the container already
existed. This commit makes that happen for Swift blobstores.
2013-10-07 21:48:57 -07:00
Andrew Gaul
f1fc63ab76
Add whitespace around keywords and braces
2013-09-30 09:39:29 -07:00
Andrew Gaul
06b8cd7ac5
JCLOUDS-305. Disable S3 virtual host buckets for generic S3
...
Not all S3-compatible providers support virtual host buckets and thus
we should disable this feature by default. Continue to enable virtual
host buckets for AWS-S3 which supports this although this feature
suffers from DNS settling issues. Ran ran integration tests against
AWS-S3 and Scality using its S3 API.
2013-09-27 16:22:42 -07:00
Niraj Tolia
73464c3877
[JCLOUDS-302] Remove unnecessary String construction in HttpUtils
2013-09-27 16:15:20 -07:00
Adrian Cole
9f12b6309d
JCLOUDS-303. unwrap should permit subtypes
2013-09-27 15:58:25 -07:00
Niraj Tolia
e8ef5c0665
[JCLOUDS-301] Reduce reflection overhead of Invokable.getParameters()
...
By caching the results from Invokable.getParameters(), this commit
improves request signing performance (GETs and PUTs) for S3 by >
3X. These performance problems were seen in production and diagnosed
using the YourKit profiler.
2013-09-27 07:49:09 -07:00
Andrew Gaul
3e5aa78521
Upgrade to Guava 15.0
...
Release notes:
https://code.google.com/p/guava-libraries/wiki/Release15
2013-09-09 10:54:43 -07:00
Andrew Gaul
310a898bc3
Upgrade to Guava 15.0-rc1
...
Release notes:
https://code.google.com/p/guava-libraries/wiki/Release15
2013-09-04 19:56:00 -07:00
Andrew Gaul
d8490f872d
Enable some Xlint warnings
...
Also address a handful of warnings.
2013-09-04 19:45:44 -07:00
Andrew Gaul
5261f760b7
Support Integer.MAX_VALUE size PUTs
...
Previously jclouds enforced Integer.MAX_VALUE - 1 size. Tested
against Atmos Online.
2013-08-28 13:52:06 -07:00
Diwaker Gupta
12f29fd8a9
JCLOUDS-217: Only decode strings that are actually encoded.
...
* Update HttpRequestTests to account for change in urlDecode.
* Related to JCLOUDS-200
2013-08-27 22:03:48 -04:00
Diwaker Gupta
622aec5566
Modify Strings2.urlDecode to input a string.
...
This is consistent with urlEncode. Also consistently use urlDecoder in
DecodingMultimap for values.
2013-08-22 20:43:32 -04:00
Ignasi Barrera
d8fe0c9c21
Added method to generate the AuthorizationException with only a message
2013-08-07 00:09:04 +02:00
Ignasi Barrera
4621176516
Generalized the Arg0ToPagedIterable to propagate all args
...
Generalized the Arg0ToPagedIterable to allow to propagating
all arguments. This will help building PagedIterables for
api methods that require more than one argument to be invoked.
2013-07-25 10:31:09 +02:00
Andrew Gaul
ac58a70e32
Do not eagerly check for existence in FilePayload
...
This is a TOCTOU violation and FilePayload.getInput already propagates
this. This commit allows external callers like jclouds-cli to
introspect on the exception type, returning a more friendly error
message in some situations.
2013-07-15 23:34:12 -07:00
Diwaker Gupta
d52f460562
Introduce StripExpectHeader filter and a property to control it.
...
Some providers (specifically HP Cloud and Google Cloud Storage) do not
properly support Expect: 100-continue headers. JDK7 is stricter in its
handling of the Expect header than JDK6 -- in particular, it expects
servers to properly respond to an expect header and times out only if a
prior timeout did not exist on the underlying HTTP connection. As a
result, JDK7 tests against these providers hang and fail.
This commit introduces a new filter -- appropriate called
StripExpectHeader -- that is controlled by the property
jclouds.strip-expect-header. The property defaults to false to preserve
existing behavior but allows applications to tweak Expect header
handling.
Tested by running HPCS live tests with JDK7 -- previously most of these
tests would fail with timeouts.
Closes JCLOUDS-181
2013-07-11 15:04:05 -07:00
zack-shoylev
1178f47cd7
Upgrade to gson 2.2.4
...
https://issues.apache.org/jira/browse/JCLOUDS-117
2013-07-11 13:52:32 -07:00
Andrew Gaul
60e9062894
Checkstyle fixes
2013-07-09 14:09:44 -07:00
JoshVote
8db0218cf7
JCLOUDS-126 - Support and tests for region selection in swift-keystone BlobStore
2013-07-03 13:44:46 -07:00
Andrew Bayer
5f524ee6c9
JCLOUDS-101 - Add SecurityGroupExtension for compute
...
- Adds the SecurityGroupExtension to compute, with tests and stub
support.
- Gets everything else to actually build against this.
- Unifies on compute's IpPermission/IpProtocol, eliminating EC2's.
- Converters from EC2/Nova/CloudStack SecurityGroup (and rules, for
the latter two) to the compute SecurityGroup (and rules, etc).
- EC2SecurityGroupExtension and tests.
- AWSEC2SecurityGroupExtension and tests - depends on JCLOUDS-99.
2013-06-26 14:59:01 -07:00
Andrew Gaul
1a6be0eb67
Do not repeat array type in initializers
2013-06-18 21:02:50 -07:00
Anton Panasenko
ff3405c967
JCLOUDS-127: Added a method to check if the context is open
...
- Added isOpen in Context interface
- Refactoring Closer class:
- method close can only call once
- method close is threadsafe
- added method getState
2013-06-18 00:31:51 +02:00
Andrew Bayer
32ea520f34
Add license headers to src/test/resources where possible, more fine-grained RAT exclusions
2013-06-12 16:45:29 -07:00
Andrew Gaul
d113b0ba63
Remove Strings2.replaceAll(String, Pattern, String)
...
Replace with direct calls to
Pattern.matcher(String).replaceAll(String).
2013-06-03 14:41:27 -07:00
Andrew Gaul
64e9a4e4c6
Remove Strings2.replaceAll(String, char, String)
...
String.replace(String, String) serves this purpose better.
2013-06-03 14:41:18 -07:00
Ignasi Barrera
334bd36730
JCLOUDS-82: Added method to get the underlying Api from a View
2013-05-27 22:13:25 +02:00
Andrew Phillips
653c946ec2
JCLOUDS-75: Support '-incubating' release versions
2013-05-21 13:49:31 -04:00
adriancole
ed2f18a1af
JCLOUDS-31. updated to ASF headers via mvn com.mycila.maven-license-plugin:maven-license-plugin:format
2013-05-16 21:30:37 -07:00
adriancole
fa10fc4838
JCLOUDS-31. remove malformed, duplicate, or unnecessary headers
2013-05-16 21:30:32 -07:00
Andrew Phillips
7cf8d611af
JCLOUDS-52: Updating JcloudsVersion to search under org.apache.jclouds
...
Group ID changed from org.jclouds with JCLOUDS-15
2013-05-16 13:37:13 -04:00
Andrew Bayer
7923009eb5
JCLOUDS-37. Fix RAT violations in incubator-jclouds, master branch
2013-05-13 19:17:50 -07:00
Andrew Bayer
446ac67884
JCLOUDS-30. Switch to 2 space indents for POM files.
2013-05-13 12:04:43 -07:00
Andrew Bayer
259b04ff1c
JCLOUDS-16. Switch groupId to org.apache.jclouds, change parent POM, remove old distributionManagement content, add ASF repos.
2013-05-13 12:04:42 -07:00
Andrew Gaul
ddfb8e58a5
JCLOUDS-27: Allow repeatable Payload with InputSupplier input
...
This allows HTTP retries to work. Also remove duplicated calls to
ByteStreams.slice.
2013-05-10 15:48:03 -07:00
Everett Toews
2bbd03939f
Removed trystack-nova provider.
2013-04-26 10:54:49 -05:00
Andrew Gaul
fff2fa6e05
Address Checkstyle violations
...
This commit requires temporarily disabling some checks.
2013-04-17 16:21:21 -07:00
Andrew Gaul
04fad88fd3
Remove duplicate Utils getters
...
Rename callers as required.
2013-04-12 16:24:37 -07:00
Andrew Gaul
4037585e42
Deprecate ExecutorService getters
2013-04-12 14:08:52 -07:00
adriancole
fbe9f945e7
rename bindMappedApi -> bindSyncToAsyncApi
2013-04-10 08:57:32 -07:00
adriancole
7db3af1b1e
renamed ignored exception to ignored
2013-04-10 08:15:57 -07:00
adriancole
5bc0678a1c
naming convention and warning feedback from issue #1511
2013-04-10 08:13:13 -07:00
adriancole
61067d3683
Deprecated remaining code related to RestContext, RestApiMetadata, and RestClientModule for ApiContext, HttpApiMetadata, HttpApiModule
2013-04-09 22:07:43 -07:00
adriancole
053197fe61
deprecated all top-level Async apis and clients
2013-04-09 10:18:31 -07:00
adriancole
36dd831b84
moved all code off use of RestContext except CloudStackContext, which will use it until 1.7
2013-04-09 09:23:31 -07:00
adriancole
8771f75d50
added apiVersion field to BaseContextLiveTest so that CloudStack tests don't need to rely on as much injection
2013-04-09 09:23:30 -07:00
adriancole
4d0e6ae699
added type token means for buildApi() as it is in fact used
2013-04-09 09:23:26 -07:00
adriancole
8f68de0018
added temporary workaround for AutoCloseable which will be deleted in jclouds 1.7
2013-04-08 17:11:33 -07:00
adriancole
88871c9fe9
issue #1501 : add Closeable annotation to all top-level apis
2013-04-08 16:13:09 -07:00
adriancole
4ced43566b
issue #1501 : allow Closeable, top-level apis to be used as opposed to RestContext
2013-04-08 15:14:59 -07:00
Ioannis Canellos
a03d4183ae
Add @Inject to the Compute class.
2013-04-05 01:51:43 +03:00
Adrian Cole
3e9c3dc6e6
Merge pull request #1490 from maginatics/do-slice-string-cast
...
Cast String Payloads to String
2013-04-03 17:56:45 -07:00
Adrian Cole
0f1675cc18
Merge pull request #1489 from maginatics/remove-input-suppliers
...
Remove InputSuppliers.of(String)
2013-04-03 17:55:25 -07:00
Adrian Cole
366a728b08
Merge pull request #1480 from maginatics/http-put-zero-content-length
...
Emit Content-Length: 0 for empty PUTs
2013-04-03 17:21:20 -07:00
Andrew Gaul
be1da2501e
Remove InputSuppliers.of(String)
...
Callers rarely want this functionality and should call
ByteStreams.newInputStreamSupplier when they do.
2013-04-03 15:52:43 -07:00
Andrew Gaul
10d29f5ef2
Cast String Payloads to String
2013-04-03 15:51:44 -07:00
Adrian Cole
d938349229
Merge pull request #1488 from maginatics/remove-input-suppliers-of-input-stream
...
Remove InputSuppliers.of(InputStream)
2013-04-03 15:39:58 -07:00
Andrew Gaul
648e6c2a8a
Remove InputSuppliers.of(InputStream)
...
This method breaks the contract of an InputSupplier since every call
to getInput returns the same InputStream instance. This is
particularly dangerous when one of the callers mutates or closes the
InputStream which causes all others callers to fail.
2013-04-03 13:19:42 -07:00
Andrew Gaul
843ed57c8a
Emit Content-Length: 0 for empty PUTs
...
HttpUrlConnection reverts Content-Length: 0 on PUT without
doOutput(true), similar to POST. This commit allows Azure container
create to succeed. Closes #1420 .
2013-04-01 13:42:59 -07:00
Andrew Phillips
db4e4af931
Not making methods of core Java classes accessible in Reflection2
2013-03-30 17:00:43 -04:00
Andrew Gaul
eb2a9b6ed5
Correct HttpAsyncClient.put Javadoc
2013-03-27 12:44:29 -07:00
Everett Toews
870c7d8450
PaginatedCollection for Rackspace style pagination.
2013-03-25 14:22:32 -05:00
adriancole
cd79a9d876
HttpUrlConnection reverts Content-Length=0 on POST unless doOutput is set to true
2013-03-24 20:58:29 -07:00
Adrian Cole
254aafb157
Merge pull request #1449 from zack-shoylev/windows-fix
...
Fixes running maven tests on windows.
2013-03-22 15:18:26 -07:00
zack-shoylev
b19b4d701a
Fixes running maven tests on windows. The tests and the private key
...
builder code were not all properly using
System.getProperty("line.separator") and were instead in some cases just
using "\n"
lineSeparator variable shortened
jclouds formatting applied
reverts and refixes formatting changes
This should fix some missing changes
2013-03-22 21:15:56 +00:00
Dies Koper
7a5cc9e2af
add PROPERTY_PROXY_FOR_SOCKETS constant to allow ssh connections to bypass HTTP proxies
2013-03-19 18:16:05 +11:00
Andrew Gaul
9132c7880c
Upgrade to Guava 14.0.1
...
Release notes:
https://code.google.com/p/guava-libraries/wiki/Release14
2013-03-15 21:20:23 -07:00
adriancole
6f9794dedb
correct order of List<Byte> gson registration and filled missing test
2013-03-14 09:44:28 -07:00
Andrew Gaul
371db8d18f
Address Xlint warnings
2013-03-13 22:23:19 -07:00
Adrian Cole
168121f9b3
Merge pull request #1422 from maginatics/filebackedoutputstream-reset
...
Call FileBackedOutputStream.reset on InputStream.close
2013-03-13 18:21:22 -07:00
adriancole
ef2718629f
make it possible to deserialize into ctors that have immutable collection parameters
2013-03-13 12:22:41 -07:00
adriancole
8932e9fd81
pass absent instead of null to ctor parameters of type Optional
2013-03-13 11:07:17 -07:00
Andrew Gaul
2d44332559
Call FileBackedOutputStream.reset on InputStream.close
...
This ensures that we delete temporary files created by Wire logging.
2013-03-13 10:43:41 -07:00
adriancole
92bfb8224f
fix issue #1409 : regression where we broke streaming payloads
2013-03-12 11:35:31 -07:00
Adrian Cole
d3bb6d6e69
Merge pull request #1406 from maginatics/null-http-response
...
Annotate possibly null return value
2013-03-11 15:47:24 -07:00
Adrian Cole
e1b3ded0d0
Merge pull request #1408 from maginatics/null-payload
...
Annotate possibly null return value
2013-03-11 15:46:23 -07:00
Andrew Gaul
395116ebf1
Annotate possibly null return value
2013-03-10 15:59:19 -07:00
Andrew Gaul
5a69e01cfd
Annotate possibly null return value
2013-03-10 15:43:49 -07:00
Adrian Cole
fb69ae0fa9
bump master to 1.7.0-SNAPSHOT
2013-03-08 23:02:40 -08:00
Everett Toews
5ad9867e27
Initial commit for the Rackspace DNS API.
2013-03-06 16:02:39 -06:00
Everett Toews
bbede1bd0a
Updated Javadoc for PagedIterable. Removed example that was out-of-date. Changed example to something that actually returns PagedIterable.
2013-03-06 11:51:41 -06:00
adriancole
c31145e42e
[maven-release-plugin] prepare for next development iteration
2013-03-04 06:13:59 -08:00
adriancole
0eb3ee8091
[maven-release-plugin] prepare release jclouds-1.6.0-alpha.4
2013-03-04 06:13:57 -08:00
adriancole
4f2c64681a
do not send payload when method doesn't send payload
2013-03-03 17:22:23 -08:00
Adrian Cole
8e881bd5c2
remove default add of Expect 100 Continue header
2013-03-03 12:24:28 -08:00
Andrew Gaul
ac60647057
Upgrade to Guava 14.0
...
Release notes:
https://code.google.com/p/guava-libraries/wiki/Release14
2013-02-26 10:07:53 -08:00
Adrian Cole
d9c4cf2d39
consider @FormParam on @Delegate calls
2013-02-24 23:14:13 -08:00
Adrian Cole
1338daec50
added function to grab first arg during pagination
2013-02-24 12:34:00 -08:00
Adrian Cole
86d5d69128
Merge pull request #1344 from maginatics/findbugs
...
Address FindBugs complaints
2013-02-22 12:19:09 -08:00
Andrew Gaul
ec4cdfda05
Address FindBugs complaints
2013-02-22 09:29:22 -08:00
Andrew Gaul
2b7d2ded4d
Upgrade to Guava 14.0-rc3
2013-02-21 18:25:27 -08:00
adriancole
ebf96596c5
@Delegate considers @PayloadParam
2013-02-21 11:44:03 -08:00
adriancole
67d74528db
RedirectionRetryHandler ignored PROPERTY_MAX_REDIRECTS on backoff
2013-02-19 01:39:11 -08:00
adriancole
89fda8ee28
[maven-release-plugin] prepare for next development iteration
2013-02-04 17:30:46 -08:00
adriancole
2b0ad28f26
[maven-release-plugin] prepare release jclouds-1.6.0-alpha.2
2013-02-04 17:30:44 -08:00
adriancole
6c658f6450
fix issue #1297 put with zero length payload
2013-02-04 10:32:03 -08:00
adriancole
267069755e
[maven-release-plugin] prepare for next development iteration
2013-02-02 08:41:53 -08:00
adriancole
7c924b312f
[maven-release-plugin] prepare release jclouds-1.6.0-alpha.1
2013-02-02 08:41:51 -08:00
adriancole
865005afd9
fix issue #1289 bug in zero length put
2013-02-01 15:09:31 -08:00
adriancole
ece2c962a0
worked around issue where GET can become POST
2013-01-31 17:43:49 -08:00
Adrian Cole
6a80aa4313
unwrap UncheckedExecutionException
2013-01-31 11:55:36 -08:00
adriancole
fd3a5a3b9a
decoupled InvokeHttpMethod, which allows circular dependencies in cloudstack to resolve
2013-01-30 12:51:17 -08:00
Adrian Cole
55a10d4c5d
allow SelectJson to specify multiple field names, in case the server renamed something
2013-01-30 09:03:50 -08:00
adriancole
878313582a
issue #1089 synchronous commands no longer spawn threads unless a timeout is specified
2013-01-29 04:08:42 -08:00
Dies Koper
17451c3e49
Core, compute: improved poll retry timeout comments
2013-01-28 16:15:47 +11:00
Andrew Phillips
2a1fc363e0
Moving the complex test for 93e2f24c62
into a separate file and allowing it to run in parallel with other tests
2013-01-24 23:13:14 -05:00
Andrew Phillips
4c5cef1be4
Updated implementation comment in Reflection2
2013-01-24 21:41:09 -05:00
Andrew Gaul
fb93f774aa
Remove unneeded Predicate
...
Inspired by:
https://code.google.com/p/guava-libraries/wiki/FunctionalExplained#Caveats
2013-01-24 16:55:01 -08:00
Adrian Cole
92c64bc856
Merge pull request #1230 from jclouds/use-system-line-sep-in-tests
...
Making core tests run on Windows
2013-01-24 08:20:19 -08:00
Andrew Phillips
66bab1342c
Using checkArgument instead of throwing an IllegalArgException directly
2013-01-24 02:00:32 -05:00
Andrew Phillips
93e2f24c62
Ignoring synthetic methods to always return the nearest method with the most specific return type from Reflection2.method
2013-01-24 01:59:01 -05:00
Adrian Cole
cafd3f9b08
Merge pull request #1232 from dkoper/master
...
makes fgcp live tests (at least most of them) pass again, and added @Named annotation on async api methods
2013-01-23 10:20:18 -08:00
Dies Koper
494adcaeda
Fgcp: changed broken base64 logic and added unit tests
2013-01-23 18:29:40 +11:00
Andrew Phillips
5914436ae0
Making test assertions use the system line separator rather than always '\n'
2013-01-22 21:37:35 -05:00
adriancole
2aea1355a1
added ability to set field exclusion policies for json serialization
2013-01-22 17:12:08 -08:00
Andrew Gaul
af963df92d
Use Map.entrySet where possible
...
Improves run-time efficiency and addresses FindBugs warnings.
2013-01-21 23:59:42 -08:00
adriancole
847561ee00
ensure identity/credential properties are not needed when using credential supplier
2013-01-21 10:02:46 -08:00
Adrian Cole
d5f7f8b07e
refactored json internals to use Reflections2
2013-01-20 23:13:22 -08:00
Adrian Cole
a625127fd2
added ability to look up constructors as Invokables
2013-01-20 23:13:22 -08:00
Everett Toews
242d3e07be
The Connection API for Rackspace Cloud Load Balancers.
2013-01-20 19:51:06 -06:00
Andrew Gaul
70af02d9d9
Space optimize Strings2.toStringAndClose
...
Avoid creating a byte array before creating a String. This reduces
peak memory usage when parsing large JSON responses such as listing a
container.
2013-01-19 22:57:01 -08:00
Adrian Cole
58a986997b
removed all compile warnings in core except json package
2013-01-19 20:39:47 -08:00
Adrian Cole
c5e3b24d3e
decoupled ProxyConfig and introduced PROPERTY_PROXY_TYPE
2013-01-19 20:06:18 -08:00
Adrian Cole
e27d9e94fe
fix issue #1205 : removed copied in tests from Suppliers.memoize as current code is no longer a derivative of that
2013-01-19 19:49:00 -08:00
Adrian Cole
58f0f577d0
centralize construction of invokables
2013-01-19 17:17:06 -08:00
Adrian Cole
4980367991
centralize TypeToken creation
2013-01-19 11:31:55 -08:00
adriancole
dc4ca1efbd
removed deprecated methods which were easy to do
2013-01-19 08:32:45 -08:00
adriancole
04fe89b75a
update to guava 14.0-rc2
2013-01-18 16:02:25 -08:00
adriancole
b3901deeb9
rewrote aws config to use standard op names
2013-01-16 10:54:17 -08:00
adriancole
95b1849199
process timeouts based on @Named annotations
2013-01-16 10:54:00 -08:00
Adrian Cole
a7e4564c8e
support changing credentials at runtime
2013-01-15 22:26:24 -08:00
Adrian Cole
b07984435f
unwound a few stack traces by making DelegatesToInvocationFunction an invocation handler directly
2013-01-13 22:41:06 -08:00
Adrian Cole
f18d3b433f
Merge pull request #1177 from jclouds/retryablepredicate-highlander
...
There can be only one retryable predicate; use Predicates2.retry
2013-01-13 22:07:42 -08:00
Adrian Cole
3ac6f475e7
unwound dependencies relating to ssh keys and crypt
2013-01-13 20:53:59 -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
6a8ac673aa
fixed hanging test
2013-01-13 20:27:44 -08:00
Adrian Cole
713a498c22
removed custom version of guava Futures, awkward DescribedFuture, and migrated to native ListenableFuture
2013-01-13 09:29:24 -08:00
Adrian Cole
547f574eea
got rid of custom MoreExecutors.sameThreadExecutor
2013-01-12 15:47:58 -08:00
Adrian Cole
f1819fe8b9
decorating cacheloader only used in s3
2013-01-12 15:47:51 -08:00
Adrian Cole
45bb35971e
replaced usage of checkNotEmpty with checkNotNull(emptyToNull
2013-01-12 15:20:11 -08:00
Adrian Cole
0e4c10e29f
PasswordGenerator only used in scriptbuilder
2013-01-12 14:09:58 -08:00
Adrian Cole
015fbf22a2
removed redundant retrying assertion code
2013-01-12 14:04:47 -08:00
Adrian Cole
cca73d8a69
removed function only used once and only accessing a single if branch
2013-01-12 13:47:07 -08:00
Adrian Cole
60ab6d8e26
Merge pull request #1169 from jclouds/ucdetector
...
cleaned up code references detected as unnecessary by UEC plugin
2013-01-12 13:11:47 -08:00
Adrian Cole
d57197c103
cleaned up code references detected as unnecessary by UEC plugin
2013-01-12 12:31:00 -08:00
Adrian Cole
2f5e38d237
equals doesn't check null
2013-01-12 08:01:31 -08:00
Adrian Cole
21f6431f50
masked field
2013-01-12 07:55:49 -08:00
Adrian Cole
a7389ac9eb
equals on different types
2013-01-12 07:49:01 -08:00
Adrian Cole
202b9be5e5
refactored tests and internal code due to removing custom guava code
2013-01-08 22:23:47 -08:00
Adrian Cole
d38ae1420d
Updated invokable to include enclosing type and started refactoring SyncProxy
2013-01-08 00:32:17 -08:00
Adrian Cole
3089111621
refactored internal code and tests to use FunctionalReflection
2013-01-07 00:36:31 -08:00
Adrian Cole
bd9e998b12
introduced functional model for dynamic proxies
2013-01-07 00:36:18 -08:00
Adrian Cole
69c7cd74df
migrated from j.l.r.Method -> Invokable
2013-01-05 18:51:03 -08:00
Adrian Cole
c43aac2ecc
made AbstractInvocationHandler that uses safer objects
2013-01-05 18:48:22 -08:00
Adrian Cole
afc070ac07
First wave of RestAnnotationParser refactoring introduces Invokable, removes SeedAnnotationCache and associated race conditions
2013-01-04 13:51:46 -08:00
Adrian Cole
36123a6068
deterministic creation of requests based on arg order
2013-01-04 12:44:26 -08:00
Ignasi Barrera
f1d81eaf12
Make JAXBResponseParser parameterizable
...
By default, RestAnnotationProcessor builds the JAXBParser with the
return type of the invoked method. This, however, can make it impossible
to combine the JAXBResponseParser with the Transform annotation. The
payload of the response to be parsed with the JAXBResponseParser could
be of a different type than the output generated by the transformer
function.
This makes it necessary to configure the type for the response parser in
the JAXBResponseParser annotation and set the return type of the invoked
method to the type generated by the transformer function.
2013-01-03 23:06:03 +01:00
Adrian Cole
c948c0cf53
Update core/src/main/java/org/jclouds/crypto/Pems.java
...
removed unused method
2013-01-01 20:35:52 -08:00
Adrian Cole
3c5135dbe5
Update core/src/main/java/org/jclouds/crypto/ASN1Codec.java
2013-01-01 20:33:18 -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
e1afa8c516
transitioned from FindResourceInSet to FluentIterable
2012-12-31 22:11:34 -08:00
Adrian Cole
d9164ddcbd
Merge pull request #1129 from jclouds/no-transformingset
...
removed TransformingSetSupplier as it is replaced with FluentIterable
2012-12-31 22:06:18 -08:00
Adrian Cole
955b3a3f85
Merge pull request #1128 from jclouds/osgi-cleanup
...
osgi code formatting and cleanup
2012-12-31 21:14:24 -08:00
Adrian Cole
b19e4a7a0f
removed TransformingSetSupplier as it is replaced with FluentIterable
2012-12-31 20:46:04 -08:00
Adrian Cole
a30ff81c15
osgi code formatting and cleanup
2012-12-31 20:07:19 -08:00
Adrian Cole
9745e9dc2f
fixed covariance and warnings on ApiMetadata subclasses
2012-12-31 19:40:49 -08:00
Adrian Cole
c39503b682
TimeoutException is controllable via upping timeout properties; don't add more retry loops and stacktraces
2012-12-31 17:09:27 -08:00
Adrian Cole
f5743a7f41
removed code redudant to guava FutureFallback
2012-12-31 16:08:09 -08:00
Adrian Cole
bb953c981e
fix issue #1101 : Move to Guava 14 BaseEncoding and Hashing
2012-12-31 14:48:31 -08:00
Adrian Cole
cddd35bc51
removed unnecessary generic types and made RestAnnotationProcessor immutable
2012-12-30 23:18:59 -08:00
Adrian Cole
2523ab54ac
removed use of static fields to share type mapping info
2012-12-30 17:22:03 -08:00
Adrian Cole
038e550d2d
moved off deprecated FluentIterable methods
2012-12-30 13:20:09 -08:00
Adrian Cole
13d8b9c402
replaced @Timeout w/explicit properties
2012-12-30 12:31:43 -08:00
Adrian Cole
7dcc27a63d
missing file from last commit
2012-12-29 00:02:06 -08:00
Adrian Cole
023b549e20
Remove explicit dependency on bouncycastle for PEM parsing
2012-12-28 23:11:42 -08:00
Adrian Cole
207b3db41f
remove dependency on bcpkix-jdk15on
2012-12-27 23:23:28 -08:00
Adrian Cole
9b1872c6ff
removed custom code that duplicates functionality of guava fallbacks
2012-12-27 16:54:31 -08:00
Adrian Cole
20c3426fc8
replaced jersey w/Uris & UriTemplates; removed complexity in url encoding and edge cases like matrix params
2012-12-24 14:32:59 -08:00
Adrian Cole
e484d7033f
Merge pull request #1091 from jclouds/no-aop
...
removed unused aop dep
2012-12-23 09:28:55 -08:00
Adrian Cole
847b1c7352
Merge pull request #1090 from jclouds/no-matrix
...
removed explicit matrix param support as their use is edge case in rest
2012-12-23 09:28:45 -08:00
Adrian Cole
a816f09dc7
removed unused aop dep
2012-12-22 23:30:55 -08:00
Adrian Cole
3be1089538
removed explicit matrix param support as their use is edge case in rest
2012-12-22 17:45:31 -08:00
Adrian Cole
e5e26e223d
update to latest version of bouncycastle including moving off deprecated stuff
2012-12-20 12:04:32 -08:00
Everett Toews
ad6c257424
Added support for Iterable collections to QueryParam.
2012-12-20 10:48:48 -06:00
Adrian Cole
f071128f5a
Merge pull request #1060 from rackspace/clb-modernize
...
Modernizing the Rackspace Cloud Load Balancers API.
2012-12-10 16:47:47 -08:00
Adrian Cole
2edc0ef19d
Merge pull request #1056 from jclouds/jclouds-549-retry-after
...
introduce RetryAfterException + make Nova use it
2012-12-10 16:24:26 -08:00
Everett Toews
0b0373c91f
Modernizing the Rackspace Cloud Load Balancers API. Following naming conventions and using PagedIterable.
2012-12-10 12:15:38 -06:00
Adrian Cole
b4fd69287f
Merge pull request #1059 from jclouds/delegate-with-paths
...
Delegate with paths
2012-12-09 12:19:36 -08:00
Adrian Cole
00560b3224
Path annotation ignored when endpoint not set on caller
2012-12-09 11:34:30 -08:00
Adrian Cole
99d778c1ca
cleaned up unnecessary wrapping of ExecutionException
2012-12-09 11:34:25 -08:00
Ignasi Barrera
89f2f133d4
Remove net.oauth dependency
2012-12-09 19:12:59 +01:00
Adrian Cole
24f8e665d4
added RetryAfterException and placed in default exception handling
2012-12-09 03:00:45 -08:00
Adrian Cole
b8eb49f0a9
added rfc822 + iso8601Seconds to DateCodecFactory and simplified ctor
2012-12-09 02:47:09 -08:00
Ignasi Barrera
72deb93570
Fixed decoding of some PKCS1 encoded public keys
2012-12-08 21:49:15 -08:00
Ioannis Canellos
b7863ae394
fix issue #1044 : Added listener interfaces for Providers and Apis.
2012-12-08 16:55:22 -08:00
Adrian Cole
27dfdd571b
fix issue #607 : NPE in compareTo method of ResourceMetadataImpl
2012-12-04 22:42:47 -08:00
Adrian Cole
6563ba1ad9
Merge pull request #995 from LeanderBB/openstack-nova-diagnostics
...
Started work on adding the nova diagnostics command to JClouds
2012-12-04 07:47:31 -08:00
Adrian Cole
c30fedec20
updated to employ Reflection.newProxy + AbstractInvocationHandler
2012-12-02 12:27:57 -08:00
Adrian Cole
1001021ecd
switched setup annotation to operate on Class to avoid InterruptedExceptions; accomodated OpenJDK behavior change wrt Expect: 100-continue
2012-12-01 18:40:07 -08:00
Adrian Cole
ac8be50461
Merge pull request #1017 from jclouds/cleanup-basehttptest
...
clean up style on base http test class
2012-12-01 15:14:55 -08:00
Adrian Cole
1a0e0e3594
cleaned up clutter in base http tests and converted known failures to skip exceptions
2012-12-01 14:01:18 -08:00
Adrian Cole
6a20e00102
changed to use FlexBase64 from Jason Greene
2012-12-01 10:19:15 -08:00
Leander Bessa Beernaert
38be08eb6b
Extends JClouds' OpenStack Nova API with the Diagnostics command
...
The diagnostics command returns a collection of system information
for the a given server. At the moment, there is no formal
specification for this command. Therefore, it is returned as
a Map of hypervisor specific entries and corresponding values.
More information about the command can be viewed here [1]
in the section "Server Diagnostics".
[1] http://api.openstack.org/api-ref.html
2012-11-30 17:40:12 +00:00
Adrian Cole
1b1bb39deb
ensure UTC can be used where GMT is
2012-11-27 11:22:28 -08:00
Adrian Cole
9f95ff1476
Merge pull request #996 from jclouds/undo-serializable
...
undid Serializable and added checkstyle
2012-11-19 17:45:04 -08:00
Guy Korland
0c38cd584a
Avoid NPE in case value is null but contains return true.
2012-11-19 17:35:41 +02:00
Guy Korland
405ca5648a
Add missing argumnet in Exception
2012-11-19 17:13:49 +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
b16ca139a4
Honor PROPERTY_REQUEST_TIMEOUT in clearContainer
2012-11-13 13:27:18 -08:00
Adrian Cole
0b0d240b4e
Merge pull request #981 from jclouds/since-api-version
...
added ability to test if an api is available based on apiVersion
2012-11-12 17:04:09 -08:00
Andrew Gaul
d7380114a6
Enforce use of Atomics.newReference via Checkstyle
...
Avoids duplicating types.
2012-11-12 11:56:48 -08:00
Adrian Cole
2dc9533e0b
added ability to test if an api is available based on apiVersion
2012-11-11 11:07:03 -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
Adrian Cole
6352cbccfd
Merge pull request #967 from jclouds/better-factory-javadoc
...
improved javadoc including where to look for alternative syntax
2012-11-07 07:43:44 -08:00
Adrian Cole
c7c27e12e2
improved javadoc including where to look for alternative syntax
2012-11-07 12:02:52 -03:00
Adrian Cole
489783d5c3
renamed syntax of base64 url-safe to be consistent with guava 14 + fixed bad import from prior PR
2012-11-07 10:43:56 -03:00
Adrian Cole
64a8fd0cbb
Merge pull request #961 from andrewgaul/checkstyle-collection-helpers
...
Enforce use of Collection helpers via Checkstyle
2012-11-05 11:38:49 -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
9d643b569a
Enforce a single variable declaration per line
2012-11-04 17:37:16 -08:00
Adrian Cole
c00ef4c941
Merge pull request #956 from andrewgaul/checkstyle-illegal-throws
...
Enforce no illegal throws via Checkstyle
2012-11-04 17:14:14 -08:00
Andrew Gaul
41154d552c
Enforce no illegal throws via Checkstyle
...
Also remove a stray unused import.
2012-11-04 15:48:44 -08:00
Adrian Cole
2c900d1bab
Issue 1120: support base64 encode/decode for url applications
2012-11-04 15:38:13 -08:00
Andrew Gaul
0761874578
Prefer Assert.fail over assert
...
The former cannot be disabled.
2012-11-03 14:51:52 -07: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
88d53b8792
Enforce no empty statements via Checkstyle
2012-11-01 18:59:18 -07:00
Andrew Gaul
35ce78f15a
Correct typos
2012-11-01 13:25:44 -07:00
Adrian Cole
4c72c5c803
Merge pull request #927 from iocanel/jclouds-osgi-fixes
...
Jclouds osgi fixes
2012-11-01 13:12:01 -07:00
Ioannis Canellos
f76b67ac33
Specified a wider version range for rocoto.
2012-10-31 11:10:57 +02:00
Ioannis Canellos
f49cca46f0
MetadataBundleListener now works with multiple providers/apis per bundle. Added a class assignable check in MetadataBundleListener. Added unit test for MetadataBundleListener. Fixed spelling and formatting of MetadataBundleListener and MetadataBundleListenerTest.
2012-10-31 11:10:20 +02:00
Adrian Cole
5da5161485
Merge pull request #909 from andrewgaul/clear-container-timeout-exception
...
Throw TimeoutException from awaitCompletion
2012-10-30 08:57:20 -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
3a2905ee1e
Merge pull request #926 from andrewgaul/to-string-and-close-exception-handling
...
Propagate exceptions from toStringAndClose
2012-10-29 16:50:37 -07:00
Adrian Cole
3a00a2c389
Merge pull request #924 from andrewgaul/copyright-notice
...
Address minor copyright notice typos
2012-10-29 16:50:01 -07:00
Andrew Gaul
aad4d4dbcf
Propagate exceptions from toStringAndClose
...
This method already declares throws IOException and callers should
handle these errors appropriately.
2012-10-29 09:37:46 -07:00
Aled Sage
09425f4f69
Version upgrades
...
- gson from 2.2 to 2.2.2
- guava from 13.0 to 13.0.1
- rocoto from 6.1 to 6.2
- log4j from 1.2.16 to 1.2.17
- log back from 1.0.0 to 1.0.7
- httpclient from 4.1.3 to 4.2.2
- netty from 3.3.1 to 3.5.9
- slf4j from 1.6.4 to 1.7.2
- testing from various to 6.8
- jetty from 8.1.1 to 8.1.7
- snakeyaml from 1.10 to 1.11
2012-10-29 13:00:44 +00:00
Andrew Gaul
e7dde3aff5
Address minor copyright notice typos
2012-10-28 23:27:56 -07:00
Andrew Gaul
336ccfa2e6
Throw TimeoutException from awaitCompletion
...
This is a common error that callers should interpret correctly. For
DeleteAllKeysInList, we integrate into its retry and backoff logic,
and for other callers, we continue to propagate RuntimeException.
2012-10-25 13:50:29 -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
Andrew Gaul
90f42d01ce
Remove InputSuppliers.of(byte[])
...
Callers rarely want this functionality and should call
ByteStreams.newInputStreamSupplier when they do.
2012-10-17 11:35:45 -07:00
Adrian Cole
ffa9cd3bb0
corrected guice bindings for swift-based blob signatures and backfilled expect tests
2012-10-10 12:03:23 +02:00
Andrew Gaul
9024c77405
Improve use of Charsets
2012-10-07 22:31:49 -07:00
Adrian Cole
5b213c2171
Merge pull request #883 from andrewgaul/unsupported-encoding-exception
...
Remove unneeded UnsupportedEncodingExceptions
2012-10-07 18:04:31 -07:00
Adrian Cole
298e764f85
fixed context builder when params in properties
2012-10-07 17:50:59 -07:00
Andrew Gaul
07ca6ab27b
Remove unneeded UnsupportedEncodingExceptions
...
Enabled by use of Charsets. Remaining calls due to URLEncoder.encode
and decode.
2012-10-07 17:16:02 -07:00
Andrew Gaul
8a0900d6ca
Prefer fail over assertTrue(false) where possible
2012-10-06 19:25:54 -07:00
Ioannis Canellos
0dcd648599
Added javadoc description for name property. Cleaned up code in ContextBuilder
2012-10-06 10:31:23 +03:00
Ioannis Canellos
76beeee55b
Merge pull request #873 from iocanel/master
...
Added name property to Context.
2012-10-06 00:26:07 -07:00
Everett Toews
add1182960
Made the polling period between updates for servers and images configurable when using the ComputeService.
2012-10-04 20:45:20 -05:00
Adrian Cole
4e32001b84
Merge pull request #689 from andrewgaul/propagate-timeout-exception
...
Propagate TimeoutException when possible
2012-10-04 14:46:28 -07:00
Andrew Gaul
a66c146a54
Propagate TimeoutException when possible
...
This allows clients to recover from transient errors.
2012-10-04 11:32:48 -07:00
Ioannis Canellos
b784cdd4af
Added name property to Context.
2012-10-04 13:40:02 +03:00
Andrew Gaul
ceb203c10a
Improve use of InputSupplier helpers
2012-10-02 18:18:51 -07:00
Adrian Cole
41e4a369e7
reveal underlying exception that causes a guice provider to fail
2012-09-29 14:03:25 -07:00
Adrian Cole
162b2f6829
added advancing iterable
2012-09-21 17:29:59 -07:00
Adrian Cole
38f8f98b16
removed static field-based state sharing when looking up delegate methods
2012-09-20 15:26:06 -07:00
Adrian Cole
28d766b9df
bumped to 1.6.0-SNAPSHOT
2012-09-17 01:43:52 -07:00
Adrian Cole
0be04f7952
make it possible to extend gson type adapters
2012-09-16 23:38:35 -07:00
Adrian Cole
d9c71923a6
param parsers can accept nullable params
2012-09-16 14:56:57 -07:00
Adrian Cole
85b5006084
nicer NPE when null args are specified to ReST methods
2012-09-16 12:38:00 -07:00
Adrian Cole
49877c8f06
helpers for empty collections
2012-09-15 23:43:50 -07:00
Adrian Cole
c0e8470952
default region endpoint for rackspace legacy apis
2012-08-29 23:47:05 -07:00
Andrew Gaul
980f469679
Correct typo
2012-08-23 15:32:36 -07:00
Everett Toews
27dee0bfd9
Moved HttpMessage.getLowercaseHeaders() to Multimaps2.transformKeys() and
...
org.jclouds.functions.ToLowerCase for better reuse.
Added org.jclouds.util.Multimaps2Test for unit test.
2012-08-20 19:02:33 -05:00
Everett Toews
8d9499b3c1
Made getting a header by field-name case-insensitive to address the issue from
...
https://groups.google.com/forum/?fromgroups#!topic/jclouds/lEZjqhbudX4
This is the proper way to handle it as RFC 2616, "Hypertext Transfer Protocol -- HTTP/1.1", Section 4.2, "Message Headers" states,
Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive.
2012-08-20 15:30:50 -05:00
Adrian Cole
8c5e03a9a5
added debug when parsing fails
2012-08-19 19:51:30 -07:00
Andrew Gaul
63173fb6f3
Use Multimaps and Predicates helpers
...
Addresses a TODO.
2012-08-16 13:58:51 -07:00
Adrian Cole
b055fb1233
Merge pull request #780 from grkvlt/openstack
...
Openstack Extensibility
2012-08-12 09:29:51 -07:00
Dies Koper
f9e51c37d5
add FirstNetwork, in line with FirstRegion, etc., for use in FGCP provider
2012-08-11 23:22:41 -07:00
Adrian Cole
5851233603
Issue 1067:update to guava 13
2012-08-11 20:59:27 -07:00
Adam Lowe
4fad770eaf
openstack-nova: allowing extension of the standard extensions by providers
2012-08-12 02:48:24 +01:00
Dies Koper
c684a59cb3
add predicates and template builder live tests for location scopes SYSTEM and NETWORK
2012-08-06 23:29:26 +10:00
Adrian Cole
ba56e2dce4
utils and better toStrings for location classes
2012-07-29 16:30:20 -07:00
Andrew Gaul
8ed0e28e68
Spelling corrections
2012-07-26 22:39:35 -07:00
Adrian Cole
3e2e24493e
Issue 981: better toString on template
2012-07-26 11:28:38 -07:00
Andrew Gaul
cd48729f65
Prefer ImmutableMap for SyncProxy maps
2012-07-26 08:44:13 -07:00
Adrian Cole
821b422b94
added SshKeyPairGenerator
2012-07-25 00:33:38 -07:00
Adrian Cole
cab271d30f
expect test ignored properties
2012-07-25 00:33:38 -07:00
Andrew Gaul
3648863a3c
Introduce Predicates2.startsWith and endsWith
2012-07-24 22:21:34 -07:00
Adrian Cole
9d007a40b7
reset loginpassword/privatekey when explicitly set
2012-07-23 19:28:59 -07:00
Adrian Cole
6d9d638a1f
Merge pull request #746 from dkoper/master
...
adding SYSTEM location scope required for FGCP
2012-07-23 19:19:50 -07:00
Dies Koper
966f1fc459
Add SYSTEM scope from DMTF CIMI. FGCP provider needs it.
2012-07-24 11:39:54 +10:00
Andrew Gaul
8524dd3a67
Ensure that EventBus is a singleton
2012-07-23 11:02:55 -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
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
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
62e8c59385
Merge pull request #724 from andrewgaul/hex-cut-and-paste
...
Remove duplicated hexadecimal conversion code
2012-07-17 15:24:21 -07:00
Andrew Gaul
d82dd32c64
Remove duplicated hexadecimal conversion code
2012-07-17 13:09:38 -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
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
Adrian Cole
315d5fb3ef
Issue 1011: introducing PagedIterable
2012-07-15 23:34:42 -07:00
Adrian Cole
248c6dcb39
Transform to work with SaxParser
2012-07-15 22:44:07 -07:00
Adrian Cole
872046ed4c
added @Transform
2012-07-15 20:10:49 -07:00
Adrian Cole
b49f2e99c7
Issue 1022: naming conventions
2012-07-15 13:57:44 -07:00
Adrian Cole
05fd64af44
cleaned up http builders and expect tests
2012-07-15 01:50:38 -07:00
Andrew Gaul
b95f36952d
Fix infinite loops, found by FindBugs
2012-07-14 18:46:58 -07:00
Andrew Gaul
68b8a99c79
Log hostnames only if they differ
...
Also only log we have not previously encountered this mapping.
Finally use concurrent map for thread safety.
2012-07-13 15:17:53 -07:00
Adrian Cole
72ba1639b9
Issue 1022: added BaseRestApiExpectTest
2012-07-12 10:08:10 -07:00
Adrian Cole
0383a80904
Issue 1011: PaginatedIterable with marker type as Object
2012-07-09 16:08:32 -07:00
Adrian Cole
6cdad28359
Merge pull request #704 from dkoper/master
...
tested NPE goes away with FGCP expect test
2012-07-09 00:04:59 -07:00
Dies Koper
43f12fa627
prevent NPE when null is passed to @QueryParam annotated argument
2012-07-09 13:15:32 +10:00
Adrian Cole
7a776c0572
Issue 1007: missing interface method for iso8601 codec
2012-07-06 22:27:54 -07:00
Adrian Cole
a73240f41b
Issue 1007: ios8601 codec
2012-07-06 21:23:10 -07:00
Adrian Cole
25e68b328c
Merge pull request #700 from aledsage/Issue-1004
...
Issue 1004: changes default SocketOpen impl
2012-07-06 14:38:02 -07:00
Adrian Cole
6359db8c5b
Merge pull request #702 from dkoper/master
...
decouple use of provider's SSLContext from trustAllCerts setting
2012-07-05 22:47:38 -07:00
Dies Koper
90df3a1e51
enable provider (like FGCP) specific subclasses to reuse these static classes
2012-07-06 13:01:20 +10:00
Dies Koper
6f81d8d0d3
improvement on previous change: decouple use of provider's SSLContext from trustAllCerts setting. This will allow providers to combine their SSLContext with the value of this option
2012-07-06 12:40:48 +10:00
Adrian Cole
270b0d92f6
Merge pull request #701 from dkoper/master
...
adding hook to allow provider specific SSLContext for HTTPS communication
2012-07-05 19:00:46 -07:00
Dies Koper
4cbf02f0bc
add hook for provider specific trusted SSLContext - in anticipation of FGCP support
2012-07-06 11:53:39 +10:00
Aled Sage
95c35487f0
Issue 1004: changes default SocketOpen impl
...
Sets it to InetSocketAddressConnect, instead of SocketOpenUnsupported.
Removes overriding the impl from Jsch and Sshj's client modules.
2012-07-05 16:00:29 +01:00
Adrian Cole
493de01cfa
Merge pull request #694 from aplowe/openstack-nova2
...
Openstack & further GSON work: changed new openstack modules to use Named and ConstructorProperties
2012-07-03 07:07:07 -07:00
Adam Lowe
7ed9ebda47
Moving TypeAdapterFactories that eliminate null values in Sets, Maps and Multimaps to jclouds-core.
2012-07-03 14:46:54 +01:00
Adrian Cole
222e2cc367
Merge pull request #693 from dkoper/master
...
don't overwrite USER_AGENT if already there
2012-07-03 06:28:29 -07:00
Adam Lowe
3243325878
openstack: adjusting deserialization to treat {} as null if (and ONLY if) a null pointer is thrown when attempting to construct an object from the empty json object ({})
2012-07-03 12:39:53 +01:00
Dies Koper
afdf7f2c37
don't override USER_AGENT if already specified by provider
2012-07-03 16:50:36 +10: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
07240f3e77
removed copy/paste code relating to expiration after write
2012-07-02 15:27:31 -07:00
Adrian Cole
ef9a69e7c3
added strict suppliers of scoped locations
2012-07-02 15:22:10 -07:00
Adrian Cole
763572f8ee
added paginated set functionality
2012-06-24 11:48:18 -07:00
Adam Lowe
21802d467a
Adjusting general strategy to accept @Named in place of @SerializedName.
...
Adding TypeAdapterFactory to handle deserialization based on constructor annotations (Inject/Named and/or ConstructorProperties).
2012-06-20 13:41:44 +03:00
Adrian Cole
3afdcb66b3
Issue 981:Quiet down jclouds.compute logger
2012-06-16 18:27:29 -04:00
Adrian Cole
5dd4f04ddf
allowed for mock testing
2012-06-16 18:19:59 -04:00
Adrian Cole
db8f869f5b
Issue 979:invalid endpoint returned when region name is the same as the provider
2012-06-15 23:36:21 -04:00
Adrian Cole
30ba717969
Issue 977:ec2 zones are not mapping to endpoints
2012-06-15 23:36:17 -04:00
Andrew Gaul
736554d049
Correct spelling errors
2012-06-14 10:03:39 -04:00
Ioannis Canellos
ff2c2fb3e3
Providers and APIs in OSGi can be discovered even if they are installed prior to the installation of jclouds-core.
2012-06-13 20:40:03 +03:00
Andrew Phillips
c0e23d4460
Updated authors and added a small correction to the changes in ca84fcc279
for supporting beta versions in JcloudsVersion
2012-06-13 10:34:12 -04:00
Ioannis Canellos
cf94e70a95
Improved discovery of api metadata inside OSGi.
2012-06-13 13:05:43 +03:00
Adrian Cole
9daee06e13
usage example
2012-06-12 09:09:44 -07:00
Ioannis Canellos
6ffe7085bc
Improved the discovery of providers inside OSGi
2012-06-12 00:38:01 +03:00
Adrian Cole
73e026b314
functionloader cleanup
2012-06-08 13:00:38 -07:00
Adam Lowe
18faff54b3
openstack-keystone: adding TypeAdaptorFactory to take care of unwrapping objects containing an array of "values" in place of a normal json array
2012-06-08 11:23:41 +01:00
Adrian Cole
d00e360d65
Issue 815: refactored the 3 major features of keystone into separate clients. removed cyclic dependency needed to support keystone controlling keystones in other regions
2012-06-06 23:14:23 -07:00
Adrian Cole
7203286a90
formatting
2012-06-04 11:42:08 -07:00
Adrian Cole
92d1f1b471
moved to explicitly adding clojure projects
2012-06-03 17:28:56 -07:00
Adrian Cole
5a3f6011a2
removed junit test dependency
2012-06-03 17:26:57 -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
8159b6618f
Merge pull request #659 from aplowe/openstack-nova2
...
Openstack Quantum: adding openstack network api
2012-06-01 15:55:07 -07:00
Adam Lowe
4008407de3
Adding support for @Path and @PathParam to delegate methods to RestAnnotationProcessor
2012-06-01 22:41:45 +01:00
vijaykiran
6d74805dd9
Issue-953 Make sure that port is set when modifying headers
2012-06-01 23:02:56 +02:00
vijaykiran
e0ad035606
Set port in the request header from the endpoint
2012-06-01 11:31:07 +02:00