Package at.jku.fim.oss.dynis.server.interfaces

Examples of at.jku.fim.oss.dynis.server.interfaces.UpdateInterface


   * @throws Exception, if something unexpected happens, e.g. it can't find the Updater-
   * Class the user specified or the Timer throws a InterruptedException
   */
  private void run(CommandLine line) throws Exception{
    Class updaterClass=Class.forName(line.getOptionValue("updater"));
    UpdateInterface updater=(UpdateInterface)updaterClass.newInstance();
    long delay=Long.parseLong(line.getOptionValue("timer"));
    Timer timer=new Timer();
    timer.scheduleAtFixedRate(new UpdateTimerTask(updater,line.getOptionValue("user"),line.getOptionValue("pass"),line.getOptionValue("url")),0,delay);
    while(true) {
      Thread.sleep(delay-20);
View Full Code Here

TOP

Related Classes of at.jku.fim.oss.dynis.server.interfaces.UpdateInterface

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.