public class DnsSdDiscoveryLocator extends DnsSdDiscoveryContainerAdapter
DnsSdDiscoveryContainerAdapter.SRVRecordComparator
resolver, targetID
allServiceListeners, serviceListeners, servicesNamespaceName, serviceTypeListeners
CONTAINER_NAME
CONTAINER_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.
|
java.lang.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, unregisterService
addServiceListener, addServiceListener, addServiceTypeListener, clearListeners, dispose, fireServiceDiscovered, fireServiceTypeDiscovered, fireServiceUndiscovered, getAsyncServiceInfo, getAsyncServices, getAsyncServices, getAsyncServiceTypes, getConfig, getConnectNamespace, getID, getListeners, getServiceEvent, getServicesNamespace, purgeCache, removeServiceListener, removeServiceListener, removeServiceTypeListener, unregisterAllServices
addListener, fireContainerEvent, getAdapter, getPasswordFromConnectContext, removeListener
public IServiceInfo getServiceInfo(IServiceID aServiceId)
IDiscoveryLocator
getServiceInfo
in interface IDiscoveryLocator
getServiceInfo
in class DnsSdDiscoveryContainerAdapter
aServiceId
- IServiceID of the service to get info about. Must not be
null
.null
if no
information retrievable.public IServiceTypeID[] getServiceTypes()
getServiceTypes
in interface IDiscoveryLocator
getServiceTypes
in class DnsSdDiscoveryContainerAdapter
null
. May be of length 0.IDiscoveryLocator.getServiceTypes()
public IServiceInfo[] getServices()
IDiscoveryLocator
getServices
in interface IDiscoveryLocator
getServices
in class DnsSdDiscoveryContainerAdapter
null
. May be of length 0.public IServiceInfo[] getServices(IServiceTypeID aServiceTypeId)
IDiscoveryLocator
getServices
in interface IDiscoveryLocator
getServices
in class DnsSdDiscoveryContainerAdapter
aServiceTypeId
- IServiceTypeID defining the type of service we are interested
in getting service info about. Must not be null
null
. May be of length 0.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.public java.lang.String getContainerName()
getContainerName
in class AbstractDiscoveryContainerAdapter