Package com.cloud.bridge.persist.dao

Examples of com.cloud.bridge.persist.dao.MHostDao.update()


      @Override
      public void run() {
        try {
          MHostDao mhostDao = new MHostDao();
          mhost.setLastHeartbeatTime(DateHelper.currentGMTTime());
          mhostDao.update(mhost);
          PersistContext.commitTransaction();
        } catch(Throwable e){
          logger.error("Unexpected exception " + e.getMessage(), e);
        } finally {
          PersistContext.closeSession();
View Full Code Here


      mhost.setHost(host);
      mhost.setLastHeartbeatTime(DateHelper.currentGMTTime());
      mhostDao.save(mhost);
    } else {
      mhost.setHost(host);
      mhostDao.update(mhost);
    }
  }

  private void setupLocalStorage(String storageRoot) {
    SHostDao shostDao = new SHostDao();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.