Github user grkvlt commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/355#discussion_r22662241
--- Diff:
software/network/src/main/java/brooklyn/entity/network/bind/BindDnsServerImpl.java
---
@@ -304,6 +275,45 @@ protected void appendTemplate(String template, String
destination, SshMachineLoc
String.format("rm -f %s", temp)));
}
+ // Mostly used in templates
+
+ protected Predicate<? super Entity> getEntityFilter() {
+ return getConfig(ENTITY_FILTER);
+ }
+
+ public String getManagementCidr() {
+ return getConfig(MANAGEMENT_CIDR);
+ }
+
+ public Integer getDnsPort() {
+ return getAttribute(DNS_PORT);
+ }
+
+ public String getDomainName() {
+ return getConfig(DOMAIN_NAME);
+ }
+
+ /**
+ * @return A serial number guaranteed to be valid for use in a
modified domain.zone or reverse.zone file.
+ */
+ public long getSerial() {
+ long next = getAttribute(SERIAL) + 1;
--- End diff --
perhaps synchronize this with an `Object` mutex?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---