Package org.jayasoft.woj.server.data

Examples of org.jayasoft.woj.server.data.UpdateTimerDao


  private Map getNewFilesName(FTPClient client) {
    FTPFile[] ftpFs;
    Map result = new HashMap();
    try {
      ftpFs = client.listFiles();
      UpdateTimerDao uTimerDao = WOJServer.getInstance().getDataService().getUpdateTimerDao();
      UpdateTimer[] timers = uTimerDao.getAllTimers();
      fillUploadMap(result, ftpFs, timers);
    } catch (IOException e) {
      LOGGER.warn("Unable to get list of FTP files");
    }
    return result;
View Full Code Here


    LOGGER.info("Updating timer info");
    updateUpdateTimers((UpdateTimer[]) namesByTimer.keySet().toArray(new UpdateTimer[namesByTimer.keySet().size()]));
  }
 
  public void updateUpdateTimers(UpdateTimer[] timers) {
    UpdateTimerDao dao = WOJServer.getInstance().getDataService().getUpdateTimerDao();
    for (int i = 0; i < timers.length; i++) {
      UpdateTimer timer = timers[i];
      dao.update(timer);
    }
  }
View Full Code Here

TOP

Related Classes of org.jayasoft.woj.server.data.UpdateTimerDao

Copyright © 2018 www.massapicom. 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.