> + checkArgument(ttl >= getInteger(TTL_MIN_IN_SEC), "ttl must be >=
> %s", getInteger(TTL_MIN_IN_SEC));
> + checkArgument(ttl <= getInteger(TTL_MAX_IN_SEC), "ttl must be <=
> %s", getInteger(TTL_MAX_IN_SEC));
> + this.ttl = ttl;
> + return self();
> + }
> +
> + /**
> + * @param json Specifies an arbitrary JSON document that constitutes
> the body of the message being sent.
> + * The size of the message allowed in one message is
> configurable by your cloud provider.
> + * To discover this use {@code
> Integer.getInteger(MarconiProperties.MESSAGE_BODY_MAX_IN_BYTES)}.
> + * This method already checks that range.
> + */
> + public Builder body(String json) {
> + checkNotNull(json, "body required");
> + checkArgument(json.getBytes().length <=
> getInteger(MESSAGE_BODY_MAX_IN_BYTES),
> + "json size must be <= %s bytes",
> getInteger(MESSAGE_BODY_MAX_IN_BYTES));
Ah, so I guess that lack of a Guice context here (and above) is the reason for
the system properties? How do we solve that elsewhere in jclouds..?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/46/files#r7270907