[Jboss-cvs] JBossAS SVN: r56594 - branches/Branch_4_0/cluster/src/main/org/jboss/ha/framework/server
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Sep 5 22:54:40 EDT 2006
Author: bstansberry at jboss.com
Date: 2006-09-05 22:54:39 -0400 (Tue, 05 Sep 2006)
New Revision: 56594
Modified:
branches/Branch_4_0/cluster/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java
Log:
[JBAS-3593] Add a Marshaller to HAPartitionImpl
Modified: branches/Branch_4_0/cluster/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java
===================================================================
--- branches/Branch_4_0/cluster/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java 2006-09-05 23:35:15 UTC (rev 56593)
+++ branches/Branch_4_0/cluster/src/main/org/jboss/ha/framework/server/HAPartitionImpl.java 2006-09-06 02:54:39 UTC (rev 56594)
@@ -202,6 +202,7 @@
this.channel = channel;
this.partitionName = partitionName;
this.history = new Vector();
+ this.setMarshaller(new MarshallerImpl());
logHistory ("Partition object created");
}
@@ -1296,7 +1297,7 @@
catch (Exception ignored){}
}
- /** A simply data class containing the view change event needed to
+ /** A simple data class containing the view change event needed to
* message the HAMembershipListeners
*/
private static class ViewChangeEvent
@@ -1307,7 +1308,22 @@
Vector allMembers;
Vector originatingGroups;
}
+
+ private class MarshallerImpl implements org.jgroups.blocks.RpcDispatcher.Marshaller
+ {
+ public Object objectFromByteBuffer(byte[] buf) throws Exception
+ {
+ return HAPartitionImpl.objectFromByteBuffer(buf);
+ }
+
+ public byte[] objectToByteBuffer(Object obj) throws Exception
+ {
+ return HAPartitionImpl.objectToByteBuffer(obj);
+ }
+
+ }
+
// Private -------------------------------------------------------
// Inner classes -------------------------------------------------
More information about the jboss-cvs-commits
mailing list