本文整理了Java中org.jclouds.openstack.cinder.v1.domain.ZoneState
类的一些代码示例,展示了ZoneState
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoneState
类的具体详情如下:
包路径:org.jclouds.openstack.cinder.v1.domain.ZoneState
类名称:ZoneState
[英]zone state for availability zones
[中]可用区域的区域状态
代码示例来源:origin: com.amysta.jclouds.api/openstack-cinder
public ZoneState build() {
return new ZoneState(available);
}
代码示例来源:origin: apache/jclouds
@Override
public String toString() {
return string().toString();
}
代码示例来源:origin: com.amysta.jclouds.api/openstack-cinder
public Builder fromZoneState(ZoneState in) {
return this
.available(in.available());
}
}
代码示例来源:origin: apache/jclouds
public Builder fromZoneState(ZoneState in) {
return this
.available(in.available());
}
}
代码示例来源:origin: com.amysta.jclouds.api/openstack-cinder
public Builder fromAvailabilityZone(AvailabilityZone in) {
return this
.name(in.getName())
.available(in.getZoneState().available());
}
}
代码示例来源:origin: apache/jclouds
public ZoneState build() {
return new ZoneState(available);
}
代码示例来源:origin: com.amysta.jclouds.api/openstack-cinder
@Override
public String toString() {
return string().toString();
}
代码示例来源:origin: apache/jclouds
public Builder fromAvailabilityZone(AvailabilityZone in) {
return this
.name(in.getName())
.available(in.getZoneState().available());
}
}
代码示例来源:origin: com.amysta.jclouds.api/openstack-cinder
public AvailabilityZone build() {
return new AvailabilityZone(name, new ZoneState(available));
}
代码示例来源:origin: apache/jclouds
public void testListAvailabilityZones() {
ImmutableList<? extends AvailabilityZone> cinderZones = availabilityZoneApi.list().toList();
assertTrue(!cinderZones.isEmpty());
for (AvailabilityZone zone : cinderZones) {
assertTrue(!Strings.isNullOrEmpty(zone.getName()));
assertTrue(zone.getZoneState().available());
}
}
}
代码示例来源:origin: apache/jclouds
public AvailabilityZone build() {
return new AvailabilityZone(name, new ZoneState(available));
}
内容来源于网络,如有侵权,请联系作者删除!