Class SystemAdvertisementImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addEndpointAddress​(java.lang.String value)
      Sets the network interface's address in the form of a URI
      SystemAdvertisement clone()
      int compareTo​(SystemAdvertisement other)
      boolean equals​(java.lang.Object obj)
      java.util.Map<java.lang.String,​java.lang.String> getCustomTags()  
      java.lang.String getCustomTagValue​(java.lang.String tagName)  
      java.util.List<java.lang.String> getEndpointAddresses()
      Gets the address of the network interface in the form of URI
      java.lang.String getHWArch()
      Gets the hWArch attribute of the SystemAdvertisement object
      java.lang.String getHWVendor()
      Gets the hWVendor attribute of the SystemAdvertisement object
      PeerID getID()
      returns the id of the device
      java.lang.String getName()
      Gets the name attribute of the SystemAdvertisement object
      java.lang.String getOSArch()
      Gets the OSArch attribute of the SystemAdvertisement object
      java.lang.String getOSName()
      Gets the OSName attribute of the SystemAdvertisement object
      java.lang.String getOSVersion()
      Gets the OSVersion attribute of the SystemAdvertisement object
      java.util.List<java.net.URI> getURIs()  
      int hashCode()
      void setCustomTag​(java.lang.String tag, java.lang.String value)  
      void setCustomTags​(java.util.Map<java.lang.String,​java.lang.String> tags)  
      void setEndpointAddresses​(java.util.List<java.lang.String> endpoints)
      API for setting the IP addresses for all the network interfaces
      void setHWArch​(java.lang.String hwarch)
      Sets the hWArch attribute of the SystemAdvertisement object
      void setHWVendor​(java.lang.String hwvendor)
      Sets the hWVendor attribute of the SystemAdvertisement object
      void setID​(PeerID id)
      sets the unique id
      void setName​(java.lang.String name)
      Sets the name attribute of the DeviceAdvertisement object
      void setOSArch​(java.lang.String osarch)
      Sets the OSArch attribute of the SystemAdvertisement object
      void setOSName​(java.lang.String osname)
      Sets the oSName attribute of the SystemAdvertisement object
      void setOSVersion​(java.lang.String osversion)
      Sets the oSVersion attribute of the SystemAdvertisement object
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SystemAdvertisementImpl

        public SystemAdvertisementImpl()
    • Method Detail

      • setHWArch

        public void setHWArch​(java.lang.String hwarch)
        Sets the hWArch attribute of the SystemAdvertisement object
        Specified by:
        setHWArch in interface SystemAdvertisement
        Parameters:
        hwarch - The new hWArch value
      • setOSArch

        public void setOSArch​(java.lang.String osarch)
        Sets the OSArch attribute of the SystemAdvertisement object
        Specified by:
        setOSArch in interface SystemAdvertisement
        Parameters:
        osarch - The new hWArch value
      • setHWVendor

        public void setHWVendor​(java.lang.String hwvendor)
        Sets the hWVendor attribute of the SystemAdvertisement object
        Specified by:
        setHWVendor in interface SystemAdvertisement
        Parameters:
        hwvendor - The new hWVendor value
      • addEndpointAddress

        public void addEndpointAddress​(java.lang.String value)
        Sets the network interface's address in the form of a URI
        Specified by:
        addEndpointAddress in interface SystemAdvertisement
        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:
        setEndpointAddresses in interface SystemAdvertisement
        Parameters:
        endpoints - endpoint addresses
      • setName

        public void setName​(java.lang.String name)
        Sets the name attribute of the DeviceAdvertisement object
        Specified by:
        setName in interface SystemAdvertisement
        Parameters:
        name - The new name value
      • setOSName

        public void setOSName​(java.lang.String osname)
        Sets the oSName attribute of the SystemAdvertisement object
        Specified by:
        setOSName in interface SystemAdvertisement
        Parameters:
        osname - The new oSName value
      • setOSVersion

        public void setOSVersion​(java.lang.String osversion)
        Sets the oSVersion attribute of the SystemAdvertisement object
        Specified by:
        setOSVersion in interface SystemAdvertisement
        Parameters:
        osversion - The new oSVersion value
      • setCustomTags

        public void setCustomTags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Specified by:
        setCustomTags in interface SystemAdvertisement
      • getHWArch

        public java.lang.String getHWArch()
        Gets the hWArch attribute of the SystemAdvertisement object
        Specified by:
        getHWArch in interface SystemAdvertisement
        Returns:
        The hWArch value
      • getOSArch

        public java.lang.String getOSArch()
        Gets the OSArch attribute of the SystemAdvertisement object
        Specified by:
        getOSArch in interface SystemAdvertisement
        Returns:
        The OSArch value
      • getHWVendor

        public java.lang.String getHWVendor()
        Gets the hWVendor attribute of the SystemAdvertisement object
        Specified by:
        getHWVendor in interface SystemAdvertisement
        Returns:
        The hWVendor value
      • getEndpointAddresses

        public java.util.List<java.lang.String> getEndpointAddresses()
        Gets the address of the network interface in the form of URI
        Specified by:
        getEndpointAddresses in interface SystemAdvertisement
        Returns:
        the list of URIs for all the network interfaces
      • getName

        public java.lang.String getName()
        Gets the name attribute of the SystemAdvertisement object
        Specified by:
        getName in interface SystemAdvertisement
        Returns:
        The name value
      • getOSName

        public java.lang.String getOSName()
        Gets the OSName attribute of the SystemAdvertisement object
        Specified by:
        getOSName in interface SystemAdvertisement
        Returns:
        The OSName value
      • getOSVersion

        public java.lang.String getOSVersion()
        Gets the OSVersion attribute of the SystemAdvertisement object
        Specified by:
        getOSVersion in interface SystemAdvertisement
        Returns:
        The OSVersion value
      • getCustomTagValue

        public java.lang.String getCustomTagValue​(java.lang.String tagName)
                                           throws java.lang.NoSuchFieldException
        Specified by:
        getCustomTagValue in interface SystemAdvertisement
        Throws:
        java.lang.NoSuchFieldException
      • clone

        public SystemAdvertisement clone()
                                  throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object