Package joynr.types
Class GlobalDiscoveryEntry
- java.lang.Object
-
- joynr.types.DiscoveryEntry
-
- joynr.types.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
-
-
Field Summary
Fields Modifier and Type Field Description static intMAJOR_VERSIONstatic intMINOR_VERSION
-
Constructor Summary
Constructors Constructor Description GlobalDiscoveryEntry()Default ConstructorGlobalDiscoveryEntry(GlobalDiscoveryEntry globalDiscoveryEntryObj)Copy constructorGlobalDiscoveryEntry(Version providerVersion, String domain, String interfaceName, String participantId, ProviderQos qos, Long lastSeenDateMs, Long expiryDateMs, String publicKeyId, String address)Parameterized constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Check for equalityStringgetAddress()Gets AddressinthashCode()Calculate code for hashing based on member contentsvoidsetAddress(String address)Sets AddressStringtoString()Stringifies the class-
Methods inherited from class joynr.types.DiscoveryEntry
getDomain, getExpiryDateMs, getInterfaceName, getLastSeenDateMs, getParticipantId, getProviderVersion, getPublicKeyId, getQos, setDomain, setExpiryDateMs, setInterfaceName, setLastSeenDateMs, setParticipantId, setProviderVersion, setPublicKeyId, setQos
-
-
-
-
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
-
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 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 ofAddressand 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
Addressand 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 ofAddressand is stored as a JSON string.
-
toString
public String toString()
Stringifies the class- Overrides:
toStringin classDiscoveryEntry- Returns:
- stringified class content
-
equals
public boolean equals(Object obj)
Check for equality- Overrides:
equalsin classDiscoveryEntry- 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:
hashCodein classDiscoveryEntry- Returns:
- The calculated hash code
-
-