Thanks guys. What I'm *really* after here is "best practice" for releasing resources on failed nodes and what not. i.e. I'm writing my own retry "loop" that iterates through the available nodes, and when one throws an exception (i.e. connection failed), I want to make sure I'm not creating resource leaks by being careless.
Dan On Sun, May 29, 2011 at 7:35 AM, Ryan Smith <[email protected]> wrote: > Sorry, the email got sent before I finished. I was just going to implement > a blocked ip list for you but then I realized how easy it was. It shouldnt > be too hard to implement the blacklist. > Good luck! > > On Sun, May 29, 2011 at 7:34 AM, Ryan Smith > <[email protected]>wrote: > >> List<String> blacklistedIPs = new ArrayList<String>(); >> >> if (!isIpAvailable(myIP)) { >> if () { >> >> >> } >> } >> >> On Sat, May 28, 2011 at 12:51 PM, Dan Checkoway <[email protected]>wrote: >> >>> Ok, thanks. So it does sound like I'm going to need to roll my own. >>> No existing examples of this out there already? i.e. something that >>> maintains pools of HttpClient objects or whatever, and does retry >>> periodically after failover, using expoential backoff, or what not. >>> >>> No problem rolling my own, but I'd love to reuse somebody else's hard >>> work if possible. :-) >>> >>> Dan >>> >>> On Sat, May 28, 2011 at 12:44 PM, Oleg Kalnichevski <[email protected]> >>> wrote: >>> > On Sat, 2011-05-28 at 12:37 -0400, Dan Checkoway wrote: >>> >> Oleg, >>> >> >>> >> Thanks for the reply. Ideally the "spray" approach is what I'm looking >>> for. >>> >> >>> >> Dan >>> > >>> > Dan, >>> > >>> > This is not supported out of the box but should not be that difficult to >>> > implement. You just need to maintain a list of IP addresses or hostnames >>> > and be able to temporarily 'blacklist' those that do not respond. >>> > >>> > Oleg >>> > >>> > >>> > --------------------------------------------------------------------- >>> > To unsubscribe, e-mail: [email protected] >>> > For additional commands, e-mail: [email protected] >>> > >>> > >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
