Package org.eclipse.ecf.remoteservice
Class RemoteServiceRegistrationImpl
java.lang.Object
org.eclipse.ecf.remoteservice.RemoteServiceRegistrationImpl
- All Implemented Interfaces:
Serializable
,IRemoteServiceRegistration
- Direct Known Subclasses:
RSARemoteServiceContainerAdapter.RSARemoteServiceRegistration
public class RemoteServiceRegistrationImpl
extends Object
implements IRemoteServiceRegistration, Serializable
- Since:
- 8.3
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String[]
service classes for this registration.protected org.eclipse.ecf.remoteservice.RemoteServiceRegistrationImpl.Properties
properties for this registration.protected RemoteServiceReferenceImpl
static final int
protected IRegistrationListener
protected Object
protected IRemoteServiceID
protected int
service ranking.protected int
The registration statestatic final int
static final int
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptioncallService
(IRemoteCall call) protected org.eclipse.ecf.remoteservice.RemoteServiceRegistrationImpl.Properties
createProperties
(Dictionary props) Construct a properties object from the dictionary for this ServiceRegistration.boolean
protected String[]
Get the container ID for the registrationgetID()
Get the remote service ID for this registration.String[]
getProperty
(String key) Get property associated with given keyString[]
Get property keys for registered serviceGet reference for this registrationlong
static Class[]
getTypesForParameters
(Object[] args) int
hashCode()
void
publish
(RemoteServiceRegistryImpl registry, Object svc, String[] clzzes, Dictionary props) protected void
void
setProperties
(Dictionary properties) Set the properties for the registered servicetoString()
void
Unregister this service
-
Field Details
-
clazzes
service classes for this registration. -
properties
protected org.eclipse.ecf.remoteservice.RemoteServiceRegistrationImpl.Properties propertiesproperties for this registration. -
serviceranking
protected int servicerankingservice ranking. -
registrationLock
-
state
protected int stateThe registration state -
REGISTERED
public static final int REGISTERED- See Also:
-
UNREGISTERING
public static final int UNREGISTERING- See Also:
-
UNREGISTERED
public static final int UNREGISTERED- See Also:
-
reference
-
remoteServiceID
- Since:
- 3.0
-
registrationListener
-
-
Constructor Details
-
RemoteServiceRegistrationImpl
public RemoteServiceRegistrationImpl() -
RemoteServiceRegistrationImpl
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
publish
public void publish(RemoteServiceRegistryImpl registry, Object svc, String[] clzzes, Dictionary props) -
getService
-
getContainerID
Description copied from interface:IRemoteServiceRegistration
Get the container ID for the registration- Specified by:
getContainerID
in interfaceIRemoteServiceRegistration
- Returns:
- ID of the local container. Will not be
null
.
-
getClasses
-
getReference
Description copied from interface:IRemoteServiceRegistration
Get reference for this registration- Specified by:
getReference
in interfaceIRemoteServiceRegistration
- Returns:
- IRemoteServiceReference for this registration. Will not be
null
.
-
setProperties
Description copied from interface:IRemoteServiceRegistration
Set the properties for the registered service- Specified by:
setProperties
in interfaceIRemoteServiceRegistration
- Parameters:
properties
- to set. Must not benull
.
-
unregister
public void unregister()Description copied from interface:IRemoteServiceRegistration
Unregister this service- Specified by:
unregister
in interfaceIRemoteServiceRegistration
-
createProperties
protected org.eclipse.ecf.remoteservice.RemoteServiceRegistrationImpl.Properties createProperties(Dictionary props) Construct a properties object from the dictionary for this ServiceRegistration.- Parameters:
props
- The properties for this service.- Returns:
- A Properties object for this ServiceRegistration.
-
getProperty
Description copied from interface:IRemoteServiceRegistration
Get property associated with given key- Specified by:
getProperty
in interfaceIRemoteServiceRegistration
- Parameters:
key
- the key of the property. Must not benull
.- Returns:
- Object the property value.
null
if property not found.
-
getPropertyKeys
Description copied from interface:IRemoteServiceRegistration
Get property keys for registered service- Specified by:
getPropertyKeys
in interfaceIRemoteServiceRegistration
- Returns:
- String [] with property keys. Will not be null, but may be empty array.
-
getServiceId
public long getServiceId() -
getTypesForParameters
-
callService
- Throws:
Exception
-
toString
-
getID
Description copied from interface:IRemoteServiceRegistration
Get the remote service ID for this registration. Will not returnnull
.- Specified by:
getID
in interfaceIRemoteServiceRegistration
- Returns:
- IRemoteServiceID the id for the remote service associated with this registration.
- Since:
- 3.0
-
getInterfaces
- Returns:
- String[] the interface classes associated with this registration
- Since:
- 8.9
-
getClassLoader
- Specified by:
getClassLoader
in interfaceIRemoteServiceRegistration
-
setClassLoader
- Since:
- 8.14
-