CVS update: JGroups/src/org/jgroups/stack Protocol.java
"Bela Ban" <[email protected]> Thu, 30 Sep 2010 09:47:54 +0000
| Newsgroups | gmane.comp.java.javagroups.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: belaban
Date: 10/09/30 09:47:54
Modified: src/org/jgroups/stack Protocol.java
Log:
added ergonomics flag (https://jira.jboss.org/browse/JGRP-1052)
Revision Changes Path
1.79 +12 -1 JGroups/src/org/jgroups/stack/Protocol.java
Index: Protocol.java
===================================================================
RCS file: /cvsroot/javagroups/JGroups/src/org/jgroups/stack/Protocol.java,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -r1.78 -r1.79
--- Protocol.java 9 Sep 2010 08:20:08 -0000 1.78
+++ Protocol.java 30 Sep 2010 09:47:54 -0000 1.79
@@ -38,7 +38,7 @@
* constructor !</b>
*
* @author Bela Ban
- * @version $Id: Protocol.java,v 1.78 2010/09/09 08:20:08 belaban Exp $
+ * @version $Id: Protocol.java,v 1.79 2010/09/30 09:47:54 belaban Exp $
*/
@DeprecatedProperty(names={"down_thread","down_thread_prio","up_thread","up_thread_prio"})
public abstract class Protocol {
@@ -48,6 +48,9 @@
@Property(description="Determines whether to collect statistics (and expose them via JMX). Default is true",writable=true)
protected boolean stats=true;
+ @Property(name="Enables ergonomics: dynamically find the best values for properties at runtime")
+ protected boolean ergonomics=false;
+
/** The name of the protocol. Is by default set to the protocol's classname. This property should rarely need to
* be set, e.g. only in cases where we want to create more than 1 protocol of the same class in the same stack */
@Property(name="name",description="Give the protocol a different name if needed so we can have multiple " +
@@ -78,6 +81,14 @@
return log.getLevel();
}
+ public boolean isErgonomics() {
+ return ergonomics;
+ }
+
+ public void setErgonomics(boolean ergonomics) {
+ this.ergonomics=ergonomics;
+ }
+
/**
* Configures the protocol initially. A configuration string consists of name=value
* items, separated by a ';' (semicolon), e.g.:<pre>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev