[
https://issues.apache.org/jira/browse/HAMA-852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13873228#comment-13873228
]
Hudson commented on HAMA-852:
-----------------------------
SUCCESS: Integrated in Hama-trunk #241 (See
[https://builds.apache.org/job/Hama-trunk/241/])
HAMA-852: Add MessageClass property in BSPJob (millecker: rev 1558725)
* /hama/trunk/CHANGES.txt
* /hama/trunk/core/src/main/java/org/apache/hama/Constants.java
* /hama/trunk/core/src/main/java/org/apache/hama/bsp/BSPJob.java
* /hama/trunk/core/src/main/java/org/apache/hama/pipes/Submitter.java
*
/hama/trunk/core/src/main/java/org/apache/hama/pipes/protocol/UplinkReader.java
* /hama/trunk/core/src/test/java/org/apache/hama/pipes/TestPipes.java
> Add MessageClass property in BSPJob
> -----------------------------------
>
> Key: HAMA-852
> URL: https://issues.apache.org/jira/browse/HAMA-852
> Project: Hama
> Issue Type: Improvement
> Components: bsp core, pipes
> Affects Versions: 0.6.3
> Reporter: Martin Illecker
> Priority: Minor
> Labels: pipes
> Fix For: 0.7.0
>
> Attachments: HAMA-852_v1.patch
>
>
> h3. Add MessageClass property in BSPJob
> {code}
> + /**
> + * Get the message class.
> + *
> + * @return the message class.
> + */
> + public Class<?> getMessageClass() {
> + return conf.getClass(Constants.MESSAGE_CLASS, Text.class, Object.class);
> + }
> +
> + /**
> + * Set the message class.
> + *
> + * @param theClass the message class.
> + */
> + public void setMessageClass(Class<?> theClass) {
> + conf.setClass(Constants.MESSAGE_CLASS, theClass, Object.class);
> + }
> {code}
> Use *Constans.MESSAGE_CLASS*
> {code}
> - public static final String MESSAGE_CLASS = "bsp.message.type.class";
> + public static final String MESSAGE_CLASS = "bsp.message.class";
> {code}
> Then it would be possible to set the MessageClass by
> {code}
> - bsp.set("bsp.message.class", DoubleWritable.class.getName());
> + bsp.setMessageClass(DoubleWritable.class);
> {code}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)