public class DnsSdDiscoveryAdvertiser extends DnsSdDiscoveryContainerAdapter
DnsSdDiscoveryContainerAdapter.SRVRecordComparator
resolver, targetID
allServiceListeners, serviceListeners, servicesNamespaceName, serviceTypeListeners
CONTAINER_NAME
CONTAINER_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, setTsigKey
addServiceListener, addServiceListener, addServiceTypeListener, clearListeners, dispose, fireServiceDiscovered, fireServiceTypeDiscovered, fireServiceUndiscovered, getAsyncServiceInfo, getAsyncServices, getAsyncServices, getAsyncServiceTypes, getConfig, getConnectNamespace, getID, getListeners, getServiceEvent, getServicesNamespace, removeServiceListener, removeServiceListener, removeServiceTypeListener
addListener, fireContainerEvent, getAdapter, getPasswordFromConnectContext, removeListener
public void registerService(IServiceInfo serviceInfo)
IDiscoveryAdvertiser
registerService
in interface IDiscoveryAdvertiser
registerService
in class DnsSdDiscoveryContainerAdapter
serviceInfo
- IServiceInfo of the service to be published. Must not be
null
.public void unregisterService(IServiceInfo serviceInfo)
IDiscoveryAdvertiser
unregisterService
in interface IDiscoveryAdvertiser
unregisterService
in class DnsSdDiscoveryContainerAdapter
serviceInfo
- IServiceInfo defining the service to unregister. Must not be
null
.public void unregisterAllServices()
IDiscoveryAdvertiser
unregisterAllServices
in interface IDiscoveryAdvertiser
unregisterAllServices
in class AbstractDiscoveryContainerAdapter
IDiscoveryAdvertiser.unregisterAllServices()
public IServiceInfo[] purgeCache()
IDiscoveryLocator
purgeCache
in interface IDiscoveryLocator
purgeCache
in class AbstractDiscoveryContainerAdapter
IDiscoveryLocator.purgeCache()
public void connect(ID aTargetID, IConnectContext connectContext) throws ContainerConnectException
IContainer
connect
in interface IContainer
connect
in class DnsSdDiscoveryContainerAdapter
aTargetID
- 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.TextParseException
protected Collection getAuthoritativeNameServer(org.xbill.DNS.Name zone) throws org.xbill.DNS.TextParseException
org.xbill.DNS.TextParseException
protected String[] getRegistrationDomains(IServiceTypeID aServiceTypeId)
public String getContainerName()
getContainerName
in class AbstractDiscoveryContainerAdapter
Copyright © 2017 Eclipse Foundation. All rights reserved.