org.eclipse.ecf.provider.remoteservice.generic
Class RemoteServiceRegistryImpl

java.lang.Object
  extended by org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistryImpl
All Implemented Interfaces:
java.io.Serializable

public class RemoteServiceRegistryImpl
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
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 Summary
RemoteServiceRegistryImpl()
           
RemoteServiceRegistryImpl(ID localContainerID)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REMOTEOBJECTCLASS

protected static final java.lang.String REMOTEOBJECTCLASS
See Also:
Constant Field Values

REMOTESERVICE_ID

protected static final java.lang.String REMOTESERVICE_ID
See Also:
Constant Field Values

REMOTESERVICE_RANKING

protected static final java.lang.String REMOTESERVICE_RANKING
See Also:
Constant Field Values

publishedServicesByClass

protected java.util.HashMap publishedServicesByClass
Published services by class name. Key is a String class name; Value is a ArrayList of IRemoteServiceRegistrations


containerID

protected ID containerID

allPublishedServices

protected java.util.ArrayList allPublishedServices
All published services

Constructor Detail

RemoteServiceRegistryImpl

public RemoteServiceRegistryImpl()

RemoteServiceRegistryImpl

public RemoteServiceRegistryImpl(ID localContainerID)
Method Detail

getNextServiceId

protected long getNextServiceId()

getContainerID

public ID getContainerID()

setContainerID

public void setContainerID(ID containerID)
Since:
3.4

publishService

public void publishService(RemoteServiceRegistrationImpl serviceReg)

unpublishService

public void unpublishService(RemoteServiceRegistrationImpl serviceReg)

unpublishServices

public void unpublishServices()

lookupServiceReferences

public IRemoteServiceReference[] lookupServiceReferences(java.lang.String clazz,
                                                         IRemoteFilter filter)

lookupServiceReferences

public IRemoteServiceReference[] lookupServiceReferences()

getRegistrations

protected RemoteServiceRegistrationImpl[] getRegistrations()

findRegistrationForServiceId

protected RemoteServiceRegistrationImpl findRegistrationForServiceId(long serviceId)

findRegistrationForRemoteServiceId

protected RemoteServiceRegistrationImpl findRegistrationForRemoteServiceId(IRemoteServiceID remoteServiceID)
Since:
3.0

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

createRemoteServiceID

public IRemoteServiceID createRemoteServiceID(long serviceid)
Since:
3.0