@@ -0,0 +1,260 @@
+package mclab;%0Apublic class HeartbeatThread implements Runnable%7B%C2%A0%0Aprivate MySQLdb db;%C2%A0 %C2%A0public HeartbeatThread(MySQLdb db) %7B%C2%A0%C2%A0%C2%A0 %C2%A0%C2%A0this.db = db;%C2%A0%C2%A0 %C2%A0%7D%C2%A0public HeartbeatThread() %7B%C2%A0%C2%A0// TODO Auto-generated constructor stub%C2%A0%7D%C2%A0%C2%A0public void run() %7B%C2%A0%C2%A0db.heartbeat();%C2%A0%7D%7D%0A

Create HeartbeatThread.java