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
FieldsModifier and TypeFieldDescriptionprotected String[]service classes for this registration.protected org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.Propertiesproperties for this registration.protected RemoteServiceReferenceImplstatic final intprotected Objectprotected IRemoteServiceIDprotected intservice ranking.protected RegistrySharedObjectprotected intThe registration statestatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncallService(RemoteCallImpl call) protected org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.PropertiescreateProperties(Dictionary props) Construct a properties object from the dictionary for this ServiceRegistration.booleanprotected 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 registrationlonginthashCode()voidpublish(RegistrySharedObject sharedObject1, RemoteServiceRegistryImpl registry, Object svc, String[] clzzes, Dictionary props) voidsetProperties(Dictionary properties) Set the properties for the registered servicetoString()voidUnregister 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:IRemoteServiceRegistrationGet the container ID for the registration- Specified by:
getContainerIDin interfaceIRemoteServiceRegistration- Returns:
- ID of the local container. Will not be
null.
-
getClasses
-
getReference
Description copied from interface:IRemoteServiceRegistrationGet reference for this registration- Specified by:
getReferencein interfaceIRemoteServiceRegistration- Returns:
- IRemoteServiceReference for this registration. Will not be
null.
-
setProperties
Description copied from interface:IRemoteServiceRegistrationSet the properties for the registered service- Specified by:
setPropertiesin interfaceIRemoteServiceRegistration- Parameters:
properties- to set. Must not benull.
-
unregister
public void unregister()Description copied from interface:IRemoteServiceRegistrationUnregister this service- Specified by:
unregisterin 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:IRemoteServiceRegistrationGet property associated with given key- Specified by:
getPropertyin interfaceIRemoteServiceRegistration- Parameters:
key- the key of the property. Must not benull.- Returns:
- Object the property value.
nullif property not found.
-
getPropertyKeys
Description copied from interface:IRemoteServiceRegistrationGet property keys for registered service- Specified by:
getPropertyKeysin 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:IRemoteServiceRegistrationGet the remote service ID for this registration. Will not returnnull.- Specified by:
getIDin interfaceIRemoteServiceRegistration- Returns:
- IRemoteServiceID the id for the remote service associated with this registration.
- Since:
- 3.0
-
getClassLoader
- Specified by:
getClassLoaderin interfaceIRemoteServiceRegistration- Since:
- 4.5
-