|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ecf.core.AbstractContainer org.eclipse.ecf.discovery.AbstractDiscoveryContainerAdapter org.eclipse.ecf.provider.dnssd.DnsSdDiscoveryContainerAdapter
public abstract class DnsSdDiscoveryContainerAdapter
Nested Class Summary | |
---|---|
protected class |
DnsSdDiscoveryContainerAdapter.SRVRecordComparator
|
Field Summary | |
---|---|
protected org.xbill.DNS.Resolver |
resolver
|
protected DnsSdServiceTypeID |
targetID
|
Fields inherited from class org.eclipse.ecf.discovery.AbstractDiscoveryContainerAdapter |
---|
allServiceListeners, serviceListeners, servicesNamespaceName, serviceTypeListeners |
Fields inherited from interface org.eclipse.ecf.discovery.IDiscoveryLocator |
---|
CONTAINER_NAME |
Fields inherited from interface org.eclipse.ecf.discovery.IDiscoveryAdvertiser |
---|
CONTAINER_NAME |
Constructor Summary | |
---|---|
DnsSdDiscoveryContainerAdapter(java.lang.String aNamespaceName,
DiscoveryContainerConfig aConfig)
|
Method Summary | |
---|---|
abstract void |
connect(ID targetID,
IConnectContext connectContext)
Connect to a target remote process or process group. |
void |
disconnect()
Disconnect. |
protected java.util.Collection |
getBrowsingOrRegistrationDomains(IServiceTypeID aServiceTypeId,
java.lang.String[] rrs)
|
ID |
getConnectedID()
Get the target ID that this container instance has connected to. |
protected org.xbill.DNS.Record[] |
getRecords(DnsSdServiceTypeID serviceTypeId)
|
java.lang.String[] |
getSearchPath()
|
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()
Synchronously get service info about all known services of given service type |
protected java.util.SortedSet |
getSRVRecord(org.xbill.DNS.Lookup query,
java.util.Comparator aComparator)
|
protected java.util.SortedSet |
getSRVRecords(org.xbill.DNS.Lookup[] queries)
|
protected java.util.SortedSet |
getSRVRecords(org.xbill.DNS.Lookup[] queries,
java.util.Comparator aComparator)
|
void |
registerService(IServiceInfo serviceInfo)
Register the given service. |
void |
setResolver(java.lang.String aResolver)
|
void |
setSearchPath(java.lang.String[] searchPaths)
|
void |
setTsigKey(java.lang.String tsigKeyName,
java.lang.String tsigKey)
|
void |
unregisterService(IServiceInfo serviceInfo)
Unregister a previously registered service defined by serviceInfo. |
Methods inherited from class org.eclipse.ecf.core.AbstractContainer |
---|
addListener, fireContainerEvent, getAdapter, getPasswordFromConnectContext, removeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Field Detail |
---|
protected org.xbill.DNS.Resolver resolver
protected DnsSdServiceTypeID targetID
Constructor Detail |
---|
public DnsSdDiscoveryContainerAdapter(java.lang.String aNamespaceName, DiscoveryContainerConfig aConfig)
Method Detail |
---|
public IServiceInfo getServiceInfo(IServiceID aServiceId)
IDiscoveryLocator
null
if no
information retrievable.public IServiceTypeID[] getServiceTypes()
IDiscoveryLocator
null
. May be of length 0.public IServiceInfo[] getServices()
IDiscoveryLocator
null
. May be of length 0.public IServiceInfo[] getServices(IServiceTypeID aServiceTypeId)
IDiscoveryLocator
null
. May be of length 0.public void registerService(IServiceInfo serviceInfo)
IDiscoveryAdvertiser
serviceInfo
- IServiceInfo of the service to be published. Must not be
null
.public void unregisterService(IServiceInfo serviceInfo)
IDiscoveryAdvertiser
serviceInfo
- IServiceInfo defining the service to unregister. Must not be
null
.public abstract void connect(ID targetID, IConnectContext connectContext) throws ContainerConnectException
IContainer
targetID
- 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 ID getConnectedID()
IContainer
null
if container not connected.public void disconnect()
IContainer
null
.
protected java.util.Collection getBrowsingOrRegistrationDomains(IServiceTypeID aServiceTypeId, java.lang.String[] rrs)
protected org.xbill.DNS.Record[] getRecords(DnsSdServiceTypeID serviceTypeId)
protected java.util.SortedSet getSRVRecords(org.xbill.DNS.Lookup[] queries)
protected java.util.SortedSet getSRVRecords(org.xbill.DNS.Lookup[] queries, java.util.Comparator aComparator)
protected java.util.SortedSet getSRVRecord(org.xbill.DNS.Lookup query, java.util.Comparator aComparator)
public void setSearchPath(java.lang.String[] searchPaths)
searchPaths
- The default search path used for discoverypublic java.lang.String[] getSearchPath()
public void setResolver(java.lang.String aResolver)
aResolver
- The resolver to use
DnsSdDiscoveryException
- if hostname cannot be resolvedpublic void setTsigKey(java.lang.String tsigKeyName, java.lang.String tsigKey)
tsigKeyName
- A key name/user name for dns dynamic updatetsigKey
- A string representation of the shared key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |