本文整理了Java中io.cattle.platform.core.model.Instance.setExternalId()
方法的一些代码示例,展示了Instance.setExternalId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instance.setExternalId()
方法的具体详情如下:
包路径:io.cattle.platform.core.model.Instance
类名称:Instance
方法名:setExternalId
[英]Setter for cattle.instance.external_id
.
[中]cattle.instance.external_id
的设置器。
代码示例来源:origin: rancher/cattle
void scheduleInstance(ContainerEvent event, Instance instance, Map<String, Object> data) {
Map<String, Object> inspect = getInspect(event, data, true);
final Long accountId = event.getAccountId();
final String externalId = event.getExternalId();
instance = objectManager.newRecord(Instance.class);
instance.setKind(KIND_CONTAINER);
instance.setAccountId(accountId);
instance.setExternalId(externalId);
instance.setNativeContainer(true);
setName(inspect, data, instance);
setNetwork(inspect, data, instance);
setImage(event, instance);
setHost(event, instance);
setLabels(inspect, data, instance);
resourceDao.createAndSchedule(instance, makeData());
}
代码示例来源:origin: rancher/cattle
HostConfig hostConfig = inspect.getHostConfig();
instance.setExternalId(inspect.getId());
instance.setKind(KIND_CONTAINER);
setName(instance, inspect, fromInspect);
内容来源于网络,如有侵权,请联系作者删除!