incubator-hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hama Wiki] Trivial Update of "Architecture" by Edward J. Yoon
Date Sun, 27 Jun 2010 07:23:05 GMT
Dear Wiki user,

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

The "Architecture" page has been changed by Edward J. Yoon.
http://wiki.apache.org/hama/Architecture?action=diff&rev1=127&rev2=128

--------------------------------------------------

  {{{
  public class BSPEaxmple {
  
-   class MyBSP extends BSP {
+   public static class MyBSP extends BSP {
- 
-     public MyBSP(Configuration conf) throws IOException {
-       super(conf);
-       // TODO Auto-generated constructor stub
-     }
  
      @Override
      public void bsp(BSPPeer bspPeer) throws IOException, KeeperException,
@@ -75, +70 @@

        // Receive current messages
        bspPeer.getCurrentMessage();
      }
+ 
+     @Override
+     public Configuration getConf() {
+       return conf;
-     
+     }
+ 
+     @Override
+     public void setConf(Configuration conf) {
+       this.conf = conf;
+     }    
+ 
    }
    
    // BSP job configuration 
    public void main(String[] args) throws Exception {
-     BSPJob bsp = new BSPJob(new HamaConfiguration());
+     BSPJob bsp = new BSPJob(new HamaConfiguration(), BSPEaxmple.class);
      // Set the job name
      bsp.setJobName("My BSP Job");
      bsp.setBspClass(MyBSP.class);

Mime
View raw message