public interface SystemAdvertisement extends Comparable<SystemAdvertisement>, Cloneable, Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
hwarchTag |
static String |
hwvendorTag |
static String |
idTag |
static String |
ipTag |
static String |
nameTag |
static String |
OSarchTag |
static String |
OSNameTag |
static String |
OSVersionTag |
static long |
serialVersionUID |
| Modifier and Type | Method and Description |
|---|---|
void |
addEndpointAddress(String value)
Sets the network interface's address in the form of a URI
|
Map<String,String> |
getCustomTags() |
String |
getCustomTagValue(String tagName) |
List<String> |
getEndpointAddresses()
Gets the address of the network interface in the form of URI
|
String |
getHWArch()
Gets the hWArch attribute of the SystemAdvertisement object
|
String |
getHWVendor()
Gets the hWVendor attribute of the SystemAdvertisement object
|
PeerID |
getID()
returns the id of the device
|
String |
getName()
Gets the name attribute of the SystemAdvertisement object
|
String |
getOSArch()
Gets the OSArch attribute of the SystemAdvertisement object
|
String |
getOSName()
Gets the OSName attribute of the SystemAdvertisement object
|
String |
getOSVersion()
Gets the OSVersion attribute of the SystemAdvertisement object
|
List<URI> |
getURIs() |
void |
setCustomTag(String tag,
String value) |
void |
setCustomTags(Map<String,String> tags) |
void |
setEndpointAddresses(List<String> endpoints)
API for setting the IP addresses for all the network interfaces
|
void |
setHWArch(String hwarch)
Sets the hWArch attribute of the SystemAdvertisement object
|
void |
setHWVendor(String hwvendor)
Sets the hWVendor attribute of the SystemAdvertisement object
|
void |
setID(PeerID id)
sets the unique id
|
void |
setName(String name)
Sets the name attribute of the DeviceAdvertisement object
|
void |
setOSArch(String osarch)
Sets the OSArch attribute of the SystemAdvertisement object
|
void |
setOSName(String osname)
Sets the oSName attribute of the SystemAdvertisement object
|
void |
setOSVersion(String osversion)
Sets the oSVersion attribute of the SystemAdvertisement object
|
compareTostatic final long serialVersionUID
static final String OSNameTag
static final String OSVersionTag
static final String OSarchTag
static final String hwarchTag
static final String hwvendorTag
static final String idTag
static final String ipTag
static final String nameTag
void setHWArch(String hwarch)
hwarch - The new hWArch valuevoid setOSArch(String osarch)
osarch - The new hWArch valuevoid setHWVendor(String hwvendor)
hwvendor - The new hWVendor valuevoid setID(PeerID id)
id - The idvoid addEndpointAddress(String value)
value - new uri (tcp://host:port)void setEndpointAddresses(List<String> endpoints)
endpoints - endpoint addressesvoid setName(String name)
name - The new name valuevoid setOSName(String osname)
osname - The new oSName valuevoid setOSVersion(String osversion)
osversion - The new oSVersion valueString getHWArch()
String getOSArch()
String getHWVendor()
PeerID getID()
List<String> getEndpointAddresses()
String getName()
String getOSName()
String getOSVersion()
String getCustomTagValue(String tagName) throws NoSuchFieldException
NoSuchFieldExceptionCopyright © 2017–2019 Eclipse Foundation. All rights reserved.