Thanks for the quick reply, Andrew!
I do think it's working... I've tried specifying "PUBLIC" (which I've
made impossible via firewall) and it (correctly) times out on me, so it
is behaving as expected. It's just more of a black box to me as to why
it is!
Unfortunately, I am unable to import AllowedInterfaces because it is a
@VisibleForTesting enum, so is otherwise inaccessible (i.e., I can't do
AllowedInterfaces.PRIVATE).
Similarly, it looks like an explicit conversion using
AllowedInterfaces.valueOf("PRIVATE") should work for string-to-Enum
conversion, but is also not possible for me to do because of the
visibility of AllowedInterfaces.
My concern (possibly based on Java inexperience/ignorance) is whether my
string value "PRIVATE" is properly translated to the enum
AllowedInterfaces.PRIVATE internally using other methods that I may be
unaware of. If it is (which it seems to be), I'm good to go.
Dan
On 6/2/14, 10:48 AM, Andrew Phillips wrote:
I've tried the following:
overrides.setProperty(SOCKET_FINDER_ALLOWED_INTERFACES, "PRIVATE");
That looks correct to me, Dan. If the conversion from a string is not
working (it may only work as a string if set via a -D property on the
command line? I'm not sure), you may want to import
org.jclouds.compute.util.ConcurrentOpenSocketFinder.AllowedInterfaces
and set the value to AllowedInterfaces.PRIVATE [1] instead.
Hope that helps!
ap
[1]
https://git-wip-us.apache.org/repos/asf?p=jclouds.git;a=commitdiff;h=5cc4659