Class RemoteServiceRegistrationImpl
java.lang.Object
org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl
- All Implemented Interfaces:
Serializable
,IRemoteServiceRegistration
public class RemoteServiceRegistrationImpl
extends Object
implements IRemoteServiceRegistration, Serializable
- Since:
- 3.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String[]
service classes for this registration.protected org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.Properties
properties for this registration.protected RemoteServiceReferenceImpl
static final int
protected Object
protected IRemoteServiceID
protected int
service ranking.protected RegistrySharedObject
protected int
The registration statestatic final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncallService
(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
protected String[]
Get the container ID for the registrationgetID()
Get the remote service ID for this registration.getProperty
(String key) Get property associated with given keyString[]
Get property keys for registered serviceGet reference for this registrationlong
int
hashCode()
void
publish
(RegistrySharedObject sharedObject1, RemoteServiceRegistryImpl registry, Object svc, String[] clzzes, Dictionary props) 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.provider.remoteservice.generic.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
-
-
Constructor Details
-
RemoteServiceRegistrationImpl
public RemoteServiceRegistrationImpl()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
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.provider.remoteservice.generic.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() -
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
-
getClassLoader
- Specified by:
getClassLoader
in interfaceIRemoteServiceRegistration
- Since:
- 4.5
-