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
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addEndpointAddress​(java.lang.String value)
      Sets the network interface's address in the form of a URI
      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()  
      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
      • Methods inherited from interface java.lang.Comparable

        compareTo
    • 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()