本文整理了Java中denominator.model.Zone.ttl()
方法的一些代码示例,展示了Zone.ttl()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Zone.ttl()
方法的具体详情如下:
包路径:denominator.model.Zone
类名称:Zone
方法名:ttl
[英]The ResourceRecordSet#ttl() of the zone's denominator.model.rdata.SOAData record.
Caution: Eventhough some providers use this as a default ttl for new records, this is not always the case.
[中]区域分母的ResourceRecordSet#ttl()。模型阿尔达。SOAData唱片公司。
警告:尽管一些提供商将其用作新记录的默认ttl,但情况并非总是如此。
代码示例来源:origin: com.netflix.denominator/denominator-model
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("Zone [");
if (!name().equals(id())) {
builder.append("id=").append(id()).append(", ");
}
builder.append("name=").append(name());
builder.append(", ").append("ttl=").append(ttl());
builder.append(", ").append("email=").append(email());
builder.append("]");
return builder.toString();
}
代码示例来源:origin: com.netflix.denominator/denominator-model
@Override
public int hashCode() {
int result = 17;
result = 31 * result + (id() != null ? id().hashCode() : 0);
result = 31 * result + name().hashCode();
result = 31 * result + ttl();
result = 31 * result + email().hashCode();
return result;
}
代码示例来源:origin: com.netflix.denominator/denominator-model
@Override
public boolean equals(Object obj) {
if (obj instanceof Zone) {
Zone other = (Zone) obj;
return equal(id(), other.id())
&& name().equals(other.name())
&& ttl() == other.ttl()
&& email().equals(other.email());
}
return false;
}
代码示例来源:origin: com.netflix.denominator/denominator-clouddns
private String updateZone(String id, Zone zone) {
awaitComplete(api, api.updateDomain(id, zone.email(), zone.ttl()));
return id;
}
代码示例来源:origin: com.netflix.denominator/denominator-core
.type("SOA")
.name(zone.name())
.ttl(zone.ttl())
.add(soaData)
.build());
recordsInZone.add(ns(zone.name(), zone.ttl(), asList("ns1." + zone.name())));
data.put(zone.name(), recordsInZone);
return zone.name();
if (rrset.type().equals("SOA")) {
SOAData soaData = (SOAData) rrset.records().get(0);
if (zone.email().equals(soaData.rname()) && zone.ttl() == rrset.ttl().intValue()) {
return zone.name();
data.get(zone.name()).add(soa(rrset, zone.email(), zone.ttl()));
代码示例来源:origin: com.netflix.denominator/denominator-clouddns
@Override
public String put(Zone zone) {
if (zone.id() != null) {
return updateZone(zone.id(), zone);
}
try {
return awaitComplete(api, api.createDomain(zone.name(), zone.email(), zone.ttl()));
} catch (IllegalStateException e) {
if (e.getMessage().indexOf("already exists") == -1) {
throw e;
}
String id = api.domainsByName(zone.name()).get(0).id();
return updateZone(id, zone);
}
}
内容来源于网络,如有侵权,请联系作者删除!