Search in sources :

Example 16 with DockerStatus

use of com.chinaunicom.rundocker.bean.DockerStatus in project mesosFramework by zhizuqiu.

the class ToolsTest method before.

@Before
public void before() {
    String id = "/2048/1";
    DockerJob dockerJob = new DockerJob();
    dockerJob.setId(id);
    AppDataStore.jobsPut(id.replaceAll("/", "."), dockerJob);
    DockerStatus dockerStatus = new DockerStatus();
    dockerStatus.setId(id);
    AppDataStore.statusPut(id.replaceAll("/", "."), dockerStatus);
    AppDataStore.setConfig(new Config());
    AppDataStore.getConfig().setFrameworkName("2048");
}
Also used : Config(com.chinaunicom.rundocker.store.Config) DockerStatus(com.chinaunicom.rundocker.bean.DockerStatus) DockerJob(com.chinaunicom.rundocker.bean.DockerJob) Before(org.junit.Before)

Aggregations

DockerStatus (com.chinaunicom.rundocker.bean.DockerStatus)16 DockerJob (com.chinaunicom.rundocker.bean.DockerJob)9 Task (com.chinaunicom.rundocker.bean.returnparm.Task)3 EtcdService (com.chinaunicom.rundocker.service.EtcdService)3 Gson (com.google.gson.Gson)3 ArrayList (java.util.ArrayList)3 Protos (org.apache.mesos.Protos)3 ResponseNode (com.chinaunicom.etcd.v2.model.ResponseNode)2 AppDataStore (com.chinaunicom.rundocker.store.AppDataStore)2 JsonSyntaxException (com.google.gson.JsonSyntaxException)2 Test (org.junit.Test)2 ClientException (com.chinaunicom.etcd.v2.exception.ClientException)1 ServerException (com.chinaunicom.etcd.v2.exception.ServerException)1 Node (com.chinaunicom.etcd.v2.model.Node)1 ResponseNodeAndPrevnode (com.chinaunicom.etcd.v2.model.ResponseNodeAndPrevnode)1 HostAndPort (com.chinaunicom.rundocker.bean.HostAndPort)1 Jobs (com.chinaunicom.rundocker.bean.returnparm.Jobs)1 MesosService (com.chinaunicom.rundocker.service.MesosService)1 OfferTemp (com.chinaunicom.rundocker.service.OfferTemp)1 Config (com.chinaunicom.rundocker.store.Config)1