//Constructor public SignalRBroadcastBolt(Context ctx) { Context.Logger.Info("SignalRBroadcastBolt constructor called"); //Set context this.ctx = ctx; //Define the schema for the incoming tuples from spout Dictionary <string, List <Type> > inputSchema = new Dictionary <string, List <Type> >(); //Input schema counter updates inputSchema.Add("default", new List <Type>() { typeof(string), typeof(long), typeof(string), typeof(string), typeof(string), typeof(int) }); //Declare both incoming and outbound schemas this.ctx.DeclareComponentSchema(new ComponentStreamSchema(inputSchema, null)); // Initialize HBase connection client = new HBaseStore(); // Read current row count cell RowCount = client.GetRowCount(); // Initialize SignalR connection StartSignalRHubConnection(); }
//Constructor public HBaseWriterBolt(Context ctx) { Context.Logger.Info("HBaseWriterBolt constructor called"); //Set context this.ctx = ctx; //Define the schema for the incoming tuples from spout Dictionary<string, List<Type>> inputSchema = new Dictionary<string, List<Type>>(); //In this case, just a string tuple inputSchema.Add("default", new List<Type>() { typeof(string), typeof(long), typeof(string), typeof(string), typeof(string), typeof(int) }); //Declare both incoming and outbound schemas this.ctx.DeclareComponentSchema(new ComponentStreamSchema(inputSchema, null)); // Initialize HBase connection client = new HBaseStore(); }
//Constructor public HBaseWriterBolt(Context ctx) { Context.Logger.Info("HBaseWriterBolt constructor called"); //Set context this.ctx = ctx; //Define the schema for the incoming tuples from spout Dictionary <string, List <Type> > inputSchema = new Dictionary <string, List <Type> >(); //In this case, just a string tuple inputSchema.Add("default", new List <Type>() { typeof(string), typeof(long), typeof(string), typeof(string), typeof(string), typeof(int) }); //Declare both incoming and outbound schemas this.ctx.DeclareComponentSchema(new ComponentStreamSchema(inputSchema, null)); // Initialize HBase connection client = new HBaseStore(); }
//Constructor public SignalRBroadcastBolt(Context ctx) { Context.Logger.Info("SignalRBroadcastBolt constructor called"); //Set context this.ctx = ctx; //Define the schema for the incoming tuples from spout Dictionary<string, List<Type>> inputSchema = new Dictionary<string, List<Type>>(); //Input schema counter updates inputSchema.Add("default", new List<Type>() { typeof(string), typeof(long), typeof(string), typeof(string), typeof(string), typeof(int) }); //Declare both incoming and outbound schemas this.ctx.DeclareComponentSchema(new ComponentStreamSchema(inputSchema, null)); // Initialize HBase connection client = new HBaseStore(); // Read current row count cell RowCount = client.GetRowCount(); // Initialize SignalR connection StartSignalRHubConnection(); }