Package joynr.types
Class DiscoveryEntryWithMetaInfo
- java.lang.Object
-
- joynr.types.DiscoveryEntry
-
- joynr.types.DiscoveryEntryWithMetaInfo
-
- All Implemented Interfaces:
JoynrType,Serializable
public class DiscoveryEntryWithMetaInfo extends DiscoveryEntry implements Serializable, JoynrType
Used for lookups between libjoynr and a cluster controller. Contains additional information- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intMAJOR_VERSIONstatic intMINOR_VERSION
-
Constructor Summary
Constructors Constructor Description DiscoveryEntryWithMetaInfo()Default ConstructorDiscoveryEntryWithMetaInfo(DiscoveryEntryWithMetaInfo discoveryEntryWithMetaInfoObj)Copy constructorDiscoveryEntryWithMetaInfo(Version providerVersion, String domain, String interfaceName, String participantId, ProviderQos qos, Long lastSeenDateMs, Long expiryDateMs, String publicKeyId, Boolean isLocal)Parameterized constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Check for equalityBooleangetIsLocal()Gets IsLocalinthashCode()Calculate code for hashing based on member contentsvoidsetIsLocal(Boolean isLocal)Sets IsLocalStringtoString()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
-
DiscoveryEntryWithMetaInfo
public DiscoveryEntryWithMetaInfo()
Default Constructor
-
DiscoveryEntryWithMetaInfo
public DiscoveryEntryWithMetaInfo(DiscoveryEntryWithMetaInfo discoveryEntryWithMetaInfoObj)
Copy constructor- Parameters:
discoveryEntryWithMetaInfoObj- reference to the object to be copied
-
DiscoveryEntryWithMetaInfo
public DiscoveryEntryWithMetaInfo(Version providerVersion, String domain, String interfaceName, String participantId, ProviderQos qos, Long lastSeenDateMs, Long expiryDateMs, String publicKeyId, Boolean isLocal)
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 providerisLocal- Indicates whether a provider is registered at the local cluster controller
-
-
Method Detail
-
getIsLocal
public Boolean getIsLocal()
Gets IsLocal- Returns:
- Indicates whether a provider is registered at the local cluster controller
-
setIsLocal
public void setIsLocal(Boolean isLocal)
Sets IsLocal- Parameters:
isLocal- Indicates whether a provider is registered at the local cluster controller
-
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
-
-