public void startHeartbeat(Database database,String name) throws SQLException {
  ArrayList<Column> whereClause=new ArrayList<Column>();
  ArrayList<Column> values=new ArrayList<Column>();
  Timestamp now=new Timestamp(System.currentTimeMillis());
  if (logger.isDebugEnabled())   logger.debug("Processing master heartbeat update: name=" + name + " time="+ now);
  hbId.setValue(KEY);
  whereClause.add(hbId);
  hbSourceTstamp.setValue(now);
  hbSalt.setValue(saltValue.getAndIncrement());
  hbName.setValue(name);
  values.add(hbSourceTstamp);
  values.add(hbSalt);
  values.add(hbName);
  database.update(hbTable,whereClause,values);
}

public void startHeartbeat ( Database database , String name ) throws SQLException { ArrayList < Column > whereClause = new ArrayList < Column > ( ) ; ArrayList < Column > values = new ArrayList < Column > ( ) ; Timestamp now = new Timestamp ( System . currentTimeMillis ( ) ) ; if ( logger . isDebugEnabled ( ) ) logger . debug ( "Processing master heartbeat update: name=" + name + " time=" + now ) ; hbId . setValue ( KEY ) ; whereClause . add ( hbId ) ; hbSourceTstamp . setValue ( now ) ; hbSalt . setValue ( saltValue . getAndIncrement ( ) ) ; hbName . setValue ( name ) ; values . add ( hbSourceTstamp ) ; values . add ( hbSalt ) ; values . add ( hbName ) ; database . update ( hbTable , whereClause , values ) ; }
execute this call to start a named heartbeat on the master . the heartbeat table update must be logged as we will expect to see it as a dbmsevent .
