public class DnsSdDiscoveryAdvertiser extends DnsSdDiscoveryContainerAdapter
DnsSdDiscoveryContainerAdapter.SRVRecordComparatorresolver, targetIDallServiceListeners, serviceListeners, servicesNamespaceName, serviceTypeListenersCONTAINER_NAMECONTAINER_NAME| Constructor and Description |
|---|
DnsSdDiscoveryAdvertiser() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(ID aTargetID,
IConnectContext connectContext)
Connect to a target remote process or process group.
|
protected Collection |
getAuthoritativeNameServer(org.xbill.DNS.Name zone) |
String |
getContainerName() |
protected String[] |
getRegistrationDomains(IServiceTypeID aServiceTypeId) |
protected Collection |
getUpdateDomain(org.xbill.DNS.Name zone) |
IServiceInfo[] |
purgeCache()
Purges the underlying IServiceInfo cache if available in the current
provider
|
void |
registerService(IServiceInfo serviceInfo)
Register the given service.
|
protected void |
sendToServer(IServiceInfo serviceInfo,
boolean mode) |
void |
unregisterAllServices()
Unregister all previously registered service.
|
void |
unregisterService(IServiceInfo serviceInfo)
Unregister a previously registered service defined by serviceInfo.
|
disconnect, getBrowsingOrRegistrationDomains, getConnectedID, getRecords, getSearchPath, getServiceInfo, getServices, getServices, getServiceTypes, getSRVRecord, getSRVRecords, getSRVRecords, setResolver, setSearchPath, setTsigKeyaddServiceListener, addServiceListener, addServiceTypeListener, clearListeners, dispose, fireServiceDiscovered, fireServiceTypeDiscovered, fireServiceUndiscovered, getAsyncServiceInfo, getAsyncServices, getAsyncServices, getAsyncServiceTypes, getConfig, getConnectNamespace, getID, getListeners, getServiceEvent, getServicesNamespace, removeServiceListener, removeServiceListener, removeServiceTypeListeneraddListener, fireContainerEvent, getAdapter, getPasswordFromConnectContext, removeListenerpublic void registerService(IServiceInfo serviceInfo)
IDiscoveryAdvertiserregisterService in interface IDiscoveryAdvertiserregisterService in class DnsSdDiscoveryContainerAdapterserviceInfo - IServiceInfo of the service to be published. Must not be
null.public void unregisterService(IServiceInfo serviceInfo)
IDiscoveryAdvertiserunregisterService in interface IDiscoveryAdvertiserunregisterService in class DnsSdDiscoveryContainerAdapterserviceInfo - IServiceInfo defining the service to unregister. Must not be
null.public void unregisterAllServices()
IDiscoveryAdvertiserunregisterAllServices in interface IDiscoveryAdvertiserunregisterAllServices in class AbstractDiscoveryContainerAdapterIDiscoveryAdvertiser.unregisterAllServices()public IServiceInfo[] purgeCache()
IDiscoveryLocatorpurgeCache in interface IDiscoveryLocatorpurgeCache in class AbstractDiscoveryContainerAdapterIDiscoveryLocator.purgeCache()public void connect(ID aTargetID, IConnectContext connectContext) throws ContainerConnectException
IContainerconnect in interface IContainerconnect in class DnsSdDiscoveryContainerAdapteraTargetID - the ID of the remote server or group to connect to. See
IContainer.getConnectNamespace() for a explanation of the
constraints upon this parameter.connectContext - any required context to allow this container to authenticate.
May be null if underlying provider does not
have any authentication requirements for connection.ContainerConnectException - thrown if communication cannot be established with remote
service. Causes can include network connection failure,
authentication failure, server error, or if container is
already connected.protected void sendToServer(IServiceInfo serviceInfo, boolean mode)
protected Collection getUpdateDomain(org.xbill.DNS.Name zone) throws org.xbill.DNS.TextParseException
org.xbill.DNS.TextParseExceptionprotected Collection getAuthoritativeNameServer(org.xbill.DNS.Name zone) throws org.xbill.DNS.TextParseException
org.xbill.DNS.TextParseExceptionprotected String[] getRegistrationDomains(IServiceTypeID aServiceTypeId)
public String getContainerName()
getContainerName in class AbstractDiscoveryContainerAdapterCopyright © 2004–2020 Eclipse Foundation. All rights reserved.