Java Code Examples for backtype.storm.Config.TASK_HEARTBEAT_FREQUENCY_SECS

The following are Jave code examples for showing how to use TASK_HEARTBEAT_FREQUENCY_SECS of the backtype.storm.Config class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: jstorm-0.9.6.3-   File: TaskHeartbeatRunable.java   Source Code and License Vote up 5 votes
public TaskHeartbeatRunable(WorkerData workerData) {
	
	
	this.zkCluster = workerData.getZkCluster();
	this.topology_id = workerData.getTopologyId();
	this.uptime = new UptimeComputer();;
	this.storm_conf = workerData.getStormConf();
	this.active = workerData.getActive();

	String key = Config.TASK_HEARTBEAT_FREQUENCY_SECS;
	Object time = storm_conf.get(key);
	frequence = JStormUtils.parseInt(time, 10);

}
 
Example 2
Project: learn_jstorm   File: TaskHeartbeatRunable.java   Source Code and License Vote up 5 votes
public TaskHeartbeatRunable(WorkerData workerData) {
	
	
	this.zkCluster = workerData.getZkCluster();
	this.topology_id = workerData.getTopologyId();
	this.uptime = new UptimeComputer();;
	this.storm_conf = workerData.getStormConf();
	this.active = workerData.getActive();

	String key = Config.TASK_HEARTBEAT_FREQUENCY_SECS;
	Object time = storm_conf.get(key);
	frequence = JStormUtils.parseInt(time, 10);

}
 
Example 3
Project: Tstream   File: TaskHeartbeatRunable.java   Source Code and License Vote up 5 votes
public TaskHeartbeatRunable(WorkerData workerData) {
	
	
	this.zkCluster = workerData.getZkCluster();
	this.topology_id = workerData.getTopologyId();
	this.uptime = new UptimeComputer();;
	this.storm_conf = workerData.getStormConf();
	this.active = workerData.getActive();

	String key = Config.TASK_HEARTBEAT_FREQUENCY_SECS;
	Object time = storm_conf.get(key);
	frequence = JStormUtils.parseInt(time, 10);

}