Interface SystemAdvertisement
-
- All Superinterfaces:
java.lang.Cloneable,java.lang.Comparable<SystemAdvertisement>,java.io.Serializable
- All Known Implementing Classes:
SystemAdvertisementImpl
public interface SystemAdvertisement extends java.lang.Comparable<SystemAdvertisement>, java.lang.Cloneable, java.io.Serializable
This interface provides system characteristics i.g. HW/SW configuration, CPU load, etc...- Author:
- Bongjae Chang
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringhwarchTagstatic java.lang.StringhwvendorTagstatic java.lang.StringidTagstatic java.lang.StringipTagstatic java.lang.StringnameTagstatic java.lang.StringOSarchTagstatic java.lang.StringOSNameTagstatic java.lang.StringOSVersionTagstatic longserialVersionUID
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddEndpointAddress(java.lang.String value)Sets the network interface's address in the form of a URIjava.util.Map<java.lang.String,java.lang.String>getCustomTags()java.lang.StringgetCustomTagValue(java.lang.String tagName)java.util.List<java.lang.String>getEndpointAddresses()Gets the address of the network interface in the form of URIjava.lang.StringgetHWArch()Gets the hWArch attribute of the SystemAdvertisement objectjava.lang.StringgetHWVendor()Gets the hWVendor attribute of the SystemAdvertisement objectPeerIDgetID()returns the id of the devicejava.lang.StringgetName()Gets the name attribute of the SystemAdvertisement objectjava.lang.StringgetOSArch()Gets the OSArch attribute of the SystemAdvertisement objectjava.lang.StringgetOSName()Gets the OSName attribute of the SystemAdvertisement objectjava.lang.StringgetOSVersion()Gets the OSVersion attribute of the SystemAdvertisement objectjava.util.List<java.net.URI>getURIs()voidsetCustomTag(java.lang.String tag, java.lang.String value)voidsetCustomTags(java.util.Map<java.lang.String,java.lang.String> tags)voidsetEndpointAddresses(java.util.List<java.lang.String> endpoints)API for setting the IP addresses for all the network interfacesvoidsetHWArch(java.lang.String hwarch)Sets the hWArch attribute of the SystemAdvertisement objectvoidsetHWVendor(java.lang.String hwvendor)Sets the hWVendor attribute of the SystemAdvertisement objectvoidsetID(PeerID id)sets the unique idvoidsetName(java.lang.String name)Sets the name attribute of the DeviceAdvertisement objectvoidsetOSArch(java.lang.String osarch)Sets the OSArch attribute of the SystemAdvertisement objectvoidsetOSName(java.lang.String osname)Sets the oSName attribute of the SystemAdvertisement objectvoidsetOSVersion(java.lang.String osversion)Sets the oSVersion attribute of the SystemAdvertisement object
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
OSNameTag
static final java.lang.String OSNameTag
- See Also:
- Constant Field Values
-
OSVersionTag
static final java.lang.String OSVersionTag
- See Also:
- Constant Field Values
-
OSarchTag
static final java.lang.String OSarchTag
- See Also:
- Constant Field Values
-
hwarchTag
static final java.lang.String hwarchTag
- See Also:
- Constant Field Values
-
hwvendorTag
static final java.lang.String hwvendorTag
- See Also:
- Constant Field Values
-
idTag
static final java.lang.String idTag
- See Also:
- Constant Field Values
-
ipTag
static final java.lang.String ipTag
- See Also:
- Constant Field Values
-
nameTag
static final java.lang.String nameTag
- See Also:
- Constant Field Values
-
-
Method Detail
-
setHWArch
void setHWArch(java.lang.String hwarch)
Sets the hWArch attribute of the SystemAdvertisement object- Parameters:
hwarch- The new hWArch value
-
setOSArch
void setOSArch(java.lang.String osarch)
Sets the OSArch attribute of the SystemAdvertisement object- Parameters:
osarch- The new hWArch value
-
setHWVendor
void setHWVendor(java.lang.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(java.lang.String value)
Sets the network interface's address in the form of a URI- Parameters:
value- new uri (tcp://host:port)
-
setEndpointAddresses
void setEndpointAddresses(java.util.List<java.lang.String> endpoints)
API for setting the IP addresses for all the network interfaces- Parameters:
endpoints- endpoint addresses
-
setName
void setName(java.lang.String name)
Sets the name attribute of the DeviceAdvertisement object- Parameters:
name- The new name value
-
setOSName
void setOSName(java.lang.String osname)
Sets the oSName attribute of the SystemAdvertisement object- Parameters:
osname- The new oSName value
-
setOSVersion
void setOSVersion(java.lang.String osversion)
Sets the oSVersion attribute of the SystemAdvertisement object- Parameters:
osversion- The new oSVersion value
-
setCustomTag
void setCustomTag(java.lang.String tag, java.lang.String value)
-
setCustomTags
void setCustomTags(java.util.Map<java.lang.String,java.lang.String> tags)
-
getHWArch
java.lang.String getHWArch()
Gets the hWArch attribute of the SystemAdvertisement object- Returns:
- The hWArch value
-
getOSArch
java.lang.String getOSArch()
Gets the OSArch attribute of the SystemAdvertisement object- Returns:
- The OSArch value
-
getHWVendor
java.lang.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
java.util.List<java.lang.String> getEndpointAddresses()
Gets the address of the network interface in the form of URI- Returns:
- the list of URIs for all the network interfaces
-
getURIs
java.util.List<java.net.URI> getURIs()
-
getName
java.lang.String getName()
Gets the name attribute of the SystemAdvertisement object- Returns:
- The name value
-
getOSName
java.lang.String getOSName()
Gets the OSName attribute of the SystemAdvertisement object- Returns:
- The OSName value
-
getOSVersion
java.lang.String getOSVersion()
Gets the OSVersion attribute of the SystemAdvertisement object- Returns:
- The OSVersion value
-
getCustomTagValue
java.lang.String getCustomTagValue(java.lang.String tagName) throws java.lang.NoSuchFieldException- Throws:
java.lang.NoSuchFieldException
-
getCustomTags
java.util.Map<java.lang.String,java.lang.String> getCustomTags()
-
-