org.jclouds.dynect.v3.features
Interface ZoneApi


public interface ZoneApi


Method Summary
 Job delete(String fqdn)
          Deletes the zone.
 Job deleteChanges(String fqdn)
          Deletes changes to the specified zone that have been created during the current session but not yet published to the zone.
 Job freeze(String fqdn)
          freezes the specified zone.
 Zone get(String fqdn)
          Retrieves information about the specified zone.
 com.google.common.collect.FluentIterable<String> list()
          Lists all zone ids.
 Zone publish(String fqdn)
          Publishes the current zone
 Job scheduleCreate(CreatePrimaryZone createZone)
          Schedules addition of a new primary zone into the current session.
 Job scheduleCreateWithContact(String fqdn, String contact)
          Schedules addition of a new primary zone with one hour default TTL and SerialStyle#INCREMENT into the current session.
 Job thaw(String fqdn)
          thaws the specified zone.
 

Method Detail

list

@Named(value="ListZones")
com.google.common.collect.FluentIterable<String> list()
                                                      throws DynECTExceptions.JobStillRunningException
Lists all zone ids.

Throws:
DynECTExceptions.JobStillRunningException - if a different job in the session is still running

scheduleCreate

@Named(value="CreatePrimaryZone")
Job scheduleCreate(CreatePrimaryZone createZone)
                   throws DynECTExceptions.JobStillRunningException,
                          DynECTExceptions.TargetExistsException
Schedules addition of a new primary zone into the current session. Calling publish(String) will publish the zone, creating the zone.

Parameters:
zone - required parameters to create the zone.
Returns:
job relating to the scheduled creation.
Throws:
DynECTExceptions.JobStillRunningException - if a different job in the session is still running
DynECTExceptions.TargetExistsException - if the same fqdn exists

scheduleCreateWithContact

@Named(value="CreatePrimaryZone")
Job scheduleCreateWithContact(String fqdn,
                                    String contact)
                              throws DynECTExceptions.JobStillRunningException,
                                     DynECTExceptions.TargetExistsException
Schedules addition of a new primary zone with one hour default TTL and SerialStyle#INCREMENT into the current session. Calling publish(String) will publish the zone, creating the zone.

Parameters:
fqdn - fqdn of the zone to create
contact - email address of the contact
Returns:
job relating to the scheduled creation.
Throws:
DynECTExceptions.JobStillRunningException - if a different job in the session is still running
DynECTExceptions.TargetExistsException - if the same fqdn exists

get

@Named(value="GetZone")
@Nullable
Zone get(String fqdn)
         throws DynECTExceptions.JobStillRunningException
Retrieves information about the specified zone.

Parameters:
fqdn - fqdn of the zone to get information about. ex jclouds.org
Returns:
null if not found
Throws:
DynECTExceptions.JobStillRunningException - if a different job in the session is still running

delete

@Named(value="DeleteZone")
@Nullable
Job delete(String fqdn)
           throws DynECTExceptions.JobStillRunningException
Deletes the zone. No need to call @link ZoneApi#publish(String)}.

Parameters:
fqdn - zone to delete
Returns:
job relating to the scheduled deletion or null, if the zone never existed.
Throws:
DynECTExceptions.JobStillRunningException - if a different job in the session is still running

deleteChanges

@Named(value="DeleteZoneChanges")
Job deleteChanges(String fqdn)
                  throws DynECTExceptions.JobStillRunningException
Deletes changes to the specified zone that have been created during the current session but not yet published to the zone.

Parameters:
fqdn - fqdn of the zone to delete changes from ex jclouds.org
Throws:
DynECTExceptions.JobStillRunningException - if a different job in the session is still running

publish

@Named(value="PublishZone")
Zone publish(String fqdn)
             throws DynECTExceptions.JobStillRunningException,
                    org.jclouds.rest.ResourceNotFoundException
Publishes the current zone

Parameters:
fqdn - fqdn of the zone to publish. ex jclouds.org
Throws:
DynECTExceptions.JobStillRunningException - if a different job in the session is still running
org.jclouds.rest.ResourceNotFoundException - if the zone doesn't exist

freeze

@Named(value="FreezeZone")
Job freeze(String fqdn)
           throws DynECTExceptions.JobStillRunningException
freezes the specified zone.

Parameters:
fqdn - fqdn of the zone to freeze ex jclouds.org
Throws:
DynECTExceptions.JobStillRunningException - if a different job in the session is still running

thaw

@Named(value="ThawZone")
Job thaw(String fqdn)
         throws DynECTExceptions.JobStillRunningException
thaws the specified zone.

Parameters:
fqdn - fqdn of the zone to thaw ex jclouds.org
Throws:
DynECTExceptions.JobStillRunningException - if a different job in the session is still running


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.