io.cattle.platform.core.model.Instance.getCreateIndex()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(119)

本文整理了Java中io.cattle.platform.core.model.Instance.getCreateIndex()方法的一些代码示例,展示了Instance.getCreateIndex()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instance.getCreateIndex()方法的具体详情如下:
包路径:io.cattle.platform.core.model.Instance
类名称:Instance
方法名:getCreateIndex

Instance.getCreateIndex介绍

[英]Getter for cattle.instance.create_index.
[中]cattle.instance.create_index的Getter。

代码示例

代码示例来源:origin: rancher/cattle

@Override
public Long getCreateIndex() {
  Long createIndex = this.instance == null ? null : this.instance.getCreateIndex();
  return createIndex;
}

代码示例来源:origin: rancher/cattle

protected Map<String, Object> populateInstance(IdFormatter idFormatter, Instance instance, Network network) {
  Map<String, Object> data = new HashMap<String, Object>();
  data.put("ami-id", formatId(idFormatter, Image.class, instance.getImageId()));
  data.put("ami-manifest-path", "(unknown)");
  data.put("instance-action", "none");
  data.put("instance-id", "i-" + formatId(idFormatter, instance));
  data.put("instance-type", getInstanceType(instance));
  data.put("kernel-id", formatId(idFormatter, instance));
  setNestedValue(data, getZone(idFormatter, instance), "placement", "availability-zone");
  // TODO don't really know what values are valid here
  data.put("profile", "default-paravirtual");
  data.put("ami-launch-index", instance.getCreateIndex());
  // TODO don't have a concept of reservations
  data.put("reservation-id", formatId(idFormatter, instance));
  return data;
}

代码示例来源:origin: rancher/cattle

this.host_ip = host.agent_ip;
this.create_index = instance.getCreateIndex();
this.health_state = instance.getHealthState();
this.start_count = instance.getStartCount();

代码示例来源:origin: rancher/cattle

setHealthState(from.getHealthState());
setStartCount(from.getStartCount());
setCreateIndex(from.getCreateIndex());
setDeploymentUnitUuid(from.getDeploymentUnitUuid());
setVersion(from.getVersion());

相关文章