|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ecf.remoteservice.RemoteServiceRegistrationImpl
public class RemoteServiceRegistrationImpl
| Field Summary | |
|---|---|
protected java.lang.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 java.lang.Object |
registrationLock
|
protected IRemoteServiceID |
remoteServiceID
|
protected int |
serviceranking
service ranking. |
protected int |
state
The registration state |
static int |
UNREGISTERED
|
static int |
UNREGISTERING
|
| Constructor Summary | |
|---|---|
RemoteServiceRegistrationImpl()
|
|
RemoteServiceRegistrationImpl(IRegistrationListener listener)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
callService(IRemoteCall call)
|
protected org.eclipse.ecf.remoteservice.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()
|
static java.lang.Class[] |
getTypesForParameters(java.lang.Object[] args)
|
int |
hashCode()
|
void |
publish(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.remoteservice.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 IRemoteServiceID remoteServiceID
protected IRegistrationListener registrationListener
| Constructor Detail |
|---|
public RemoteServiceRegistrationImpl()
public RemoteServiceRegistrationImpl(IRegistrationListener listener)
| 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(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.remoteservice.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 static java.lang.Class[] getTypesForParameters(java.lang.Object[] args)
public java.lang.Object callService(IRemoteCall 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 | |||||||||