public static Map<Fields, String> decodeQualifiedNameMap(String type, String name, String subtype) { Map<Fields, String> qualifiedNameMap = decodeQualifiedNameMapForType(type); qualifiedNameMap.put(Fields.Instance, name); qualifiedNameMap.put(Fields.Subtype, subtype); return checkQualifiedNameMap(qualifiedNameMap); }
public static Map<Fields, String> decodeQualifiedNameMap(String type, String name, String subtype) { Map<Fields, String> qualifiedNameMap = decodeQualifiedNameMapForType(type); qualifiedNameMap.put(Fields.Instance, name); qualifiedNameMap.put(Fields.Subtype, subtype); return checkQualifiedNameMap(qualifiedNameMap); }
public static Map<Fields, String> decodeQualifiedNameMap(String type, String name, String subtype) { Map<Fields, String> qualifiedNameMap = decodeQualifiedNameMapForType(type); qualifiedNameMap.put(Fields.Instance, name); qualifiedNameMap.put(Fields.Subtype, subtype); return checkQualifiedNameMap(qualifiedNameMap); }
public static Map<Fields, String> decodeQualifiedNameMap(String type, String name, String subtype) { Map<Fields, String> qualifiedNameMap = decodeQualifiedNameMapForType(type); qualifiedNameMap.put(Fields.Instance, name); qualifiedNameMap.put(Fields.Subtype, subtype); return checkQualifiedNameMap(qualifiedNameMap); }
/** * Create an entry. */ DNSEntry(String name, DNSRecordType type, DNSRecordClass recordClass, boolean unique) { _name = name; // _key = (name != null ? name.trim().toLowerCase() : null); _recordType = type; _dnsClass = recordClass; _unique = unique; _qualifiedNameMap = ServiceInfoImpl.decodeQualifiedNameMapForType(this.getName()); String domain = _qualifiedNameMap.get(Fields.Domain); String protocol = _qualifiedNameMap.get(Fields.Protocol); String application = _qualifiedNameMap.get(Fields.Application); String instance = _qualifiedNameMap.get(Fields.Instance).toLowerCase(); _type = (application.length() > 0 ? "_" + application + "." : "") + (protocol.length() > 0 ? "_" + protocol + "." : "") + domain + "."; _key = ((instance.length() > 0 ? instance + "." : "") + _type).toLowerCase(); }
/** * Create an entry. */ DNSEntry(String name, DNSRecordType type, DNSRecordClass recordClass, boolean unique) { _name = name; // _key = (name != null ? name.trim().toLowerCase() : null); _recordType = type; _dnsClass = recordClass; _unique = unique; _qualifiedNameMap = ServiceInfoImpl.decodeQualifiedNameMapForType(this.getName()); String domain = _qualifiedNameMap.get(Fields.Domain); String protocol = _qualifiedNameMap.get(Fields.Protocol); String application = _qualifiedNameMap.get(Fields.Application); String instance = _qualifiedNameMap.get(Fields.Instance).toLowerCase(); _type = (application.length() > 0 ? "_" + application + "." : "") + (protocol.length() > 0 ? "_" + protocol + "." : "") + domain + "."; _key = ((instance.length() > 0 ? instance + "." : "") + _type).toLowerCase(); }
/** * Create an entry. */ DNSEntry(String name, DNSRecordType type, DNSRecordClass recordClass, boolean unique) { _name = name; // _key = (name != null ? name.trim().toLowerCase() : null); _recordType = type; _dnsClass = recordClass; _unique = unique; _qualifiedNameMap = ServiceInfoImpl.decodeQualifiedNameMapForType(this.getName()); String domain = _qualifiedNameMap.get(Fields.Domain); String protocol = _qualifiedNameMap.get(Fields.Protocol); String application = _qualifiedNameMap.get(Fields.Application); String instance = _qualifiedNameMap.get(Fields.Instance).toLowerCase(); _type = (application.length() > 0 ? "_" + application + "." : "") + (protocol.length() > 0 ? "_" + protocol + "." : "") + domain + "."; _key = ((instance.length() > 0 ? instance + "." : "") + _type).toLowerCase(); }
/** * Create an entry. */ DNSEntry(String name, DNSRecordType type, DNSRecordClass recordClass, boolean unique) { _name = name; // _key = (name != null ? name.trim().toLowerCase() : null); _recordType = type; _dnsClass = recordClass; _unique = unique; _qualifiedNameMap = ServiceInfoImpl.decodeQualifiedNameMapForType(this.getName()); String domain = _qualifiedNameMap.get(Fields.Domain); String protocol = _qualifiedNameMap.get(Fields.Protocol); String application = _qualifiedNameMap.get(Fields.Application); String instance = _qualifiedNameMap.get(Fields.Instance).toLowerCase(); _type = (application.length() > 0 ? "_" + application + "." : "") + (protocol.length() > 0 ? "_" + protocol + "." : "") + domain + "."; _key = ((instance.length() > 0 ? instance + "." : "") + _type).toLowerCase(); }
public boolean registerServiceType(String type) { boolean typeAdded = false; Map<Fields, String> map = ServiceInfoImpl.decodeQualifiedNameMapForType(type); String domain = map.get(Fields.Domain); String protocol = map.get(Fields.Protocol);
public boolean registerServiceType(String type) { boolean typeAdded = false; Map<Fields, String> map = ServiceInfoImpl.decodeQualifiedNameMapForType(type); String domain = map.get(Fields.Domain); String protocol = map.get(Fields.Protocol);
public boolean registerServiceType(String type) { boolean typeAdded = false; Map<Fields, String> map = ServiceInfoImpl.decodeQualifiedNameMapForType(type); String domain = map.get(Fields.Domain); String protocol = map.get(Fields.Protocol);
public boolean registerServiceType(String type) { boolean typeAdded = false; Map<Fields, String> map = ServiceInfoImpl.decodeQualifiedNameMapForType(type); String domain = map.get(Fields.Domain); String protocol = map.get(Fields.Protocol);
@Override public ServiceInfo getServiceInfo(boolean persistent) { if (this.isServicesDiscoveryMetaQuery()) { // The service name is in the alias Map<Fields, String> map = ServiceInfoImpl.decodeQualifiedNameMapForType(this.getAlias()); return new ServiceInfoImpl(map, 0, 0, 0, persistent, (byte[]) null); } else if (this.isReverseLookup()) { return new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, (byte[]) null); } else if (this.isDomainDiscoveryQuery()) { // FIXME [PJYF Nov 16 2010] We do not currently support domain discovery return new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, (byte[]) null); } Map<Fields, String> map = ServiceInfoImpl.decodeQualifiedNameMapForType(this.getAlias()); map.put(Fields.Subtype, this.getQualifiedNameMap().get(Fields.Subtype)); return new ServiceInfoImpl(map, 0, 0, 0, persistent, this.getAlias()); }
@Override public ServiceInfo getServiceInfo(boolean persistent) { if (this.isServicesDiscoveryMetaQuery()) { // The service name is in the alias Map<Fields, String> map = ServiceInfoImpl.decodeQualifiedNameMapForType(this.getAlias()); return new ServiceInfoImpl(map, 0, 0, 0, persistent, (byte[]) null); } else if (this.isReverseLookup()) { return new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, (byte[]) null); } else if (this.isDomainDiscoveryQuery()) { // FIXME [PJYF Nov 16 2010] We do not currently support domain discovery return new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, (byte[]) null); } Map<Fields, String> map = ServiceInfoImpl.decodeQualifiedNameMapForType(this.getAlias()); map.put(Fields.Subtype, this.getQualifiedNameMap().get(Fields.Subtype)); return new ServiceInfoImpl(map, 0, 0, 0, persistent, this.getAlias()); }
@Override public ServiceInfo getServiceInfo(boolean persistent) { if (this.isServicesDiscoveryMetaQuery()) { // The service name is in the alias Map<Fields, String> map = ServiceInfoImpl.decodeQualifiedNameMapForType(this.getAlias()); return new ServiceInfoImpl(map, 0, 0, 0, persistent, (byte[]) null); } else if (this.isReverseLookup()) { return new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, (byte[]) null); } else if (this.isDomainDiscoveryQuery()) { // FIXME [PJYF Nov 16 2010] We do not currently support domain discovery return new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, (byte[]) null); } Map<Fields, String> map = ServiceInfoImpl.decodeQualifiedNameMapForType(this.getAlias()); map.put(Fields.Subtype, this.getQualifiedNameMap().get(Fields.Subtype)); return new ServiceInfoImpl(map, 0, 0, 0, persistent, this.getAlias()); }
@Override public ServiceInfo getServiceInfo(boolean persistent) { if (this.isServicesDiscoveryMetaQuery()) { // The service name is in the alias Map<Fields, String> map = ServiceInfoImpl.decodeQualifiedNameMapForType(this.getAlias()); return new ServiceInfoImpl(map, 0, 0, 0, persistent, (byte[]) null); } else if (this.isReverseLookup()) { return new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, (byte[]) null); } else if (this.isDomainDiscoveryQuery()) { // FIXME [PJYF Nov 16 2010] We do not currently support domain discovery return new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, (byte[]) null); } Map<Fields, String> map = ServiceInfoImpl.decodeQualifiedNameMapForType(this.getAlias()); map.put(Fields.Subtype, this.getQualifiedNameMap().get(Fields.Subtype)); return new ServiceInfoImpl(map, 0, 0, 0, persistent, this.getAlias()); }