public class SystemAdvertisementImpl extends Object implements SystemAdvertisement
SystemAdvertisementhwarchTag, hwvendorTag, idTag, ipTag, nameTag, OSarchTag, OSNameTag, OSVersionTag| Constructor and Description |
|---|
SystemAdvertisementImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEndpointAddress(String value)
Sets the network interface's address in the form of a URI
|
SystemAdvertisement |
clone() |
int |
compareTo(SystemAdvertisement other) |
boolean |
equals(Object obj) |
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() |
int |
hashCode() |
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
|
String |
toString() |
public void setHWArch(String hwarch)
setHWArch in interface SystemAdvertisementhwarch - The new hWArch valuepublic void setOSArch(String osarch)
setOSArch in interface SystemAdvertisementosarch - The new hWArch valuepublic void setHWVendor(String hwvendor)
setHWVendor in interface SystemAdvertisementhwvendor - The new hWVendor valuepublic void setID(PeerID id)
setID in interface SystemAdvertisementid - The idpublic void addEndpointAddress(String value)
addEndpointAddress in interface SystemAdvertisementvalue - new uri (tcp://host:port) in IPv4 or (tcp://[host]:port) in IPv6public void setEndpointAddresses(List<String> endpoints)
setEndpointAddresses in interface SystemAdvertisementendpoints - endpoint addressespublic void setName(String name)
setName in interface SystemAdvertisementname - The new name valuepublic void setOSName(String osname)
setOSName in interface SystemAdvertisementosname - The new oSName valuepublic void setOSVersion(String osversion)
setOSVersion in interface SystemAdvertisementosversion - The new oSVersion valuepublic void setCustomTags(Map<String,String> tags)
setCustomTags in interface SystemAdvertisementpublic Map<String,String> getCustomTags()
getCustomTags in interface SystemAdvertisementpublic void setCustomTag(String tag, String value)
setCustomTag in interface SystemAdvertisementpublic String getHWArch()
getHWArch in interface SystemAdvertisementpublic String getOSArch()
getOSArch in interface SystemAdvertisementpublic String getHWVendor()
getHWVendor in interface SystemAdvertisementpublic PeerID getID()
getID in interface SystemAdvertisementpublic List<String> getEndpointAddresses()
getEndpointAddresses in interface SystemAdvertisementpublic List<URI> getURIs()
getURIs in interface SystemAdvertisementpublic String getName()
getName in interface SystemAdvertisementpublic String getOSName()
getOSName in interface SystemAdvertisementpublic String getOSVersion()
getOSVersion in interface SystemAdvertisementpublic String getCustomTagValue(String tagName) throws NoSuchFieldException
getCustomTagValue in interface SystemAdvertisementNoSuchFieldExceptionpublic SystemAdvertisement clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic int compareTo(SystemAdvertisement other)
compareTo in interface Comparable<SystemAdvertisement>Copyright © 2017–2020 Eclipse Foundation. All rights reserved.