|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ecf.core.AbstractContainer
org.eclipse.ecf.discovery.AbstractDiscoveryContainerAdapter
org.eclipse.ecf.provider.jmdns.container.JMDNSDiscoveryContainer
public class JMDNSDiscoveryContainer
| Field Summary | |
|---|---|
static int |
DEFAULT_REQUEST_TIMEOUT
|
| Fields inherited from class org.eclipse.ecf.discovery.AbstractDiscoveryContainerAdapter |
|---|
allServiceListeners, serviceListeners, servicesNamespaceName, serviceTypeListeners |
| Fields inherited from interface org.eclipse.ecf.discovery.service.IDiscoveryService |
|---|
CONTAINER_ID |
| Fields inherited from interface org.eclipse.ecf.discovery.IDiscoveryContainerAdapter |
|---|
CONTAINER_CONNECT_REQUIRES_PASSWORD, CONTAINER_CONNECT_TARGET, CONTAINER_CONNECT_TARGET_PATH, CONTAINER_CONNECT_TARGET_PROTOCOL, CONTAINER_FACTORY_NAME_PROPERTY |
| Constructor Summary | |
|---|---|
JMDNSDiscoveryContainer(java.net.InetAddress addr)
|
|
| Method Summary | |
|---|---|
void |
connect(ID targetID1,
IConnectContext joinContext)
Connect to a target remote process or process group. |
void |
disconnect()
Disconnect. |
void |
dispose()
Dispose this IContainer instance. |
ID |
getConnectedID()
IContainer methods |
IServiceInfo |
getServiceInfo(IServiceID service)
IDiscoveryContainerAdapter methods |
IServiceInfo[] |
getServices()
Synchronously get service info about all known services |
IServiceInfo[] |
getServices(IServiceTypeID type)
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 void |
handleRuntimeException(java.lang.Throwable t)
|
void |
registerService(IServiceInfo serviceInfo)
Register the given service. |
void |
serviceAdded(javax.jmdns.ServiceEvent arg0)
|
void |
serviceRemoved(javax.jmdns.ServiceEvent arg0)
|
void |
serviceResolved(javax.jmdns.ServiceEvent arg0)
|
void |
serviceTypeAdded(javax.jmdns.ServiceEvent arg0)
|
void |
unregisterService(IServiceInfo serviceInfo)
Unregister a previously registered service defined by serviceInfo. |
| Methods inherited from class org.eclipse.ecf.discovery.AbstractDiscoveryContainerAdapter |
|---|
addServiceListener, addServiceListener, addServiceTypeListener, clearListeners, fireServiceDiscovered, fireServiceTypeDiscovered, fireServiceUndiscovered, getConfig, getConnectNamespace, getID, getListeners, getServicesNamespace, removeServiceListener, removeServiceListener, removeServiceTypeListener |
| 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.ecf.discovery.IDiscoveryContainerAdapter |
|---|
addServiceListener, addServiceListener, addServiceTypeListener, getServicesNamespace, removeServiceListener, removeServiceListener, removeServiceTypeListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Methods inherited from interface org.eclipse.ecf.core.IContainer |
|---|
addListener, getAdapter, removeListener |
| Field Detail |
|---|
public static final int DEFAULT_REQUEST_TIMEOUT
| Constructor Detail |
|---|
public JMDNSDiscoveryContainer(java.net.InetAddress addr)
throws IDCreateException
IDCreateException| Method Detail |
|---|
public ID getConnectedID()
getConnectedID in interface IContainernull
if container not connected.public void dispose()
IContainer
dispose in interface IContainerdispose in class AbstractDiscoveryContainerAdapter
public void connect(ID targetID1,
IConnectContext joinContext)
throws ContainerConnectException
IContainer
connect in interface IContainertargetID1 - the ID of the remote server or group to connect to. See
IContainer.getConnectNamespace() for a explanation of the
constraints upon this parameter.joinContext - 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 handleRuntimeException(java.lang.Throwable t)
public void disconnect()
IContainernull.
disconnect in interface IContainerpublic IServiceInfo getServiceInfo(IServiceID service)
getServiceInfo in interface IDiscoveryContainerAdapterservice - IServiceID of the service to get info about. Must not be
null.
null if
no information retrievable.public IServiceInfo[] getServices()
IDiscoveryContainerAdapter
getServices in interface IDiscoveryContainerAdapternull. May be of length 0.public IServiceInfo[] getServices(IServiceTypeID type)
IDiscoveryContainerAdapter
getServices in interface IDiscoveryContainerAdaptertype - 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 IServiceTypeID[] getServiceTypes()
IDiscoveryContainerAdapter
getServiceTypes in interface IDiscoveryContainerAdapternull. May be of length 0.
public void registerService(IServiceInfo serviceInfo)
throws ECFException
IDiscoveryContainerAdapter
registerService in interface IDiscoveryContainerAdapterserviceInfo - IServiceInfo of the service to be published. Must not be
null.
ECFException - if service info cannot be registered with this servicepublic void unregisterService(IServiceInfo serviceInfo)
IDiscoveryContainerAdapter
unregisterService in interface IDiscoveryContainerAdapterserviceInfo - IServiceInfo defining the service to unregister. Must not be
null.public void serviceTypeAdded(javax.jmdns.ServiceEvent arg0)
serviceTypeAdded in interface javax.jmdns.ServiceTypeListenerpublic void serviceAdded(javax.jmdns.ServiceEvent arg0)
serviceAdded in interface javax.jmdns.ServiceListenerpublic void serviceRemoved(javax.jmdns.ServiceEvent arg0)
serviceRemoved in interface javax.jmdns.ServiceListenerpublic void serviceResolved(javax.jmdns.ServiceEvent arg0)
serviceResolved in interface javax.jmdns.ServiceListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||