Class SystemAdvertisementImpl
- java.lang.Object
-
- com.sun.enterprise.ee.cms.impl.base.SystemAdvertisementImpl
-
- All Implemented Interfaces:
SystemAdvertisement,java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<SystemAdvertisement>
public class SystemAdvertisementImpl extends java.lang.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(java.lang.String value)Sets the network interface's address in the form of a URISystemAdvertisementclone()intcompareTo(SystemAdvertisement other)booleanequals(java.lang.Object obj)java.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()inthashCode()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 objectjava.lang.StringtoString()
-
-
-
Method Detail
-
setHWArch
public void setHWArch(java.lang.String hwarch)
Sets the hWArch attribute of the SystemAdvertisement object- Specified by:
setHWArchin interfaceSystemAdvertisement- Parameters:
hwarch- The new hWArch value
-
setOSArch
public void setOSArch(java.lang.String osarch)
Sets the OSArch attribute of the SystemAdvertisement object- Specified by:
setOSArchin interfaceSystemAdvertisement- Parameters:
osarch- The new hWArch value
-
setHWVendor
public void setHWVendor(java.lang.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(java.lang.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(java.util.List<java.lang.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(java.lang.String name)
Sets the name attribute of the DeviceAdvertisement object- Specified by:
setNamein interfaceSystemAdvertisement- Parameters:
name- The new name value
-
setOSName
public void setOSName(java.lang.String osname)
Sets the oSName attribute of the SystemAdvertisement object- Specified by:
setOSNamein interfaceSystemAdvertisement- Parameters:
osname- The new oSName value
-
setOSVersion
public void setOSVersion(java.lang.String osversion)
Sets the oSVersion attribute of the SystemAdvertisement object- Specified by:
setOSVersionin interfaceSystemAdvertisement- Parameters:
osversion- The new oSVersion value
-
setCustomTags
public void setCustomTags(java.util.Map<java.lang.String,java.lang.String> tags)
- Specified by:
setCustomTagsin interfaceSystemAdvertisement
-
getCustomTags
public java.util.Map<java.lang.String,java.lang.String> getCustomTags()
- Specified by:
getCustomTagsin interfaceSystemAdvertisement
-
setCustomTag
public void setCustomTag(java.lang.String tag, java.lang.String value)- Specified by:
setCustomTagin interfaceSystemAdvertisement
-
getHWArch
public java.lang.String getHWArch()
Gets the hWArch attribute of the SystemAdvertisement object- Specified by:
getHWArchin interfaceSystemAdvertisement- Returns:
- The hWArch value
-
getOSArch
public java.lang.String getOSArch()
Gets the OSArch attribute of the SystemAdvertisement object- Specified by:
getOSArchin interfaceSystemAdvertisement- Returns:
- The OSArch value
-
getHWVendor
public java.lang.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 java.util.List<java.lang.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 java.util.List<java.net.URI> getURIs()
- Specified by:
getURIsin interfaceSystemAdvertisement
-
getName
public java.lang.String getName()
Gets the name attribute of the SystemAdvertisement object- Specified by:
getNamein interfaceSystemAdvertisement- Returns:
- The name value
-
getOSName
public java.lang.String getOSName()
Gets the OSName attribute of the SystemAdvertisement object- Specified by:
getOSNamein interfaceSystemAdvertisement- Returns:
- The OSName value
-
getOSVersion
public java.lang.String getOSVersion()
Gets the OSVersion attribute of the SystemAdvertisement object- Specified by:
getOSVersionin interfaceSystemAdvertisement- Returns:
- The OSVersion value
-
getCustomTagValue
public java.lang.String getCustomTagValue(java.lang.String tagName) throws java.lang.NoSuchFieldException- Specified by:
getCustomTagValuein interfaceSystemAdvertisement- Throws:
java.lang.NoSuchFieldException
-
clone
public SystemAdvertisement clone() throws java.lang.CloneNotSupportedException
- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(SystemAdvertisement other)
- Specified by:
compareToin interfacejava.lang.Comparable<SystemAdvertisement>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-