本文整理汇总了Java中de.cinovo.cloudconductor.api.model.ConfigFile类的典型用法代码示例。如果您正苦于以下问题:Java ConfigFile类的具体用法?Java ConfigFile怎么用?Java ConfigFile使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ConfigFile类属于de.cinovo.cloudconductor.api.model包,在下文中一共展示了ConfigFile类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: save
import de.cinovo.cloudconductor.api.model.ConfigFile; //导入依赖的package包/类
@Override
@Transactional
public void save(String name, ConfigFile configFile) {
this.assertName(name, configFile);
EFile cf = this.amc.toModel(configFile);
if ((configFile.getPkg() != null) && !configFile.getPkg().isEmpty()) {
EPackage pkg = this.findByName(this.dpkg, configFile.getPkg());
cf.setPkg(pkg);
} else {
cf.setPkg(null);
}
if ((configFile.getDependentServices() != null) && !configFile.getDependentServices().isEmpty()) {
List<EService> services = this.findByName(this.dservice, configFile.getDependentServices());
cf.setDependentServices(services);
} else {
cf.setDependentServices(null);
}
this.dcf.save(cf);
}
示例2: get
import de.cinovo.cloudconductor.api.model.ConfigFile; //导入依赖的package包/类
@Override
@Transactional
public ConfigFile[] get() {
Set<ConfigFile> result = new HashSet<>();
for (EFile m : this.dcf.findList()) {
result.add(MAConverter.fromModel(m));
}
return result.toArray(new ConfigFile[result.size()]);
}
示例3: getConfigFiles
import de.cinovo.cloudconductor.api.model.ConfigFile; //导入依赖的package包/类
@Override
@Transactional
public ConfigFile[] getConfigFiles(String template) {
RESTAssert.assertNotEmpty(template);
Set<ConfigFile> result = new HashSet<>();
ETemplate eTemplate = this.dtemplate.findByName(template);
if ((eTemplate != null) && (eTemplate.getConfigFiles() != null)) {
for (EFile m : eTemplate.getConfigFiles()) {
result.add(MAConverter.fromModel(m));
}
}
return result.toArray(new ConfigFile[result.size()]);
}
示例4: FileExecutor
import de.cinovo.cloudconductor.api.model.ConfigFile; //导入依赖的package包/类
/**
* @param files the files to handle
*/
public FileExecutor(Set<ConfigFile> files) {
this.files = files;
this.restart = new HashSet<>();
}
示例5: getConfigFiles
import de.cinovo.cloudconductor.api.model.ConfigFile; //导入依赖的package包/类
/**
* @param template the template name
* @return the config files for the template
*/
@GET
@Path(IRestPath.FILE_CONFIG_FILES)
@Produces(MediaType.APPLICATION_JSON)
public ConfigFile[] getConfigFiles(@PathParam(IRestPath.VAR_TEMPLATE) String template);
示例6: getAPIClass
import de.cinovo.cloudconductor.api.model.ConfigFile; //导入依赖的package包/类
@Override
protected Class<ConfigFile> getAPIClass() {
return ConfigFile.class;
}
示例7: getConfigFilesByTemplate
import de.cinovo.cloudconductor.api.model.ConfigFile; //导入依赖的package包/类
/**
* @param template the template name
* @return the config files of the template
* @throws CloudConductorException Error indicating connection or data problems
*/
@SuppressWarnings("unchecked")
public Set<ConfigFile> getConfigFilesByTemplate(String template) throws CloudConductorException {
String path = this.pathGenerator(IRestPath.FILE_CONFIG_FILES, template);
return (Set<ConfigFile>) this._get(path, this.getSetType(ConfigFile.class));
}