Search in sources :

Example 1 with EtcdService

use of com.chinaunicom.rundocker.service.EtcdService in project mesosFramework by zhizuqiu.

the class EtcdServiceTest method before.

@Before
public void before() {
    // http://192.168.84.131:2379
    Etcd etcd = EtcdClient.getInstance("http://10.124.142.127:5379");
    etcdService = new EtcdService(etcd);
    Config config = new Config();
    config.setFrameworkName("dockerFramework");
    AppDataStore.setConfig(config);
}
Also used : Etcd(com.chinaunicom.etcd.v2.Etcd) EtcdService(com.chinaunicom.rundocker.service.EtcdService) Config(com.chinaunicom.rundocker.store.Config) Before(org.junit.Before)

Aggregations

Etcd (com.chinaunicom.etcd.v2.Etcd)1 EtcdService (com.chinaunicom.rundocker.service.EtcdService)1 Config (com.chinaunicom.rundocker.store.Config)1 Before (org.junit.Before)1