|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.unlogic.eagledns.zoneproviders.file.FileZoneProvider
public class FileZoneProvider
This class loads primary zones from zone files in the file system. The zone files have to formated accordingly to RFC 1035 (http://tools.ietf.org/html/rfc1035) and RFC 1034 (http://tools.ietf.org/html/rfc1034).
Constructor Summary | |
---|---|
FileZoneProvider()
|
Method Summary | |
---|---|
java.util.Collection<org.xbill.DNS.Zone> |
getPrimaryZones()
This method is called each time EagleDNS reloads it's zones. |
java.util.Collection<SecondaryZone> |
getSecondaryZones()
This method is called each time EagleDNS reloads it's zones. |
java.lang.String |
getZoneFileDirectory()
|
void |
init(java.lang.String name)
This method is called after the ZoneProvider has been instantiated by EagleDNS and all properties specified in the config file for this zone provider have been set using their set methods. |
void |
run()
|
void |
setAutoReloadZones(java.lang.String autoReloadZones)
|
void |
setChangeListener(ZoneChangeCallback ev)
This method is automatically called by Eagle DNS when the ZoneProvider has been instantiated, before the init() method is called. |
void |
setPollingInterval(java.lang.String pollingInterval)
|
void |
setZoneFileDirectory(java.lang.String zoneFileDirectory)
|
void |
unload()
This method is called when EagleDNS is shutdown or when the configuration has been updated and the ZoneProvider is no longer present in the configuration file. |
void |
zoneChecked(SecondaryZone secondaryZone)
This method is called each time a zone has been downloaded and no changes have been detected (by comparing the serial) |
void |
zoneUpdated(SecondaryZone secondaryZone)
This method is called when a change has been detected in a secondary zone previously loaded from this ZoneProvider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileZoneProvider()
Method Detail |
---|
public void init(java.lang.String name)
ZoneProvider
init
in interface ZoneProvider
public void run()
run
in interface java.lang.Runnable
public java.util.Collection<org.xbill.DNS.Zone> getPrimaryZones()
ZoneProvider
getPrimaryZones
in interface ZoneProvider
public void unload()
ZoneProvider
unload
in interface ZoneProvider
public java.lang.String getZoneFileDirectory()
public void setZoneFileDirectory(java.lang.String zoneFileDirectory)
public java.util.Collection<SecondaryZone> getSecondaryZones()
ZoneProvider
getSecondaryZones
in interface ZoneProvider
public void zoneUpdated(SecondaryZone secondaryZone)
ZoneProvider
zoneUpdated
in interface ZoneProvider
public void zoneChecked(SecondaryZone secondaryZone)
ZoneProvider
zoneChecked
in interface ZoneProvider
public void setChangeListener(ZoneChangeCallback ev)
ZoneProviderUpdatable
ZoneProvider
has been instantiated, before the init()
method is called.
setChangeListener
in interface ZoneProviderUpdatable
ev
- Callback handleZoneChangeCallback
public void setAutoReloadZones(java.lang.String autoReloadZones)
public void setPollingInterval(java.lang.String pollingInterval)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |