public class AdvertisedService extends ServiceInfo
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
Constructor and Description |
---|
AdvertisedService(IServiceInfo serviceInfo) |
AdvertisedService(org.osgi.framework.ServiceReference ref) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o) |
java.lang.String |
getAbsolutePath() |
java.net.URI |
getLocation()
Get URI for service
|
java.lang.String |
getNodeId() |
java.lang.String |
getPath() |
byte[] |
getPropertiesAsBytes() |
static java.util.Map<java.lang.String,IServiceInfo> |
getPublishedServices() |
IServiceID |
getServiceID()
Get ServiceID for service.
|
org.osgi.framework.ServiceReference |
getServiceReference() |
IService |
getWrappedService() |
boolean |
isLocalNode() |
void |
regenerateNodeId() |
static IServiceInfo |
removePublished(java.lang.String id) |
getAdapter, getPriority, getServiceName, getServiceProperties, getTTL, getWeight, toString
public AdvertisedService(org.osgi.framework.ServiceReference ref)
public AdvertisedService(IServiceInfo serviceInfo)
public static java.util.Map<java.lang.String,IServiceInfo> getPublishedServices()
public static IServiceInfo removePublished(java.lang.String id)
public java.lang.String getNodeId()
public void regenerateNodeId()
public java.net.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(java.lang.Object o)
public org.osgi.framework.ServiceReference getServiceReference()
AdvertisedService
instance is not built
calling constructor
AdvertisedService(ServiceReference ref)
.public byte[] getPropertiesAsBytes()
public java.lang.String getPath()
public java.lang.String getAbsolutePath()
public boolean isLocalNode()
public IService getWrappedService()