public class AdvertisedService extends ServiceInfo implements org.eclipse.ecf.provider.zookeeper.node.internal.INode, org.eclipse.ecf.provider.zookeeper.core.internal.IService
AdvertisedService
is build either with an OSGi service
reference ServiceReference
or ServiceInfo
object.DEFAULT_PRIORITY, DEFAULT_TTL, DEFAULT_WEIGHT, priority, properties, serviceID, serviceName, timeToLive, UNKNOWN_PROTOCOL, weight
_BYTES_, _URI_, _ZOODISCOVERYID_, ID_POSITION, NODE_PROPERTY_NAME_NA, NODE_PROPERTY_NAME_PROTOCOLS, NODE_PROPERTY_NAME_SCOPE, NODE_PROPERTY_SERVICE_NAME, NODE_PROPERTY_SERVICES, NODE_SERVICE_PROPERTIES, ROOT, ROOT_SLASH, SLASH, STRING_DELIM, URI_POSITION, ZOODISCOVERYID_POSITION
Constructor and Description |
---|
AdvertisedService(IServiceInfo serviceInfo) |
AdvertisedService(ServiceReference ref) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
String |
getAbsolutePath() |
URI |
getLocation()
Get URI for service
|
String |
getNodeId() |
String |
getPath() |
byte[] |
getPropertiesAsBytes()
The byte representation of the service properties, appropriate to be
stored in the zooKeeper node
|
static Map<String,IServiceInfo> |
getPublishedServices() |
IServiceID |
getServiceID()
Get ServiceID for service.
|
ServiceReference |
getServiceReference() |
org.eclipse.ecf.provider.zookeeper.core.internal.IService |
getWrappedService() |
boolean |
isLocalNode() |
void |
regenerateNodeId() |
static IServiceInfo |
removePublished(String id) |
getAdapter, getPriority, getServiceName, getServiceProperties, getTTL, getWeight, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPriority, getServiceName, getServiceProperties, getTTL, getWeight
public AdvertisedService(ServiceReference ref)
public AdvertisedService(IServiceInfo serviceInfo)
public static Map<String,IServiceInfo> getPublishedServices()
public static IServiceInfo removePublished(String id)
public String getNodeId()
public void regenerateNodeId()
regenerateNodeId
in interface org.eclipse.ecf.provider.zookeeper.node.internal.INode
public URI getLocation()
IServiceInfo
getLocation
in interface IServiceInfo
getLocation
in class ServiceInfo
URI
the location for the service.public IServiceID getServiceID()
IServiceInfo
getServiceID
in interface IServiceInfo
getServiceID
in class ServiceInfo
null
.public int compareTo(Object o)
public ServiceReference getServiceReference()
AdvertisedService
instance is not built
calling constructor
AdvertisedService(ServiceReference ref)
.public byte[] getPropertiesAsBytes()
org.eclipse.ecf.provider.zookeeper.core.internal.IService
getPropertiesAsBytes
in interface org.eclipse.ecf.provider.zookeeper.core.internal.IService
public String getPath()
getPath
in interface org.eclipse.ecf.provider.zookeeper.node.internal.INode
public String getAbsolutePath()
getAbsolutePath
in interface org.eclipse.ecf.provider.zookeeper.node.internal.INode
public boolean isLocalNode()
isLocalNode
in interface org.eclipse.ecf.provider.zookeeper.node.internal.INode
public org.eclipse.ecf.provider.zookeeper.core.internal.IService getWrappedService()
getWrappedService
in interface org.eclipse.ecf.provider.zookeeper.node.internal.INode
Copyright © 2004–2020 Eclipse Foundation. All rights reserved.