public class ServiceLocatorV9
extends java.lang.Object
| Constructor and Description |
|---|
ServiceLocatorV9() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
answerCallback(java.util.function.Consumer<de.gematik.ti.epa.fdv.service.localization.api.LookupStatus> callback) |
protected void |
doResolve(java.lang.String fqdn,
java.util.concurrent.ThreadPoolExecutor executor,
java.util.function.Consumer<de.gematik.ti.epa.fdv.service.localization.api.LookupStatus> callback) |
java.net.URL |
endpointURLForInterface(de.gematik.ti.epa.fdv.service.localization.api.ServiceInterfaceName serviceInterfaceName)
After successful lookup, it returns endpointURL for a given interface name
|
java.lang.String |
getHomeCommunityId()
Returns home community (OID, which the file system provider has requested from DIMDI)
|
de.gematik.ti.epa.fdv.service.localization.api.LookupStatus |
getLookupStatus()
Returns the status of service lookup in DNS
|
boolean |
isRunning() |
void |
lookup(java.lang.String fqdn,
java.util.function.Consumer<de.gematik.ti.epa.fdv.service.localization.api.LookupStatus> callback)
start a new DNS lookup, e.g. if previous one ended erroneously
|
protected void |
setRunning(boolean running) |
protected void doResolve(java.lang.String fqdn,
java.util.concurrent.ThreadPoolExecutor executor,
java.util.function.Consumer<de.gematik.ti.epa.fdv.service.localization.api.LookupStatus> callback)
public de.gematik.ti.epa.fdv.service.localization.api.LookupStatus getLookupStatus()
getLookupStatus in interface de.gematik.ti.epa.fdv.service.localization.spi.IServiceLocalizerpublic void lookup(java.lang.String fqdn,
java.util.function.Consumer<de.gematik.ti.epa.fdv.service.localization.api.LookupStatus> callback)
lookup in interface de.gematik.ti.epa.fdv.service.localization.spi.IServiceLocalizerfqdn - fully qualified domain namecallback - optional Consumer parameter to get callback the lookup statuspublic java.net.URL endpointURLForInterface(de.gematik.ti.epa.fdv.service.localization.api.ServiceInterfaceName serviceInterfaceName)
endpointURLForInterface in interface de.gematik.ti.epa.fdv.service.localization.spi.IServiceLocalizerserviceInterfaceName - name of the gateway interface where to get the URL forpublic java.lang.String getHomeCommunityId()
getHomeCommunityId in interface de.gematik.ti.epa.fdv.service.localization.spi.IServiceLocalizerpublic boolean isRunning()
protected void setRunning(boolean running)
protected void answerCallback(java.util.function.Consumer<de.gematik.ti.epa.fdv.service.localization.api.LookupStatus> callback)