public class DnsSdDiscoveryLocator extends DnsSdDiscoveryContainerAdapter
DnsSdDiscoveryContainerAdapter.SRVRecordComparatorresolver, targetIDallServiceListeners, serviceListeners, servicesNamespaceName, serviceTypeListenersCONTAINER_NAMECONTAINER_NAME| Constructor and Description |
|---|
DnsSdDiscoveryLocator() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(ID aTargetID,
IConnectContext connectContext)
Connect to a target remote process or process group.
|
String |
getContainerName() |
IServiceInfo |
getServiceInfo(IServiceID aServiceId)
Synchronously retrieve info about the service
|
IServiceInfo[] |
getServices()
Synchronously get service info about all known services
|
IServiceInfo[] |
getServices(IServiceTypeID aServiceTypeId)
Synchronously get service info about all known services of given service
type
|
IServiceTypeID[] |
getServiceTypes()
This always returns the service type found for our local domain
Use org.eclipse.ecf.provider.dnssrv.DnsSrvDisocoveryLocator.getServices(IServiceTypeID) with a wildcard query instead.
|
disconnect, getBrowsingOrRegistrationDomains, getConnectedID, getRecords, getSearchPath, getSRVRecord, getSRVRecords, getSRVRecords, registerService, setResolver, setSearchPath, setTsigKey, unregisterServiceaddServiceListener, addServiceListener, addServiceTypeListener, clearListeners, dispose, fireServiceDiscovered, fireServiceTypeDiscovered, fireServiceUndiscovered, getAsyncServiceInfo, getAsyncServices, getAsyncServices, getAsyncServiceTypes, getConfig, getConnectNamespace, getID, getListeners, getServiceEvent, getServicesNamespace, purgeCache, removeServiceListener, removeServiceListener, removeServiceTypeListener, unregisterAllServicesaddListener, fireContainerEvent, getAdapter, getPasswordFromConnectContext, removeListenerpublic IServiceInfo getServiceInfo(IServiceID aServiceId)
IDiscoveryLocatorgetServiceInfo in interface IDiscoveryLocatorgetServiceInfo in class DnsSdDiscoveryContainerAdapteraServiceId - IServiceID of the service to get info about. Must not be
null.null if no
information retrievable.public IServiceTypeID[] getServiceTypes()
getServiceTypes in interface IDiscoveryLocatorgetServiceTypes in class DnsSdDiscoveryContainerAdapternull. May be of length 0.IDiscoveryLocator.getServiceTypes()public IServiceInfo[] getServices()
IDiscoveryLocatorgetServices in interface IDiscoveryLocatorgetServices in class DnsSdDiscoveryContainerAdapternull. May be of length 0.public IServiceInfo[] getServices(IServiceTypeID aServiceTypeId)
IDiscoveryLocatorgetServices in interface IDiscoveryLocatorgetServices in class DnsSdDiscoveryContainerAdapteraServiceTypeId - IServiceTypeID defining the type of service we are interested
in getting service info about. Must not be nullnull. May be of length 0.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.public String getContainerName()
getContainerName in class AbstractDiscoveryContainerAdapterCopyright © 2004–2020 Eclipse Foundation. All rights reserved.