public class RemoteServiceRegistrationImpl extends Object implements IRemoteServiceRegistration, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
clazzes
service classes for this registration.
|
protected org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.Properties |
properties
properties for this registration.
|
protected RemoteServiceReferenceImpl |
reference |
static int |
REGISTERED |
protected Object |
registrationLock |
protected IRemoteServiceID |
remoteServiceID |
protected int |
serviceranking
service ranking.
|
protected RegistrySharedObject |
sharedObject |
protected int |
state
The registration state
|
static int |
UNREGISTERED |
static int |
UNREGISTERING |
| Constructor and Description |
|---|
RemoteServiceRegistrationImpl() |
| Modifier and Type | Method and Description |
|---|---|
Object |
callService(RemoteCallImpl call) |
protected org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.Properties |
createProperties(Dictionary props)
Construct a properties object from the dictionary for this
ServiceRegistration.
|
boolean |
equals(Object o) |
protected String[] |
getClasses() |
ID |
getContainerID()
Get the container ID for the registration
|
IRemoteServiceID |
getID()
Get the remote service ID for this registration.
|
Object |
getProperty(String key)
Get property associated with given key
|
String[] |
getPropertyKeys()
Get property keys for registered service
|
IRemoteServiceReference |
getReference()
Get reference for this registration
|
Object |
getService() |
long |
getServiceId() |
int |
hashCode() |
void |
publish(RegistrySharedObject sharedObject1,
RemoteServiceRegistryImpl registry,
Object svc,
String[] clzzes,
Dictionary props) |
void |
setProperties(Dictionary properties)
Set the properties for the registered service
|
String |
toString() |
void |
unregister()
Unregister this service
|
protected String[] clazzes
protected org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.Properties properties
protected int serviceranking
protected transient Object registrationLock
protected int state
public static final int REGISTERED
public static final int UNREGISTERING
public static final int UNREGISTERED
protected transient RemoteServiceReferenceImpl reference
protected transient RegistrySharedObject sharedObject
protected IRemoteServiceID remoteServiceID
public void publish(RegistrySharedObject sharedObject1, RemoteServiceRegistryImpl registry, Object svc, String[] clzzes, Dictionary props)
public Object getService()
public ID getContainerID()
IRemoteServiceRegistrationgetContainerID in interface IRemoteServiceRegistrationnull .protected String[] getClasses()
public IRemoteServiceReference getReference()
IRemoteServiceRegistrationgetReference in interface IRemoteServiceRegistrationnull.public void setProperties(Dictionary properties)
IRemoteServiceRegistrationsetProperties in interface IRemoteServiceRegistrationproperties - to set. Must not be null.public void unregister()
IRemoteServiceRegistrationunregister in interface IRemoteServiceRegistrationprotected org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.Properties createProperties(Dictionary props)
props - The properties for this service.public Object getProperty(String key)
IRemoteServiceRegistrationgetProperty in interface IRemoteServiceRegistrationkey - the key of the property. Must not be null.null if property not
found.public String[] getPropertyKeys()
IRemoteServiceRegistrationgetPropertyKeys in interface IRemoteServiceRegistrationpublic long getServiceId()
public Object callService(RemoteCallImpl call) throws Exception
Exceptionpublic IRemoteServiceID getID()
IRemoteServiceRegistrationnull.getID in interface IRemoteServiceRegistrationCopyright © 2004–2020 Eclipse Foundation. All rights reserved.