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.remoteservice.RemoteServiceRegistrationImpl.Properties |
properties
properties for this registration.
|
protected RemoteServiceReferenceImpl |
reference |
static int |
REGISTERED |
protected IRegistrationListener |
registrationListener |
protected Object |
registrationLock |
protected IRemoteServiceID |
remoteServiceID |
protected int |
serviceranking
service ranking.
|
protected int |
state
The registration state
|
static int |
UNREGISTERED |
static int |
UNREGISTERING |
Constructor and Description |
---|
RemoteServiceRegistrationImpl() |
RemoteServiceRegistrationImpl(IRegistrationListener listener) |
Modifier and Type | Method and Description |
---|---|
Object |
callService(IRemoteCall call) |
protected org.eclipse.ecf.remoteservice.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.
|
String[] |
getInterfaces() |
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() |
static Class[] |
getTypesForParameters(Object[] args) |
int |
hashCode() |
void |
publish(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.remoteservice.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 IRemoteServiceID remoteServiceID
protected IRegistrationListener registrationListener
public RemoteServiceRegistrationImpl()
public RemoteServiceRegistrationImpl(IRegistrationListener listener)
public void publish(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.remoteservice.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(IRemoteCall call) throws Exception
Exception
public IRemoteServiceID getID()
IRemoteServiceRegistration
null
.getID
in interface IRemoteServiceRegistration
public String[] getInterfaces()
Copyright © 2004–2020 Eclipse Foundation. All rights reserved.