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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPriority, getServiceName, getServiceProperties, getTTL, getWeightpublic 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.INodepublic URI getLocation()
IServiceInfogetLocation in interface IServiceInfogetLocation in class ServiceInfoURI the location for the service.public IServiceID getServiceID()
IServiceInfogetServiceID in interface IServiceInfogetServiceID in class ServiceInfonull.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.IServicegetPropertiesAsBytes in interface org.eclipse.ecf.provider.zookeeper.core.internal.IServicepublic String getPath()
getPath in interface org.eclipse.ecf.provider.zookeeper.node.internal.INodepublic String getAbsolutePath()
getAbsolutePath in interface org.eclipse.ecf.provider.zookeeper.node.internal.INodepublic boolean isLocalNode()
isLocalNode in interface org.eclipse.ecf.provider.zookeeper.node.internal.INodepublic org.eclipse.ecf.provider.zookeeper.core.internal.IService getWrappedService()
getWrappedService in interface org.eclipse.ecf.provider.zookeeper.node.internal.INodeCopyright © 2004–2020 Eclipse Foundation. All rights reserved.