1.use SystemTimer.currentTime to replace System.currentTimeMilliSeconds;2.redefine the ChannnelStateListener API;3.add master-slave configuration for database