public interface RecordApi
| Modifier and Type | Method and Description |
|---|---|
Record<? extends Map<String,Object>> |
get(RecordId recordId)
retrieves a resource record without regard to type
|
Record<AData> |
getA(String fqdn,
long recordId)
Gets the
ARecord or null if not present. |
Record<AAAAData> |
getAAAA(String fqdn,
long recordId)
Gets the
AAAARecord or null if not present. |
Record<CNAMEData> |
getCNAME(String fqdn,
long recordId)
Gets the
CNAMERecord or null if not present. |
Record<MXData> |
getMX(String fqdn,
long recordId)
Gets the
MXRecord or null if not present. |
Record<NSData> |
getNS(String fqdn,
long recordId)
Gets the
NSRecord or null if not present. |
Record<PTRData> |
getPTR(String fqdn,
long recordId)
Gets the
PTRRecord or null if not present. |
SOARecord |
getSOA(String fqdn,
long recordId)
Gets the
SOARecord or null if not present. |
Record<SPFData> |
getSPF(String fqdn,
long recordId)
Gets the
SPFRecord or null if not present. |
Record<SRVData> |
getSRV(String fqdn,
long recordId)
Gets the
SRVRecord or null if not present. |
Record<SSHFPData> |
getSSHFP(String fqdn,
long recordId)
Gets the
SSHFPRecord or null if not present. |
Record<TXTData> |
getTXT(String fqdn,
long recordId)
Gets the
TXTRecord or null if not present. |
com.google.common.collect.FluentIterable<RecordId> |
list()
Retrieves a list of resource record ids for all records of any type in the
given zone.
|
com.google.common.collect.FluentIterable<RecordId> |
listByFQDN(String fqdn)
Retrieves a list of resource record ids for all records of the fqdn in the
given zone
|
com.google.common.collect.FluentIterable<RecordId> |
listByFQDNAndType(String fqdn,
String type)
Retrieves a list of resource record ids for all records of the fqdn and
type in the given zone
|
Job |
scheduleCreate(CreateRecord<?> newRecord)
Schedules addition of a new record into the current session.
|
Job |
scheduleDelete(RecordId recordId)
Schedules deletion of a record into the current session.
|
@Named(value="GetAllRecord")
@GET
@Path(value="/AllRecord/{zone}")
com.google.common.collect.FluentIterable<RecordId> list()
throws DynECTExceptions.JobStillRunningException
DynECTExceptions.JobStillRunningException - if a different job in the session is still running@Named(value="GetRecord")
@GET
@Path(value="/AllRecord/{zone}/{fqdn}")
com.google.common.collect.FluentIterable<RecordId> listByFQDN(@PathParam(value="fqdn")
String fqdn)
throws DynECTExceptions.JobStillRunningException
DynECTExceptions.JobStillRunningException - if a different job in the session is still running@Named(value="GetRecord")
@GET
@Path(value="/{type}Record/{zone}/{fqdn}")
com.google.common.collect.FluentIterable<RecordId> listByFQDNAndType(@PathParam(value="fqdn")
String fqdn,
@PathParam(value="type")
String type)
throws DynECTExceptions.JobStillRunningException
DynECTExceptions.JobStillRunningException - if a different job in the session is still running@Named(value="CreateRecord")
@POST
@Path(value="/{type}Record/{zone}/{fqdn}")
@Consumes(value="application/json")
@Produces(value="application/json")
Job scheduleCreate(CreateRecord<?> newRecord)
throws DynECTExceptions.JobStillRunningException
ZoneApi.publish(String) will publish the zone, creating the
record.newRecord - record to createDynECTExceptions.JobStillRunningException - if a different job in the session is still running@Nullable @Named(value="DeleteRecord") @DELETE @Consumes(value="application/json") Job scheduleDelete(RecordId recordId) throws DynECTExceptions.JobStillRunningException
ZoneApi.publish(String) will publish the changes, deleting the
record.recordId - record to deleteDynECTExceptions.JobStillRunningException - if a different job in the session is still running@Named(value="GetRecord") @GET @Nullable Record<? extends Map<String,Object>> get(RecordId recordId) throws DynECTExceptions.JobStillRunningException
DynECTExceptions.JobStillRunningException - if a different job in the session is still running@Named(value="GetAAAARecord")
@GET
@Path(value="/AAAARecord/{zone}/{fqdn}/{id}")
@Nullable
Record<AAAAData> getAAAA(@PathParam(value="fqdn")
String fqdn,
@PathParam(value="id")
long recordId)
throws DynECTExceptions.JobStillRunningException
AAAARecord or null if not present.fqdn - Node.getFQDN()recordId - RecordId.getId()DynECTExceptions.JobStillRunningException - if a different job in the session is still running@Named(value="GetARecord")
@GET
@Path(value="/ARecord/{zone}/{fqdn}/{id}")
@Nullable
Record<AData> getA(@PathParam(value="fqdn")
String fqdn,
@PathParam(value="id")
long recordId)
throws DynECTExceptions.JobStillRunningException
ARecord or null if not present.fqdn - Node.getFQDN()recordId - RecordId.getId()DynECTExceptions.JobStillRunningException - if a different job in the session is still running@Named(value="GetCNAMERecord")
@GET
@Path(value="/CNAMERecord/{zone}/{fqdn}/{id}")
@Nullable
Record<CNAMEData> getCNAME(@PathParam(value="fqdn")
String fqdn,
@PathParam(value="id")
long recordId)
throws DynECTExceptions.JobStillRunningException
CNAMERecord or null if not present.fqdn - Node.getFQDN()recordId - RecordId.getId()DynECTExceptions.JobStillRunningException - if a different job in the session is still running@Named(value="GetMXRecord")
@GET
@Path(value="/MXRecord/{zone}/{fqdn}/{id}")
@Nullable
Record<MXData> getMX(@PathParam(value="fqdn")
String fqdn,
@PathParam(value="id")
long recordId)
throws DynECTExceptions.JobStillRunningException
MXRecord or null if not present.fqdn - Node.getFQDN()recordId - RecordId.getId()DynECTExceptions.JobStillRunningException - if a different job in the session is still running@Named(value="GetNSRecord")
@GET
@Path(value="/NSRecord/{zone}/{fqdn}/{id}")
@Nullable
Record<NSData> getNS(@PathParam(value="fqdn")
String fqdn,
@PathParam(value="id")
long recordId)
throws DynECTExceptions.JobStillRunningException
NSRecord or null if not present.fqdn - Node.getFQDN()recordId - RecordId.getId()DynECTExceptions.JobStillRunningException - if a different job in the session is still running@Named(value="GetPTRRecord")
@GET
@Path(value="/PTRRecord/{zone}/{fqdn}/{id}")
@Nullable
Record<PTRData> getPTR(@PathParam(value="fqdn")
String fqdn,
@PathParam(value="id")
long recordId)
throws DynECTExceptions.JobStillRunningException
PTRRecord or null if not present.fqdn - Node.getFQDN()recordId - RecordId.getId()DynECTExceptions.JobStillRunningException - if a different job in the session is still running@Named(value="GetSOARecord")
@GET
@Path(value="/SOARecord/{zone}/{fqdn}/{id}")
@Nullable
SOARecord getSOA(@PathParam(value="fqdn")
String fqdn,
@PathParam(value="id")
long recordId)
throws DynECTExceptions.JobStillRunningException
SOARecord or null if not present.fqdn - Node.getFQDN()recordId - RecordId.getId()DynECTExceptions.JobStillRunningException - if a different job in the session is still running@Named(value="GetSPFRecord")
@GET
@Path(value="/SPFRecord/{zone}/{fqdn}/{id}")
@Nullable
Record<SPFData> getSPF(@PathParam(value="fqdn")
String fqdn,
@PathParam(value="id")
long recordId)
throws DynECTExceptions.JobStillRunningException
SPFRecord or null if not present.fqdn - Node.getFQDN()recordId - RecordId.getId()DynECTExceptions.JobStillRunningException - if a different job in the session is still running@Named(value="GetSRVRecord")
@GET
@Path(value="/SRVRecord/{zone}/{fqdn}/{id}")
@Nullable
Record<SRVData> getSRV(@PathParam(value="fqdn")
String fqdn,
@PathParam(value="id")
long recordId)
throws DynECTExceptions.JobStillRunningException
SRVRecord or null if not present.fqdn - Node.getFQDN()recordId - RecordId.getId()DynECTExceptions.JobStillRunningException - if a different job in the session is still running@Named(value="GetSSHFPRecord")
@GET
@Path(value="/SSHFPRecord/{zone}/{fqdn}/{id}")
@Nullable
Record<SSHFPData> getSSHFP(@PathParam(value="fqdn")
String fqdn,
@PathParam(value="id")
long recordId)
throws DynECTExceptions.JobStillRunningException
SSHFPRecord or null if not present.fqdn - Node.getFQDN()recordId - RecordId.getId()DynECTExceptions.JobStillRunningException - if a different job in the session is still running@Named(value="GetTXTRecord")
@GET
@Path(value="/TXTRecord/{zone}/{fqdn}/{id}")
@Nullable
Record<TXTData> getTXT(@PathParam(value="fqdn")
String fqdn,
@PathParam(value="id")
long recordId)
throws DynECTExceptions.JobStillRunningException
TXTRecord or null if not present.fqdn - Node.getFQDN()recordId - RecordId.getId()DynECTExceptions.JobStillRunningException - if a different job in the session is still runningCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.