se.unlogic.eagledns.zoneproviders.db
Class DBZoneProvider

java.lang.Object
  extended by se.unlogic.eagledns.zoneproviders.db.DBZoneProvider
All Implemented Interfaces:
ZoneProvider

public class DBZoneProvider
extends java.lang.Object
implements ZoneProvider


Constructor Summary
DBZoneProvider()
           
 
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.
 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 setDriver(java.lang.String driver)
           
 void setPassword(java.lang.String password)
           
 void setUrl(java.lang.String url)
           
 void setUsername(java.lang.String username)
           
 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 zone)
          This method is called each time a zone has been downloaded and no changes have been detected (by comparing the serial)
 void zoneUpdated(SecondaryZone zone)
          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

DBZoneProvider

public DBZoneProvider()
Method Detail

init

public void init(java.lang.String name)
          throws java.lang.ClassNotFoundException
Description copied from interface: ZoneProvider
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.

Specified by:
init in interface ZoneProvider
Throws:
java.lang.ClassNotFoundException

getPrimaryZones

public java.util.Collection<org.xbill.DNS.Zone> getPrimaryZones()
Description copied from interface: ZoneProvider
This method is called each time EagleDNS reloads it's zones. If no zones are found or if an error occurs the the ZoneProvider should return null else it should return all primary zones available from the zone provider.

Specified by:
getPrimaryZones in interface ZoneProvider
Returns:

getSecondaryZones

public java.util.Collection<SecondaryZone> getSecondaryZones()
Description copied from interface: ZoneProvider
This method is called each time EagleDNS reloads it's zones. If no zones are found or if an error occurs the the ZoneProvider should return null else it should return all secondary zones available from the zone provider. The returned secondary zones may contain a previously saved copy of the zone if the ZoneProvider supports this feature.

Specified by:
getSecondaryZones in interface ZoneProvider
Returns:

zoneUpdated

public void zoneUpdated(SecondaryZone zone)
Description copied from interface: ZoneProvider
This method is called when a change has been detected in a secondary zone previously loaded from this ZoneProvider. Failed AXFR requests will not trigger this method, although zone expiry will. The main purpose of this method is to enable the ZoneProviders to save the updated zone data which is useful in case EagleDNS is restarted when the primary DNS server of the zone is down.

Specified by:
zoneUpdated in interface ZoneProvider

zoneChecked

public void zoneChecked(SecondaryZone zone)
Description copied from interface: ZoneProvider
This method is called each time a zone has been downloaded and no changes have been detected (by comparing the serial)

Specified by:
zoneChecked in interface ZoneProvider

unload

public void unload()
Description copied from interface: ZoneProvider
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.

Specified by:
unload in interface ZoneProvider

setDriver

public void setDriver(java.lang.String driver)

setUsername

public void setUsername(java.lang.String username)

setPassword

public void setPassword(java.lang.String password)

setUrl

public void setUrl(java.lang.String url)


Copyright © 2011. All Rights Reserved.