Package stanford.netdb
Class Domain_Name
- java.lang.Object
-
- stanford.netdb.logging.NetDB_Logger
-
- stanford.netdb.Attribute<T>
-
- stanford.netdb.NetDB<T>
-
- stanford.netdb.Name<Domain_Name>
-
- stanford.netdb.Domain_Name
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Domain_Name>,java.util.Comparator<Domain_Name>
public final class Domain_Name extends Name<Domain_Name>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class stanford.netdb.Name
Name.ALLOW
-
Nested classes/interfaces inherited from class stanford.netdb.NetDB
NetDB.FORMAT
-
Nested classes/interfaces inherited from class stanford.netdb.Attribute
Attribute.COMPARISON_TYPE
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Stringjson_template_nameThe template toJSON uses.static java.lang.Stringtemplate_nameThe template toString uses.-
Fields inherited from class stanford.netdb.Name
JSON_DOMAIN, JSON_NAME
-
Fields inherited from class stanford.netdb.NetDB
extra_data, UNPROCESSED_JSON
-
-
Constructor Summary
Constructors Constructor Description Domain_Name(java.lang.String fqdn)Domain_Name(java.lang.String name, java.lang.String domain)Domain_Name(NetDB_Datastore datastore, java.lang.String fqdn)Domain_Name(NetDB_Datastore datastore, java.lang.String name, java.lang.String domain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringdns_type()Fetch the DNS type associated with this type of name.Domain_Namenew_instance()Create a new instance of this class's type.Domain_Namereserve(NetDB_Datastore datastore)Reserve this name using the specified datastore.java.lang.StringtoJSON(java.lang.Boolean pretty, java.lang.Boolean ignore_exceptions)Convert this to a JSON object using the template defined in json_template_name.java.lang.StringtoString(NetDB.FORMAT format, java.lang.Boolean ignore_exceptions)Convert this to a String using the template defined in template_name.Domain_Nameunreserve(NetDB_Datastore datastore)Cancel this reservation using specified datastore.-
Methods inherited from class stanford.netdb.Name
_reserve, _reserve, _unreserve, _verify_or_die, _verify_or_die, domain, domain, full_name, full_name, full_name, generate_full_name, get_domain, get_host, handle, id, is_reserved, name, name, reserve, reserve, reserve, single_value_attributes, unlink, unreserve
-
Methods inherited from class stanford.netdb.NetDB
autocomplete, autocomplete, bind, clear_extra_data, compare, compare, compare, compareTo, complete, created_by_user, datastore, default_datastore, default_datastore, defined_or_die, defined_or_die_handle, equals, extra_data, extra_data, extra_data, fromJSON, is_bound, is_complete, is_partial, json_recovery_log, reset_timing, rmi_exception, timing, toJSON, toJSON, toJSON, toJSON, toString, toString, toString, toString, unbind, unique_identifier, version
-
Methods inherited from class stanford.netdb.Attribute
sort_comparator
-
Methods inherited from class stanford.netdb.logging.NetDB_Logger
default_logger, default_logger, logger, logger
-
-
-
-
Constructor Detail
-
Domain_Name
public Domain_Name(java.lang.String fqdn)
-
Domain_Name
public Domain_Name(java.lang.String name, java.lang.String domain)
-
Domain_Name
public Domain_Name(NetDB_Datastore datastore, java.lang.String fqdn)
-
Domain_Name
public Domain_Name(NetDB_Datastore datastore, java.lang.String name, java.lang.String domain)
-
-
Method Detail
-
dns_type
public java.lang.String dns_type()
Description copied from class:NameFetch the DNS type associated with this type of name.- Specified by:
dns_typein className<Domain_Name>
-
new_instance
public Domain_Name new_instance() throws java.lang.Exception
Description copied from class:NetDBCreate a new instance of this class's type.- Specified by:
new_instancein classNetDB<Domain_Name>- Throws:
java.lang.Exception
-
toString
public java.lang.String toString(NetDB.FORMAT format, java.lang.Boolean ignore_exceptions) throws java.lang.Exception
Convert this to a String using the template defined in template_name.- Overrides:
toStringin className<Domain_Name>- Throws:
java.lang.Exception
-
toJSON
public java.lang.String toJSON(java.lang.Boolean pretty, java.lang.Boolean ignore_exceptions) throws java.lang.ExceptionConvert this to a JSON object using the template defined in json_template_name.- Specified by:
toJSONin classNetDB<Domain_Name>- Throws:
java.lang.Exception
-
reserve
public Domain_Name reserve(NetDB_Datastore datastore) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information
Description copied from class:NameReserve this name using the specified datastore. This will bind the name to datastore.- Specified by:
reservein className<Domain_Name>- Throws:
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Information
-
unreserve
public Domain_Name unreserve(NetDB_Datastore datastore) throws java.lang.Exception, No_Datastore_Defined, Insufficient_Information
Description copied from class:NameCancel this reservation using specified datastore. If this datastore isn't the same datastore that it was reserved with, it will probably result in an error. unreserve () should be used over this method, unless you really know what you're doing.- Specified by:
unreservein className<Domain_Name>- Throws:
java.lang.ExceptionNo_Datastore_DefinedInsufficient_Information- See Also:
Name.unreserve()
-
-