Package joynr.types

Class DiscoveryEntry

    • Constructor Detail

      • DiscoveryEntry

        public DiscoveryEntry()
        Default Constructor
      • DiscoveryEntry

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

        public DiscoveryEntry​(Version providerVersion,
                              String domain,
                              String interfaceName,
                              String participantId,
                              ProviderQos qos,
                              Long lastSeenDateMs,
                              Long expiryDateMs,
                              String publicKeyId)
        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
    • Method Detail

      • getProviderVersion

        public Version getProviderVersion()
        Gets ProviderVersion
        Returns:
        semantic version information
      • setProviderVersion

        public void setProviderVersion​(Version providerVersion)
        Sets ProviderVersion
        Parameters:
        providerVersion - semantic version information
      • getDomain

        public String getDomain()
        Gets Domain
        Returns:
        the domain to register the provider with
      • setDomain

        public void setDomain​(String domain)
        Sets Domain
        Parameters:
        domain - the domain to register the provider with
      • getInterfaceName

        public String getInterfaceName()
        Gets InterfaceName
        Returns:
        the name of the provider interface
      • setInterfaceName

        public void setInterfaceName​(String interfaceName)
        Sets InterfaceName
        Parameters:
        interfaceName - the name of the provider interface
      • getParticipantId

        public String getParticipantId()
        Gets ParticipantId
        Returns:
        the participant ID of the provider
      • setParticipantId

        public void setParticipantId​(String participantId)
        Sets ParticipantId
        Parameters:
        participantId - the participant ID of the provider
      • getQos

        public ProviderQos getQos()
        Gets Qos
        Returns:
        the qos of the provider
      • setQos

        public void setQos​(ProviderQos qos)
        Sets Qos
        Parameters:
        qos - the qos of the provider
      • getLastSeenDateMs

        public Long getLastSeenDateMs()
        Gets LastSeenDateMs
        Returns:
        the date in millis since epoch when the source for this provider last contacted the directory
      • setLastSeenDateMs

        public void setLastSeenDateMs​(Long lastSeenDateMs)
        Sets LastSeenDateMs
        Parameters:
        lastSeenDateMs - the date in millis since epoch when the source for this provider last contacted the directory
      • getExpiryDateMs

        public Long getExpiryDateMs()
        Gets ExpiryDateMs
        Returns:
        the date in millis since epoch when this entry can be purged from the directory and caches
      • setExpiryDateMs

        public void setExpiryDateMs​(Long expiryDateMs)
        Sets ExpiryDateMs
        Parameters:
        expiryDateMs - the date in millis since epoch when this entry can be purged from the directory and caches
      • getPublicKeyId

        public String getPublicKeyId()
        Gets PublicKeyId
        Returns:
        the ID of the public key to be used to encrypt messages to this provider
      • setPublicKeyId

        public void setPublicKeyId​(String publicKeyId)
        Sets PublicKeyId
        Parameters:
        publicKeyId - the ID of the public key to be used to encrypt messages to this provider
      • toString

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

        public boolean equals​(Object obj)
        Check for equality
        Overrides:
        equals in class Object
        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 Object
        Returns:
        The calculated hash code