Re: [jgroups-dev] Question on FD
Bela Ban <[email protected]> Tue, 13 Mar 2012 06:26:25 +0100
| Newsgroups | gmane.comp.java.javagroups.devel |
|---|---|
| Message-ID | <[email protected]> |
On 3/12/12 11:00 PM, Sundararajan, Mukund wrote: > Hi Bela, > > Are properties of the FD protocol (timeout and max_retries) configurable programmatically at runtime? We are using version 2.12. We want to be able to start our cluster with a default timeout and then later on be able to configure the timeout and/or max_retries from an administrator UI. Can we apply the changes to a connected JChannel without requiring a restart of the channel? Yes and no: you can change max_tries and timeout at runtime, but they won't have any effect on the Monitor and Braodcast tasks, which were already started with timeout interval. You'd have to restart them programmatically as well, using stopFailureDetection() / startFailureDetection(). Example: JChannel ch; FD fd=(FD)ch.getProtocolStack().findProtocol(FD.class); fd.setMaxTries(...); fd.setTimeout(...); fd.stopFailureDetection(); fd.startFailureDetection(); -- Bela Ban, JGroups lead (http://www.jgroups.org) ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Javagroups-development mailing list