Package joynr.types
Class DiscoveryEntry
- java.lang.Object
-
- joynr.types.DiscoveryEntry
-
- All Implemented Interfaces:
JoynrType,Serializable
- Direct Known Subclasses:
DiscoveryEntryWithMetaInfo,GlobalDiscoveryEntry
public class DiscoveryEntry extends Object implements Serializable, JoynrType
Stores information about a provider instance and is used to communicate capabilities between a cluster controller and a lib-joynr instance.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intMAJOR_VERSIONstatic intMINOR_VERSION
-
Constructor Summary
Constructors Constructor Description DiscoveryEntry()Default ConstructorDiscoveryEntry(DiscoveryEntry discoveryEntryObj)Copy constructorDiscoveryEntry(Version providerVersion, String domain, String interfaceName, String participantId, ProviderQos qos, Long lastSeenDateMs, Long expiryDateMs, String publicKeyId)Parameterized constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Check for equalityStringgetDomain()Gets DomainLonggetExpiryDateMs()Gets ExpiryDateMsStringgetInterfaceName()Gets InterfaceNameLonggetLastSeenDateMs()Gets LastSeenDateMsStringgetParticipantId()Gets ParticipantIdVersiongetProviderVersion()Gets ProviderVersionStringgetPublicKeyId()Gets PublicKeyIdProviderQosgetQos()Gets QosinthashCode()Calculate code for hashing based on member contentsvoidsetDomain(String domain)Sets DomainvoidsetExpiryDateMs(Long expiryDateMs)Sets ExpiryDateMsvoidsetInterfaceName(String interfaceName)Sets InterfaceNamevoidsetLastSeenDateMs(Long lastSeenDateMs)Sets LastSeenDateMsvoidsetParticipantId(String participantId)Sets ParticipantIdvoidsetProviderVersion(Version providerVersion)Sets ProviderVersionvoidsetPublicKeyId(String publicKeyId)Sets PublicKeyIdvoidsetQos(ProviderQos qos)Sets QosStringtoString()Stringifies the class
-
-
-
Field Detail
-
MAJOR_VERSION
public static final int MAJOR_VERSION
- See Also:
- Constant Field Values
-
MINOR_VERSION
public static final int MINOR_VERSION
- See Also:
- Constant Field Values
-
-
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 informationdomain- the domain to register the provider withinterfaceName- the name of the provider interfaceparticipantId- the participant ID of the providerqos- the qos of the providerlastSeenDateMs- the date in millis since epoch when the source for this provider last contacted the directoryexpiryDateMs- the date in millis since epoch when this entry can be purged from the directory and cachespublicKeyId- 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
-
equals
public boolean equals(Object obj)
Check for equality
-
-