|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ecf.osgi.services.discovery.RemoteServiceEndpointDescription
public abstract class RemoteServiceEndpointDescription
| Field Summary | |
|---|---|
protected java.util.Map |
serviceProperties
|
| Constructor Summary | |
|---|---|
RemoteServiceEndpointDescription(java.util.Map properties)
|
|
| Method Summary | |
|---|---|
abstract ID |
getConnectTargetID()
Get the ECF container target ID (the ID of the container that is the target to connect to). |
abstract ID |
getEndpointAsID()
Get the ECF endpoint ID (the ID of the endpoint that exposes the given remote service). |
java.lang.String |
getEndpointID()
Returns the value of the property with key ServicePublication.ENDPOINT_ID. |
java.lang.String |
getEndpointInterfaceName(java.lang.String interfaceName)
Returns non-Java endpoint interface name associated with the given interface. |
java.net.URI |
getLocation()
Returns the value of the property with key ServicePublication.ENDPOINT_LOCATION. |
java.util.Map |
getProperties()
Returns all service endpoint properties. |
java.lang.Object |
getProperty(java.lang.String key)
Getter method for the property value of a given key. |
java.util.Collection |
getPropertyKeys()
Returns all names of service endpoint properties. |
java.util.Collection |
getProvidedInterfaces()
Returns the value of the property with key ServicePublication.SERVICE_INTERFACE_NAME. |
long |
getRemoteServiceId()
Get the remote service id for this service endpoint description. |
java.lang.String |
getRemoteServicesFilter()
Get the ECF remote services filter string. |
abstract IServiceID |
getServiceID()
|
java.lang.String[] |
getServiceIntents()
|
java.lang.String[] |
getSupportedConfigs()
|
java.lang.String |
getVersion(java.lang.String interfaceName)
Returns version of the given interface. |
void |
setProperties(java.util.Map props)
Set the properties for this endpoint description. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map serviceProperties
| Constructor Detail |
|---|
public RemoteServiceEndpointDescription(java.util.Map properties)
| Method Detail |
|---|
public java.lang.String getEndpointID()
ServiceEndpointDescriptionServicePublication.ENDPOINT_ID.
getEndpointID in interface ServiceEndpointDescriptionnull if it hasn't
been provided.public java.lang.String getEndpointInterfaceName(java.lang.String interfaceName)
ServiceEndpointDescription
Value of the property with key
ServicePublication.ENDPOINT_INTERFACE_NAME is used by this
operation.
getEndpointInterfaceName in interface ServiceEndpointDescriptioninterfaceName - for which its non-Java endpoint interface name should be
returned.
null if it
hasn't been provided or if given interface name is
null.public java.net.URI getLocation()
ServiceEndpointDescriptionServicePublication.ENDPOINT_LOCATION.
getLocation in interface ServiceEndpointDescriptionnull if it
hasn't been provided.public java.util.Map getProperties()
ServiceEndpointDescription
getProperties in interface ServiceEndpointDescriptionMap (<String, Object>). The map is never
null or empty but contains at least mandatory
ServicePublication properties. Since
ServiceEndpointDescription objects are immutable,
the returned map is also not going to be updated at a later point
of time.public java.lang.Object getProperty(java.lang.String key)
ServiceEndpointDescription
getProperty in interface ServiceEndpointDescriptionkey - Name of the property
null if none is found for the
given key or if provided key is null.public java.util.Collection getPropertyKeys()
ServiceEndpointDescription
getPropertyKeys in interface ServiceEndpointDescriptionCollection (<String>) of property names
available in the ServiceEndpointDescription. The collection is
never null or empty but contains at least names of
mandatory ServicePublication properties. Since
ServiceEndpointDescription objects are immutable,
the returned collection is also not going to be updated at a
later point of time.public java.util.Collection getProvidedInterfaces()
ServiceEndpointDescriptionServicePublication.SERVICE_INTERFACE_NAME.
getProvidedInterfaces in interface ServiceEndpointDescriptionCollection (<String>) of service interface
names provided by the advertised service endpoint. The collection
is never null or empty but contains at least one
service interface.public java.lang.String getVersion(java.lang.String interfaceName)
ServiceEndpointDescription
Value of the property with key
ServicePublication.SERVICE_INTERFACE_VERSION is used by this
operation.
getVersion in interface ServiceEndpointDescriptioninterfaceName - for which its version should be returned.
null if it
hasn't been provided or if given interface name is
null.public long getRemoteServiceId()
IRemoteServiceEndpointDescription
getRemoteServiceId in interface IRemoteServiceEndpointDescriptionpublic abstract ID getEndpointAsID()
IRemoteServiceEndpointDescriptionnull.
getEndpointAsID in interface IRemoteServiceEndpointDescriptionpublic abstract ID getConnectTargetID()
IRemoteServiceEndpointDescriptionnull, meaning that no target
ID is available, and that the endpoint ID returned from IRemoteServiceEndpointDescription.getEndpointAsID()
is also the target container ID. If not null, the ID
returned from this method may be used to connect to an intermediate
target via IContainer connect.
- Specified by:
getConnectTargetID in interface IRemoteServiceEndpointDescription
- Returns:
- ID that may be used by local IContainer to connect to remote
target.
public abstract IServiceID getServiceID()
public java.lang.String getRemoteServicesFilter()
IRemoteServiceEndpointDescriptionnull.
getRemoteServicesFilter in interface IRemoteServiceEndpointDescriptionpublic void setProperties(java.util.Map props)
IRemoteServiceEndpointDescription
setProperties in interface IRemoteServiceEndpointDescriptionprops - the new set of properties. Must not be null.public java.lang.String[] getSupportedConfigs()
getSupportedConfigs in interface IRemoteServiceEndpointDescriptionpublic java.lang.String[] getServiceIntents()
getServiceIntents in interface IRemoteServiceEndpointDescription
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||