ZkStoreConfDemo implements Closeable { public DimitPath createChannelGroupConf(String did, String id, String name) throws IOException { long ct = System.currentTimeMillis(); ChannelGroupConf storeConf = ChannelGroupConf.newBuilder().setCt(ct).setDid(did).setId(id).setMt(ct).setName(name).setV(Const.V).build(); DimitPath path = confPath.newPath(did).newPath(id); path = dss.io().write(path, storeConf, StoreAttribute.PERSISTENT); LOG.info("create ChannelGroupConf {} {} {}", id, name, path); return path; } ZkStoreConfDemo(String uri); DimitStoreSystem storeSystem(); DimitPath createDimitConf(String id, String name); DimitPath createChannelGroupConf(String did, String id, String name); DimitPath createChannelConf(String did, String gid, String id, String name, ChannelStatus status, int priority, float tps,
            List<String> tags); void removeDimitConf(String id); @Override void close();  }
@Test public void createChannelGroupConf() throws IOException { DimitPath path = zkStore.createChannelGroupConf("voice", "vcode", "验证码通道组"); DimitConf dimitConf = path.<DimitConf> toStore(DimitConf.class); LOG.info("read dimit {} {}", path, dimitConf); }