|
||||||||||
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.jslp.container.JSLPDiscoveryContainer
public class JSLPDiscoveryContainer
Field Summary | |
---|---|
static java.lang.String |
NAME
|
static long |
REDISCOVER
|
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 | |
---|---|
JSLPDiscoveryContainer()
|
Method Summary | |
---|---|
void |
addServiceListener(IServiceListener listener)
Add a service listener. |
void |
addServiceListener(IServiceTypeID type,
IServiceListener listener)
Add a service listener. |
void |
addServiceTypeListener(IServiceTypeListener listener)
Add a service type listener. |
void |
connect(ID aTargetID,
IConnectContext connectContext)
Connect to a target remote process or process group. |
void |
disconnect()
Disconnect. |
void |
fireServiceDiscovered(IServiceInfo iinfo)
|
void |
fireServiceTypeDiscovered(IServiceTypeID serviceTypeID)
|
void |
fireServiceUndiscovered(IServiceInfo iinfo)
|
ID |
getConnectedID()
Get the target ID that this container instance has connected to. |
java.lang.String |
getContainerName()
|
IServiceInfo |
getServiceInfo(IServiceID service)
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 aServiceInfo)
Register the given service. |
void |
unregisterService(IServiceInfo aServiceInfo)
Unregister a previously registered service defined by serviceInfo. |
Methods inherited from class org.eclipse.ecf.discovery.AbstractDiscoveryContainerAdapter |
---|
clearListeners, dispose, fireServiceDiscovered, fireServiceTypeDiscovered, fireServiceUndiscovered, getAsyncServiceInfo, getAsyncServices, getAsyncServices, getAsyncServiceTypes, getConfig, getConnectNamespace, getID, getListeners, getServicesNamespace, removeServiceListener, removeServiceListener, removeServiceTypeListener, unregisterAllServices |
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 |
---|
getAsyncServiceInfo, getAsyncServices, getAsyncServices, getAsyncServiceTypes, getServicesNamespace, removeServiceListener, removeServiceListener, removeServiceTypeListener |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Methods inherited from interface org.eclipse.ecf.discovery.IDiscoveryAdvertiser |
---|
getServicesNamespace, unregisterAllServices |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Field Detail |
---|
public static final java.lang.String NAME
public static long REDISCOVER
Constructor Detail |
---|
public JSLPDiscoveryContainer()
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
public void fireServiceDiscovered(IServiceInfo iinfo)
public void fireServiceTypeDiscovered(IServiceTypeID serviceTypeID)
public void fireServiceUndiscovered(IServiceInfo iinfo)
public ID getConnectedID()
IContainer
getConnectedID
in interface IContainer
null
if container not connected.public IServiceInfo getServiceInfo(IServiceID service)
IDiscoveryLocator
getServiceInfo
in interface IDiscoveryLocator
null
if no
information retrievable.public IServiceTypeID[] getServiceTypes()
IDiscoveryLocator
getServiceTypes
in interface IDiscoveryLocator
null
. May be of length 0.public IServiceInfo[] getServices()
IDiscoveryLocator
getServices
in interface IDiscoveryLocator
null
. May be of length 0.public IServiceInfo[] getServices(IServiceTypeID type)
IDiscoveryLocator
getServices
in interface IDiscoveryLocator
null
. May be of length 0.public void registerService(IServiceInfo aServiceInfo)
IDiscoveryAdvertiser
registerService
in interface IDiscoveryAdvertiser
aServiceInfo
- IServiceInfo of the service to be published. Must not be
null
.public void unregisterService(IServiceInfo aServiceInfo)
IDiscoveryAdvertiser
unregisterService
in interface IDiscoveryAdvertiser
aServiceInfo
- IServiceInfo defining the service to unregister. Must not be
null
.public IServiceInfo[] purgeCache()
IDiscoveryLocator
purgeCache
in interface IDiscoveryLocator
purgeCache
in class AbstractDiscoveryContainerAdapter
IDiscoveryLocator.purgeCache()
public void addServiceListener(IServiceListener listener)
IDiscoveryLocator
addServiceListener
in interface IDiscoveryLocator
addServiceListener
in class AbstractDiscoveryContainerAdapter
listener
- IServiceListener to be notified. Must not be null
.public void addServiceListener(IServiceTypeID type, IServiceListener listener)
IDiscoveryLocator
addServiceListener
in interface IDiscoveryLocator
addServiceListener
in class AbstractDiscoveryContainerAdapter
type
- String type to listen for. Must not be null
. Must
be formatted according to this specific IDiscoveryContainerlistener
- IServiceListener to be notified. Must not be null
.public void addServiceTypeListener(IServiceTypeListener listener)
IDiscoveryLocator
addServiceTypeListener
in interface IDiscoveryLocator
addServiceTypeListener
in class AbstractDiscoveryContainerAdapter
listener
- the listener to be notified. Must not be null
.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 |