View Javadoc

1   package com.ning.metrics.goodwill.modules;
2   
3   import java.io.ByteArrayOutputStream;
4   
5   public class ThriftRegistrar
6   {
7       private final ByteArrayOutputStream storeInJSON;
8       private String actionCoreURL;
9   
10      public ThriftRegistrar(ByteArrayOutputStream storeInJSON)
11      {
12          this.storeInJSON = storeInJSON;
13      }
14  
15      public ByteArrayOutputStream getStoreInJSON()
16      {
17          return storeInJSON;
18      }
19  
20      /**
21       * Setter for the actionCoreURL field.
22       * The action core is an open-source HDFS front-end, similar to the one provided by the Namenode,
23       * but on steroids.
24       *
25       * @param actionCoreURL URL to the action core instance
26       * @link http://github.com/pierre/action-core
27       */
28      public void setActionCoreURL(String actionCoreURL)
29      {
30          this.actionCoreURL = actionCoreURL;
31      }
32  
33      public String getActionCoreURL()
34      {
35          return actionCoreURL;
36      }
37  }