Class SystemAdvertisementImpl
- java.lang.Object
-
- com.sun.enterprise.ee.cms.impl.base.SystemAdvertisementImpl
-
- All Implemented Interfaces:
SystemAdvertisement,Serializable,Cloneable,Comparable<SystemAdvertisement>
public class SystemAdvertisementImpl extends Object implements SystemAdvertisement
This class is a default system advertisement and implementsSystemAdvertisement- Author:
- Bongjae Chang
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.sun.enterprise.ee.cms.impl.base.SystemAdvertisement
hwarchTag, hwvendorTag, idTag, ipTag, nameTag, OSarchTag, OSNameTag, OSVersionTag
-
-
Constructor Summary
Constructors Constructor Description SystemAdvertisementImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEndpointAddress(String value)Sets the network interface's address in the form of a URISystemAdvertisementclone()intcompareTo(SystemAdvertisement other)booleanequals(Object obj)Map<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()inthashCode()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 objectStringtoString()
-
-
-
Method Detail
-
setHWArch
public void setHWArch(String hwarch)
Sets the hWArch attribute of the SystemAdvertisement object- Specified by:
setHWArchin interfaceSystemAdvertisement- Parameters:
hwarch- The new hWArch value
-
setOSArch
public void setOSArch(String osarch)
Sets the OSArch attribute of the SystemAdvertisement object- Specified by:
setOSArchin interfaceSystemAdvertisement- Parameters:
osarch- The new hWArch value
-
setHWVendor
public void setHWVendor(String hwvendor)
Sets the hWVendor attribute of the SystemAdvertisement object- Specified by:
setHWVendorin interfaceSystemAdvertisement- Parameters:
hwvendor- The new hWVendor value
-
setID
public void setID(PeerID id)
sets the unique id- Specified by:
setIDin interfaceSystemAdvertisement- Parameters:
id- The id
-
addEndpointAddress
public void addEndpointAddress(String value)
Sets the network interface's address in the form of a URI- Specified by:
addEndpointAddressin interfaceSystemAdvertisement- Parameters:
value- new uri (tcp://host:port) in IPv4 or (tcp://[host]:port) in IPv6
-
setEndpointAddresses
public void setEndpointAddresses(List<String> endpoints)
API for setting the IP addresses for all the network interfaces- Specified by:
setEndpointAddressesin interfaceSystemAdvertisement- Parameters:
endpoints- endpoint addresses
-
setName
public void setName(String name)
Sets the name attribute of the DeviceAdvertisement object- Specified by:
setNamein interfaceSystemAdvertisement- Parameters:
name- The new name value
-
setOSName
public void setOSName(String osname)
Sets the oSName attribute of the SystemAdvertisement object- Specified by:
setOSNamein interfaceSystemAdvertisement- Parameters:
osname- The new oSName value
-
setOSVersion
public void setOSVersion(String osversion)
Sets the oSVersion attribute of the SystemAdvertisement object- Specified by:
setOSVersionin interfaceSystemAdvertisement- Parameters:
osversion- The new oSVersion value
-
setCustomTags
public void setCustomTags(Map<String,String> tags)
- Specified by:
setCustomTagsin interfaceSystemAdvertisement
-
getCustomTags
public Map<String,String> getCustomTags()
- Specified by:
getCustomTagsin interfaceSystemAdvertisement
-
setCustomTag
public void setCustomTag(String tag, String value)
- Specified by:
setCustomTagin interfaceSystemAdvertisement
-
getHWArch
public String getHWArch()
Gets the hWArch attribute of the SystemAdvertisement object- Specified by:
getHWArchin interfaceSystemAdvertisement- Returns:
- The hWArch value
-
getOSArch
public String getOSArch()
Gets the OSArch attribute of the SystemAdvertisement object- Specified by:
getOSArchin interfaceSystemAdvertisement- Returns:
- The OSArch value
-
getHWVendor
public String getHWVendor()
Gets the hWVendor attribute of the SystemAdvertisement object- Specified by:
getHWVendorin interfaceSystemAdvertisement- Returns:
- The hWVendor value
-
getID
public PeerID getID()
returns the id of the device- Specified by:
getIDin interfaceSystemAdvertisement- Returns:
- ID the device id
-
getEndpointAddresses
public List<String> getEndpointAddresses()
Gets the address of the network interface in the form of URI- Specified by:
getEndpointAddressesin interfaceSystemAdvertisement- Returns:
- the list of URIs for all the network interfaces
-
getURIs
public List<URI> getURIs()
- Specified by:
getURIsin interfaceSystemAdvertisement
-
getName
public String getName()
Gets the name attribute of the SystemAdvertisement object- Specified by:
getNamein interfaceSystemAdvertisement- Returns:
- The name value
-
getOSName
public String getOSName()
Gets the OSName attribute of the SystemAdvertisement object- Specified by:
getOSNamein interfaceSystemAdvertisement- Returns:
- The OSName value
-
getOSVersion
public String getOSVersion()
Gets the OSVersion attribute of the SystemAdvertisement object- Specified by:
getOSVersionin interfaceSystemAdvertisement- Returns:
- The OSVersion value
-
getCustomTagValue
public String getCustomTagValue(String tagName) throws NoSuchFieldException
- Specified by:
getCustomTagValuein interfaceSystemAdvertisement- Throws:
NoSuchFieldException
-
clone
public SystemAdvertisement clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
compareTo
public int compareTo(SystemAdvertisement other)
- Specified by:
compareToin interfaceComparable<SystemAdvertisement>
-
-