Package org.eclipse.ecf.remoteservice
Class RemoteServiceRegistryImpl
java.lang.Object
org.eclipse.ecf.remoteservice.RemoteServiceRegistryImpl
- All Implemented Interfaces:
Serializable
- Since:
- 8.3
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateRemoteServiceID
(long serviceid) protected RemoteServiceRegistrationImpl
findRegistrationForRemoteServiceId
(IRemoteServiceID remoteServiceID) protected RemoteServiceRegistrationImpl
findRegistrationForServiceId
(long serviceId) protected long
protected RemoteServiceRegistrationImpl[]
lookupServiceReferences
(String clazz, IRemoteFilter filter) void
publishService
(RemoteServiceRegistrationImpl serviceReg) void
setContainerID
(ID containerID) toString()
void
unpublishService
(RemoteServiceRegistrationImpl serviceReg) void
-
Field Details
-
REMOTEOBJECTCLASS
- See Also:
-
REMOTESERVICE_ID
- See Also:
-
REMOTESERVICE_RANKING
- See Also:
-
publishedServicesByClass
Published services by class name. Key is a String class name; Value is a ArrayList of IRemoteServiceRegistrations -
containerID
-
allPublishedServices
All published services
-
-
Constructor Details
-
RemoteServiceRegistryImpl
public RemoteServiceRegistryImpl() -
RemoteServiceRegistryImpl
-
-
Method Details
-
getNextServiceId
protected long getNextServiceId() -
getContainerID
-
setContainerID
- Parameters:
containerID
- the containerID to set- Since:
- 3.4
-
publishService
-
unpublishService
-
unpublishServices
public void unpublishServices() -
lookupServiceReferences
-
lookupServiceReferences
-
getRegistrations
-
findRegistrationForServiceId
-
findRegistrationForRemoteServiceId
protected RemoteServiceRegistrationImpl findRegistrationForRemoteServiceId(IRemoteServiceID remoteServiceID) - Parameters:
remoteServiceID
- the remote service id to find the registration for.- Returns:
- RemoteServiceRegistrationImpl the registration found for the given remoteServiceID.
Will be
null
if no remote service registration found for given remoteServiceID - Since:
- 3.0
-
toString
-
createRemoteServiceID
- Parameters:
serviceid
- the container relative service id- Returns:
- the IRemoteServiceID with same container and giveen serviceid
- Since:
- 3.0
-