incubator-hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Hama Wiki] Update of "MessageConvetions" by thomasjungblut
Date Wed, 15 Jun 2011 21:21:25 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hama Wiki" for change notification.

The "MessageConvetions" page has been changed by thomasjungblut:

New page:
= Message Conventions =

BSP is about message passing, so we decided to put up some conventions. 

 * Every message is a subclass of BSPMessage, hence it implements getTag(), getData(), read(IN)
and write(OUT).
 * If you are using subclasses of Object in your tag and data field, feel free to change the
return type of the overridden methods getTag() and getData() to the types you've provided.

== Naming Conventions ==

 * The default type for a "tag" is always String.
 * If we implement a Message that has a primitive as the data field and the tag is default,
we call the class PrimitiveMessage. E.G. BooleanMessage for boolean as data and String as
 * If we use another type as a "tag" than String we use a combined name: TagDataMessage. E.G.
IntegerDoubleMessage for integer as a tag and double as the data.

View raw message