Package joynr.types

Class GlobalDiscoveryEntry

  • All Implemented Interfaces:
    JoynrType, Serializable

    public class GlobalDiscoveryEntry
    extends DiscoveryEntry
    implements Serializable, JoynrType
    GlobalDiscoveryEntry stores information about a provider instance and extends DiscoveryEntry by adding transport middleware specific address information. GlobalDiscoveryEntry objects are used to register a new provider instance with the backend. In addition, objects of GlobalDiscoveryEntry will be returned by the backend during the arbitration process in order to select a suitable provider for a proxy.
    See Also:
    DiscoveryEntry, Serialized Form
    • Constructor Detail

      • GlobalDiscoveryEntry

        public GlobalDiscoveryEntry()
        Default Constructor
      • GlobalDiscoveryEntry

        public GlobalDiscoveryEntry​(GlobalDiscoveryEntry globalDiscoveryEntryObj)
        Copy constructor
        Parameters:
        globalDiscoveryEntryObj - reference to the object to be copied
      • GlobalDiscoveryEntry

        public GlobalDiscoveryEntry​(Version providerVersion,
                                    String domain,
                                    String interfaceName,
                                    String participantId,
                                    ProviderQos qos,
                                    Long lastSeenDateMs,
                                    Long expiryDateMs,
                                    String publicKeyId,
                                    String address)
        Parameterized constructor
        Parameters:
        providerVersion - semantic version information
        domain - the domain to register the provider with
        interfaceName - the name of the provider interface
        participantId - the participant ID of the provider
        qos - the qos of the provider
        lastSeenDateMs - the date in millis since epoch when the source for this provider last contacted the directory
        expiryDateMs - the date in millis since epoch when this entry can be purged from the directory and caches
        publicKeyId - the ID of the public key to be used to encrypt messages to this provider
        address - the serialized transport-middleware-specific address where the provider can be reached. The address is a subclass of Address and is stored as a JSON string.
    • Method Detail

      • getAddress

        public String getAddress()
        Gets Address
        Returns:
        the serialized transport-middleware-specific address where the provider can be reached. The address is a subclass of Address and is stored as a JSON string.
      • setAddress

        public void setAddress​(String address)
        Sets Address
        Parameters:
        address - the serialized transport-middleware-specific address where the provider can be reached. The address is a subclass of Address and is stored as a JSON string.
      • toString

        public String toString()
        Stringifies the class
        Overrides:
        toString in class DiscoveryEntry
        Returns:
        stringified class content
      • equals

        public boolean equals​(Object obj)
        Check for equality
        Overrides:
        equals in class DiscoveryEntry
        Parameters:
        obj - Reference to the object to compare to
        Returns:
        true, if objects are equal, false otherwise
      • hashCode

        public int hashCode()
        Calculate code for hashing based on member contents
        Overrides:
        hashCode in class DiscoveryEntry
        Returns:
        The calculated hash code