|
||||||||||
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.discovery.CompositeDiscoveryContainer
public class CompositeDiscoveryContainer
Nested Class Summary | |
---|---|
protected class |
CompositeDiscoveryContainer.CompositeContainerServiceListener
|
protected class |
CompositeDiscoveryContainer.CompositeContainerServiceTypeListener
|
static class |
CompositeDiscoveryContainer.CompositeServiceInfoWrapper
|
Field Summary | |
---|---|
protected CompositeDiscoveryContainer.CompositeContainerServiceListener |
ccsl
|
protected CompositeDiscoveryContainer.CompositeContainerServiceTypeListener |
ccstl
|
protected java.util.Collection |
containers
|
protected static java.lang.String |
METHODS_CATCHING
|
protected static java.lang.String |
METHODS_TRACING
|
static java.lang.String |
NAME
|
protected java.util.Set |
registeredServices
History of services registered with this IDCA Used on newly added IDCAs |
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, CONTAINER_NAME |
Constructor Summary | |
---|---|
CompositeDiscoveryContainer(java.util.Collection containers)
|
Method Summary | |
---|---|
boolean |
addContainer(java.lang.Object object)
|
void |
connect(ID aTargetID,
IConnectContext connectContext)
Connect to a target remote process or process group. |
void |
disconnect()
Disconnect. |
void |
dispose()
Dispose this IContainer instance. |
ID |
getConnectedID()
Get the target ID that this container instance has connected to. |
java.lang.String |
getContainerName()
|
java.util.Collection |
getDiscoveryContainers()
|
protected IServiceEvent |
getServiceEvent(IServiceInfo iServiceInfo,
ID id)
|
IServiceInfo |
getServiceInfo(IServiceID aService)
Synchronously retrieve info about the service |
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 |
IServiceInfo[] |
purgeCache()
Purges the underlying IServiceInfo cache if available in the current provider |
void |
registerService(IServiceInfo serviceInfo)
Register the given service. |
boolean |
removeContainer(java.lang.Object object)
|
void |
unregisterAllServices()
Unregister all previously registered service. |
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.ecf.discovery.IDiscoveryLocator |
---|
addServiceListener, addServiceListener, addServiceTypeListener, getAsyncServiceInfo, getAsyncServices, getAsyncServices, getAsyncServiceTypes, getServicesNamespace, removeServiceListener, removeServiceListener, removeServiceTypeListener |
Methods inherited from interface org.eclipse.ecf.discovery.IDiscoveryAdvertiser |
---|
getServicesNamespace |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Field Detail |
---|
public static final java.lang.String NAME
protected static final java.lang.String METHODS_CATCHING
protected static final java.lang.String METHODS_TRACING
protected final CompositeDiscoveryContainer.CompositeContainerServiceListener ccsl
protected final CompositeDiscoveryContainer.CompositeContainerServiceTypeListener ccstl
protected java.util.Set registeredServices
protected final java.util.Collection containers
Constructor Detail |
---|
public CompositeDiscoveryContainer(java.util.Collection containers)
containers
- Method Detail |
---|
public void connect(ID aTargetID, IConnectContext connectContext) throws ContainerConnectException
IContainer
connect
in interface IContainer
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 void disconnect()
IContainer
null
.
disconnect
in interface IContainer
protected IServiceEvent getServiceEvent(IServiceInfo iServiceInfo, ID id)
getServiceEvent
in class AbstractDiscoveryContainerAdapter
public void dispose()
IContainer
dispose
in interface IContainer
dispose
in class AbstractDiscoveryContainerAdapter
public ID getConnectedID()
IContainer
getConnectedID
in interface IContainer
null
if container not connected.public IServiceInfo getServiceInfo(IServiceID aService)
IDiscoveryLocator
getServiceInfo
in interface IDiscoveryLocator
aService
- IServiceID of the service to get info about. Must not be
null
.
null
if no
information retrievable.public IServiceInfo[] getServices()
IDiscoveryLocator
getServices
in interface IDiscoveryLocator
null
. May be of length 0.public IServiceInfo[] getServices(IServiceTypeID type)
IDiscoveryLocator
getServices
in interface IDiscoveryLocator
type
- 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()
IDiscoveryLocator
getServiceTypes
in interface IDiscoveryLocator
null
. May be of length 0.public void registerService(IServiceInfo serviceInfo)
IDiscoveryAdvertiser
registerService
in interface IDiscoveryAdvertiser
serviceInfo
- IServiceInfo of the service to be published. Must not be
null
.public void unregisterService(IServiceInfo serviceInfo)
IDiscoveryAdvertiser
unregisterService
in interface IDiscoveryAdvertiser
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 boolean addContainer(java.lang.Object object)
object
-
List.add(java.lang.Object)
public boolean removeContainer(java.lang.Object object)
object
-
List.remove(java.lang.Object)
public java.util.Collection getDiscoveryContainers()
public java.lang.String getContainerName()
getContainerName
in class AbstractDiscoveryContainerAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |