CVS update: JGroups/src/org/jgroups/conf XmlConfigurator.java ProtocolData.java
"Bela Ban" <[email protected]> Wed, 15 Sep 2010 13:49:26 +0000
| Newsgroups | gmane.comp.java.javagroups.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: belaban
Date: 10/09/15 13:49:26
Modified: src/org/jgroups/conf XmlConfigurator.java ProtocolData.java
Log:
removed unneeded methods
Revision Changes Path
1.28 +1 -8 JGroups/src/org/jgroups/conf/XmlConfigurator.java
Index: XmlConfigurator.java
===================================================================
RCS file: /cvsroot/javagroups/JGroups/src/org/jgroups/conf/XmlConfigurator.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- XmlConfigurator.java 23 Oct 2009 17:01:40 -0000 1.27
+++ XmlConfigurator.java 15 Sep 2010 13:49:26 -0000 1.28
@@ -4,7 +4,7 @@
/**
* Uses XML to configure a protocol stack
* @author Vladimir Blagojevic
- * @version $Id: XmlConfigurator.java,v 1.27 2009/10/23 17:01:40 vlada Exp $
+ * @version $Id: XmlConfigurator.java,v 1.28 2010/09/15 13:49:26 belaban Exp $
*/
import org.jgroups.Global;
@@ -131,13 +131,6 @@
return mStackName;
}
- public void override(ProtocolData data) throws IOException {
- int index=mProtocolStack.indexOf(data);
- if(index < 0)
- throw new IOException("You can not override a protocol that doesn't exist");
- ProtocolData source=mProtocolStack.get(index);
- source.override(data.getParametersAsArray());
- }
public void add(ProtocolData data) {
mProtocolStack.add(data);
1.11 +2 -18 JGroups/src/org/jgroups/conf/ProtocolData.java
Index: ProtocolData.java
===================================================================
RCS file: /cvsroot/javagroups/JGroups/src/org/jgroups/conf/ProtocolData.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ProtocolData.java 13 May 2009 05:35:45 -0000 1.10
+++ ProtocolData.java 15 Sep 2010 13:49:26 -0000 1.11
@@ -5,7 +5,7 @@
* Data holder for protocol
* @author Filip Hanik (<a href="mailto:[email protected]">[email protected])
* @author Bela Ban
- * @version $Id: ProtocolData.java,v 1.10 2009/05/13 05:35:45 belaban Exp $
+ * @version $Id: ProtocolData.java,v 1.11 2010/09/15 13:49:26 belaban Exp $
*/
import java.util.HashMap;
@@ -26,19 +26,7 @@
* @param params
* @deprecated Use {@link #ProtocolData(String, String, ProtocolParameter[])} instead
*/
- @Deprecated
- public ProtocolData(String protocolName,
- String description,
- String className,
- ProtocolParameter[] params) {
- mProtocolName=protocolName;
- mClassName=className;
- if(params != null) {
- for(int i=0; i < params.length; i++) {
- mParameters.put(params[i].getName(), params[i]);
- }
- }
- }
+
public ProtocolData(String protocolName,
String className,
@@ -85,10 +73,6 @@
}
- public void override(ProtocolParameter[] params) {
- for(int i=0; i < params.length; i++)
- mParameters.put(params[i].getName(), params[i]);
- }
public String getProtocolString(boolean new_format) {
return new_format? getProtocolStringNewXml() : getProtocolString();
------------------------------------------------------------------------------
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