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()
IRemoteServiceRegistration
getContainerID
in interface IRemoteServiceRegistration
null
.protected String[] getClasses()
public IRemoteServiceReference getReference()
IRemoteServiceRegistration
getReference
in interface IRemoteServiceRegistration
null
.public void setProperties(Dictionary properties)
IRemoteServiceRegistration
setProperties
in interface IRemoteServiceRegistration
properties
- to set. Must not be null
.public void unregister()
IRemoteServiceRegistration
unregister
in interface IRemoteServiceRegistration
protected org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.Properties createProperties(Dictionary props)
props
- The properties for this service.public Object getProperty(String key)
IRemoteServiceRegistration
getProperty
in interface IRemoteServiceRegistration
key
- the key of the property. Must not be null
.null
if property not
found.public String[] getPropertyKeys()
IRemoteServiceRegistration
getPropertyKeys
in interface IRemoteServiceRegistration
public long getServiceId()
public Object callService(RemoteCallImpl call) throws Exception
Exception
public IRemoteServiceID getID()
IRemoteServiceRegistration
null
.getID
in interface IRemoteServiceRegistration
Copyright © 2017 Eclipse Foundation. All rights reserved.