本文整理了Java中denominator.model.Zone.email()
方法的一些代码示例,展示了Zone.email()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Zone.email()
方法的具体详情如下:
包路径:denominator.model.Zone
类名称:Zone
方法名:email
[英]Email contact for the zone. The @ in the email will be converted to a .in the denominator.model.rdata.SOAData#rname().
[中]区域的电子邮件联系人。电子邮件中的@将转换为。在分母中。模型阿尔达。SOAData#rname()。
代码示例来源: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-clouddns
/**
* CloudDNS doesn't expose the domain's ttl in the list api.
*/
private Zone zipWithSOA(Zone next) {
Record soa = api.recordsByNameAndType(Integer.parseInt(next.id()), next.name(), "SOA").get(0);
return Zone.create(next.id(), next.name(), soa.ttl, next.email());
}
代码示例来源:origin: com.netflix.denominator/denominator-core
recordsInZone =
new ConcurrentSkipListSet<ResourceRecordSet<?>>(TO_STRING);
SOAData soaData = SOAData.builder().mname("ns1." + zone.name()).rname(zone.email())
.serial(1).refresh(3600).retry(600).expire(604800).minimum(86400).build();
recordsInZone.add(ResourceRecordSet.builder()
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);
}
}
内容来源于网络,如有侵权,请联系作者删除!