|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl
public class RemoteServiceRegistrationImpl
| Field Summary | |
|---|---|
protected java.lang.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 java.lang.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 Summary | |
|---|---|
RemoteServiceRegistrationImpl()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
callService(RemoteCallImpl call)
|
protected org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.Properties |
createProperties(java.util.Dictionary props)
Construct a properties object from the dictionary for this ServiceRegistration. |
boolean |
equals(java.lang.Object o)
|
protected java.lang.String[] |
getClasses()
|
ID |
getContainerID()
Get the container ID for the registration |
IRemoteServiceID |
getID()
Get the remote service ID for this registration. |
java.lang.Object |
getProperty(java.lang.String key)
Get property associated with given key |
java.lang.String[] |
getPropertyKeys()
Get property keys for registered service |
IRemoteServiceReference |
getReference()
Get reference for this registration |
java.lang.Object |
getService()
|
long |
getServiceId()
|
int |
hashCode()
|
void |
publish(RegistrySharedObject sharedObject1,
RemoteServiceRegistryImpl registry,
java.lang.Object svc,
java.lang.String[] clzzes,
java.util.Dictionary props)
|
void |
setProperties(java.util.Dictionary properties)
Set the properties for the registered service |
java.lang.String |
toString()
|
void |
unregister()
Unregister this service |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String[] clazzes
protected org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.Properties properties
protected int serviceranking
protected transient java.lang.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
| Constructor Detail |
|---|
public RemoteServiceRegistrationImpl()
| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
public void publish(RegistrySharedObject sharedObject1,
RemoteServiceRegistryImpl registry,
java.lang.Object svc,
java.lang.String[] clzzes,
java.util.Dictionary props)
public java.lang.Object getService()
public ID getContainerID()
IRemoteServiceRegistration
getContainerID in interface IRemoteServiceRegistrationnull .protected java.lang.String[] getClasses()
public IRemoteServiceReference getReference()
IRemoteServiceRegistration
getReference in interface IRemoteServiceRegistrationnull.public void setProperties(java.util.Dictionary properties)
IRemoteServiceRegistration
setProperties in interface IRemoteServiceRegistrationproperties - to set. Must not be null.public void unregister()
IRemoteServiceRegistration
unregister in interface IRemoteServiceRegistrationprotected org.eclipse.ecf.provider.remoteservice.generic.RemoteServiceRegistrationImpl.Properties createProperties(java.util.Dictionary props)
props - The properties for this service.
public java.lang.Object getProperty(java.lang.String key)
IRemoteServiceRegistration
getProperty in interface IRemoteServiceRegistrationkey - the key of the property. Must not be null.
null if property not
found.public java.lang.String[] getPropertyKeys()
IRemoteServiceRegistration
getPropertyKeys in interface IRemoteServiceRegistrationpublic long getServiceId()
public java.lang.Object callService(RemoteCallImpl call)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic IRemoteServiceID getID()
IRemoteServiceRegistrationnull.
getID in interface IRemoteServiceRegistration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||