Interface InstanceHostInfo
- All Known Implementing Classes:
JndiInstanceHostInfo
,SimpleInstanceHostInfo
public interface InstanceHostInfo
Gets host information for an instance. Objects implementing this interface must implement
Object.hashCode()
and Object.equals(Object)
such that this can be used as a hash map key.-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Tests an instance ofInstanceHostInfo
against another instance ofInstanceHostInfo
static boolean
equals
(InstanceHostInfo a, Object b) Tests an instance ofInstanceHostInfo
against an arbitraryObject
Gets the address for the invoker servicestatic int
hashCode
(InstanceHostInfo nfo) Implements the logic forObject.hashCode()
.
-
Method Details
-
getConnectAddress
String getConnectAddress()Gets the address for the invoker service- Returns:
- the invoker address
-
hashCode
Implements the logic forObject.hashCode()
.- Parameters:
nfo
- theInstanceHostInfo
for which to compute the hash code- Returns:
-
equals
Tests an instance ofInstanceHostInfo
against an arbitraryObject
- Parameters:
a
- theInstanceHostInfo
to testb
- theObject
to test- Returns:
- true if equal, false otherwise
-
equals
Tests an instance ofInstanceHostInfo
against another instance ofInstanceHostInfo
- Parameters:
a
- theInstanceHostInfo
to testb
- theInstanceHostInfo
to test- Returns:
- true if equal, false otherwise
-