One possibility may be to consider makeing LookupLocator an interface
given that there are only two methods that really matter.
Implementations could support a socket based protocol like it is now
and other protocols in the future. I know that this would affects
current deployments; but it gives you a lot of bang for your buck.
public ServiceRegistrar getRegistrar()
public ServiceRegistrar getRegistrar( int timeout )
On Tue, Nov 13, 2012 at 5:31 AM, Peter Firmstone <[email protected]> wrote:
> Presently LookupLocator is practically a URI of the form
> "jini://hostname:port"
>
> LookupLocator is constructed during multicast discovery at the client.
>
> ConstrainableLookupLocator is a subclass that implements constraints.
>
> LookupLocatorDiscovery also accepts LookupLocator to perform unicast
> discovery using constraints.
>
> We modified LookupLocator to accept a SocketFactory via a constructor
> (approx 2 years ago).
>
> LookupLocator is built around tcp, but there are obviously many protocols.
>
> Any ideas?
>
> Oh I found a bug in LookupLocator on ARM btw:
>
> Seems to be something wrong with the parser, dropping the port number,
> getting closer to fixing it at least now I know why port 4160 is always in
> use ;).
>
> BaseQATest.startInitLookups FINE: initial lookups started != initial
> lookups wanted
> BaseQATest.startInitLookups FINE: initial lookups started --
> BaseQATest.**displayLookupStartInfo FINE: # of lookups = 3
> BaseQATest.**displayLookupStartInfo FINE: locator lookup[0] =
> ConstrainableLookupLocator[[**jini://je-cal-12.apache.org:**37955/<http://je-cal-12.apache.org:37955/>],
> [null]]
> GroupsUtil.displayGroupSet FINE: group[0] = LLDGroup0_A_je-cal-12_*
> *1352811309324
> GroupsUtil.displayGroupSet FINE: group[1] = LLDGroup0_B_je-cal-12_*
> *1352811309324
> GroupsUtil.displayGroupSet FINE: group[2] = LLDGroup0_C_je-cal-12_*
> *1352811309324
> BaseQATest.**displayLookupStartInfo FINE: locator lookup[1] =
> ConstrainableLookupLocator[[**jini://je-cal-12.apache.org:**49744/<http://je-cal-12.apache.org:49744/>],
> [null]]
> GroupsUtil.displayGroupSet FINE: group[0] = LLDGroup1_A_je-cal-12_*
> *1352811309324
> GroupsUtil.displayGroupSet FINE: group[1] = LLDGroup1_B_je-cal-12_*
> *1352811309324
> GroupsUtil.displayGroupSet FINE: group[2] = LLDGroup1_C_je-cal-12_*
> *1352811309324
> GroupsUtil.displayGroupSet FINE: group[3] = LLDGroup1_D_je-cal-12_*
> *1352811309324
> BaseQATest.**displayLookupStartInfo FINE: locator lookup[2] =
> ConstrainableLookupLocator[[**jini://je-cal-12.apache.org:**57373/<http://je-cal-12.apache.org:57373/>],
> [null]]
> GroupsUtil.displayGroupSet FINE: group[0] = LLDGroup2_A_je-cal-12_*
> *1352811309324
> GroupsUtil.displayGroupSet FINE: group[1] = LLDGroup2_B_je-cal-12_*
> *1352811309324
> GroupsUtil.displayGroupSet FINE: group[2] = LLDGroup2_C_je-cal-12_*
> *1352811309324
> BaseQATest.startInitLookups FINE: initial lookups wanted --
> BaseQATest.**displayLookupStartInfo FINE: # of lookups = 3
> BaseQATest.**displayLookupStartInfo FINE: locator lookup[0] =
> ConstrainableLookupLocator[[**jini://je-cal-12.apache.org:**4160/<http://je-cal-12.apache.org:4160/>],
> [null]]
> GroupsUtil.displayGroupSet FINE: group[0] = LLDGroup0_A_je-cal-12_*
> *1352811309324
> GroupsUtil.displayGroupSet FINE: group[1] = LLDGroup0_B_je-cal-12_*
> *1352811309324
> GroupsUtil.displayGroupSet FINE: group[2] = LLDGroup0_C_je-cal-12_*
> *1352811309324
> BaseQATest.**displayLookupStartInfo FINE: locator lookup[1] =
> ConstrainableLookupLocator[[**jini://je-cal-12.apache.org:**4160/<http://je-cal-12.apache.org:4160/>],
> [null]]
> GroupsUtil.displayGroupSet FINE: group[0] = LLDGroup1_A_je-cal-12_*
> *1352811309324
> GroupsUtil.displayGroupSet FINE: group[1] = LLDGroup1_B_je-cal-12_*
> *1352811309324
> GroupsUtil.displayGroupSet FINE: group[2] = LLDGroup1_C_je-cal-12_*
> *1352811309324
> GroupsUtil.displayGroupSet FINE: group[3] = LLDGroup1_D_je-cal-12_*
> *1352811309324
> BaseQATest.**displayLookupStartInfo FINE: locator lookup[2] =
> ConstrainableLookupLocator[[**jini://je-cal-12.apache.org:**4160/<http://je-cal-12.apache.org:4160/>],
> [null]]
> GroupsUtil.displayGroupSet FINE: group[0] = LLDGroup2_A_je-cal-12_*
> *1352811309324
> GroupsUtil.displayGroupSet FINE: group[1] = LLDGroup2_B_je-cal-12_*
> *1352811309324
> GroupsUtil.displayGroupSet FINE: group[2] = LLDGroup2_C_je-cal-12_*
> *1352811309324
> BaseQATest.tearDown FINE: tearDown - terminating lookup service(s)
>
>
>
>
>
>
>