public class GlobalDiscoveryEntry extends DiscoveryEntry implements Serializable, JoynrType
DiscoveryEntry,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
MAJOR_VERSION |
static int |
MINOR_VERSION |
| Constructor and Description |
|---|
GlobalDiscoveryEntry()
Default Constructor
|
GlobalDiscoveryEntry(GlobalDiscoveryEntry globalDiscoveryEntryObj)
Copy constructor
|
GlobalDiscoveryEntry(Version providerVersion,
String domain,
String interfaceName,
String participantId,
ProviderQos qos,
Long lastSeenDateMs,
Long expiryDateMs,
String publicKeyId,
String address)
Parameterized constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Check for equality
|
String |
getAddress()
Gets Address
|
int |
hashCode()
Calculate code for hashing based on member contents
|
void |
setAddress(String address)
Sets Address
|
String |
toString()
Stringifies the class
|
getDomain, getExpiryDateMs, getInterfaceName, getLastSeenDateMs, getParticipantId, getProviderVersion, getPublicKeyId, getQos, setDomain, setExpiryDateMs, setInterfaceName, setLastSeenDateMs, setParticipantId, setProviderVersion, setPublicKeyId, setQospublic static final int MAJOR_VERSION
public static final int MINOR_VERSION
public GlobalDiscoveryEntry()
public GlobalDiscoveryEntry(GlobalDiscoveryEntry globalDiscoveryEntryObj)
globalDiscoveryEntryObj - reference to the object to be copiedpublic GlobalDiscoveryEntry(Version providerVersion, String domain, String interfaceName, String participantId, ProviderQos qos, Long lastSeenDateMs, Long expiryDateMs, String publicKeyId, String address)
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 provideraddress - 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.public String getAddress()
Address and is stored as a JSON string.public void setAddress(String address)
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.public String toString()
toString in class DiscoveryEntrypublic boolean equals(Object obj)
equals in class DiscoveryEntryobj - Reference to the object to compare topublic int hashCode()
hashCode in class DiscoveryEntryCopyright © 2021. All rights reserved.