public class RemoteServiceRegistryImpl
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList |
allPublishedServices
All published services
|
protected ID |
containerID |
protected java.util.HashMap |
publishedServicesByClass
Published services by class name.
|
protected static java.lang.String |
REMOTEOBJECTCLASS |
protected static java.lang.String |
REMOTESERVICE_ID |
protected static java.lang.String |
REMOTESERVICE_RANKING |
Constructor and Description |
---|
RemoteServiceRegistryImpl() |
RemoteServiceRegistryImpl(ID localContainerID) |
Modifier and Type | Method and Description |
---|---|
IRemoteServiceID |
createRemoteServiceID(long serviceid) |
protected RemoteServiceRegistrationImpl |
findRegistrationForRemoteServiceId(IRemoteServiceID remoteServiceID) |
protected RemoteServiceRegistrationImpl |
findRegistrationForServiceId(long serviceId) |
ID |
getContainerID() |
protected long |
getNextServiceId() |
protected RemoteServiceRegistrationImpl[] |
getRegistrations() |
IRemoteServiceReference[] |
lookupServiceReferences() |
IRemoteServiceReference[] |
lookupServiceReferences(java.lang.String clazz,
IRemoteFilter filter) |
void |
publishService(RemoteServiceRegistrationImpl serviceReg) |
void |
setContainerID(ID containerID) |
java.lang.String |
toString() |
void |
unpublishService(RemoteServiceRegistrationImpl serviceReg) |
void |
unpublishServices() |
protected static final java.lang.String REMOTEOBJECTCLASS
protected static final java.lang.String REMOTESERVICE_ID
protected static final java.lang.String REMOTESERVICE_RANKING
protected java.util.HashMap publishedServicesByClass
protected ID containerID
protected java.util.ArrayList allPublishedServices
public RemoteServiceRegistryImpl()
public RemoteServiceRegistryImpl(ID localContainerID)
protected long getNextServiceId()
public ID getContainerID()
public void setContainerID(ID containerID)
containerID
- containerIDpublic void publishService(RemoteServiceRegistrationImpl serviceReg)
public void unpublishService(RemoteServiceRegistrationImpl serviceReg)
public void unpublishServices()
public IRemoteServiceReference[] lookupServiceReferences(java.lang.String clazz, IRemoteFilter filter)
public IRemoteServiceReference[] lookupServiceReferences()
protected RemoteServiceRegistrationImpl[] getRegistrations()
protected RemoteServiceRegistrationImpl findRegistrationForServiceId(long serviceId)
protected RemoteServiceRegistrationImpl findRegistrationForRemoteServiceId(IRemoteServiceID remoteServiceID)
remoteServiceID
- remoteServiceID for registration to findpublic java.lang.String toString()
toString
in class java.lang.Object
public IRemoteServiceID createRemoteServiceID(long serviceid)
serviceid
- remote service id