Interface SystemAdvertisement
-
- All Superinterfaces:
Cloneable,Comparable<SystemAdvertisement>,Serializable
- All Known Implementing Classes:
SystemAdvertisementImpl
public interface SystemAdvertisement extends Comparable<SystemAdvertisement>, Cloneable, Serializable
This interface provides system characteristics i.g. HW/SW configuration, CPU load, etc...- Author:
- Bongjae Chang
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddEndpointAddress(String value)Sets the network interface's address in the form of a URIMap<String,String>getCustomTags()StringgetCustomTagValue(String tagName)List<String>getEndpointAddresses()Gets the address of the network interface in the form of URIStringgetHWArch()Gets the hWArch attribute of the SystemAdvertisement objectStringgetHWVendor()Gets the hWVendor attribute of the SystemAdvertisement objectPeerIDgetID()returns the id of the deviceStringgetName()Gets the name attribute of the SystemAdvertisement objectStringgetOSArch()Gets the OSArch attribute of the SystemAdvertisement objectStringgetOSName()Gets the OSName attribute of the SystemAdvertisement objectStringgetOSVersion()Gets the OSVersion attribute of the SystemAdvertisement objectList<URI>getURIs()voidsetCustomTag(String tag, String value)voidsetCustomTags(Map<String,String> tags)voidsetEndpointAddresses(List<String> endpoints)API for setting the IP addresses for all the network interfacesvoidsetHWArch(String hwarch)Sets the hWArch attribute of the SystemAdvertisement objectvoidsetHWVendor(String hwvendor)Sets the hWVendor attribute of the SystemAdvertisement objectvoidsetID(PeerID id)sets the unique idvoidsetName(String name)Sets the name attribute of the DeviceAdvertisement objectvoidsetOSArch(String osarch)Sets the OSArch attribute of the SystemAdvertisement objectvoidsetOSName(String osname)Sets the oSName attribute of the SystemAdvertisement objectvoidsetOSVersion(String osversion)Sets the oSVersion attribute of the SystemAdvertisement object-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
OSNameTag
static final String OSNameTag
- See Also:
- Constant Field Values
-
OSVersionTag
static final String OSVersionTag
- See Also:
- Constant Field Values
-
OSarchTag
static final String OSarchTag
- See Also:
- Constant Field Values
-
hwarchTag
static final String hwarchTag
- See Also:
- Constant Field Values
-
hwvendorTag
static final String hwvendorTag
- See Also:
- Constant Field Values
-
idTag
static final String idTag
- See Also:
- Constant Field Values
-
ipTag
static final String ipTag
- See Also:
- Constant Field Values
-
nameTag
static final String nameTag
- See Also:
- Constant Field Values
-
-
Method Detail
-
setHWArch
void setHWArch(String hwarch)
Sets the hWArch attribute of the SystemAdvertisement object- Parameters:
hwarch- The new hWArch value
-
setOSArch
void setOSArch(String osarch)
Sets the OSArch attribute of the SystemAdvertisement object- Parameters:
osarch- The new hWArch value
-
setHWVendor
void setHWVendor(String hwvendor)
Sets the hWVendor attribute of the SystemAdvertisement object- Parameters:
hwvendor- The new hWVendor value
-
setID
void setID(PeerID id)
sets the unique id- Parameters:
id- The id
-
addEndpointAddress
void addEndpointAddress(String value)
Sets the network interface's address in the form of a URI- Parameters:
value- new uri (tcp://host:port)
-
setEndpointAddresses
void setEndpointAddresses(List<String> endpoints)
API for setting the IP addresses for all the network interfaces- Parameters:
endpoints- endpoint addresses
-
setName
void setName(String name)
Sets the name attribute of the DeviceAdvertisement object- Parameters:
name- The new name value
-
setOSName
void setOSName(String osname)
Sets the oSName attribute of the SystemAdvertisement object- Parameters:
osname- The new oSName value
-
setOSVersion
void setOSVersion(String osversion)
Sets the oSVersion attribute of the SystemAdvertisement object- Parameters:
osversion- The new oSVersion value
-
getHWArch
String getHWArch()
Gets the hWArch attribute of the SystemAdvertisement object- Returns:
- The hWArch value
-
getOSArch
String getOSArch()
Gets the OSArch attribute of the SystemAdvertisement object- Returns:
- The OSArch value
-
getHWVendor
String getHWVendor()
Gets the hWVendor attribute of the SystemAdvertisement object- Returns:
- The hWVendor value
-
getID
PeerID getID()
returns the id of the device- Returns:
- ID the device id
-
getEndpointAddresses
List<String> getEndpointAddresses()
Gets the address of the network interface in the form of URI- Returns:
- the list of URIs for all the network interfaces
-
getName
String getName()
Gets the name attribute of the SystemAdvertisement object- Returns:
- The name value
-
getOSName
String getOSName()
Gets the OSName attribute of the SystemAdvertisement object- Returns:
- The OSName value
-
getOSVersion
String getOSVersion()
Gets the OSVersion attribute of the SystemAdvertisement object- Returns:
- The OSVersion value
-
getCustomTagValue
String getCustomTagValue(String tagName) throws NoSuchFieldException
- Throws:
NoSuchFieldException
-
-