Package demo.demo1

Source Code of demo.demo1.ConfigChangeDemo

package demo.demo1;

import java.util.Timer;
import java.util.TimerTask;

import demo.conf.DemoConf;

public class ConfigChangeDemo {

  public static void main(String args[]){
    Timer timer = new Timer();
    try {
      TimerTask task = new ChangeZkTask(DemoConf.host, DemoConf.root);
      timer.schedule(task, 0, 5000);   
    } catch(Exception e){
      e.printStackTrace();
    }
  }

}
TOP

Related Classes of demo.demo1.ConfigChangeDemo

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.