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 booleanTests an instance ofInstanceHostInfoagainst another instance ofInstanceHostInfostatic booleanequals(InstanceHostInfo a, Object b) Tests an instance ofInstanceHostInfoagainst an arbitraryObjectGets the address for the invoker servicestatic inthashCode(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- theInstanceHostInfofor which to compute the hash code- Returns:
-
equals
Tests an instance ofInstanceHostInfoagainst an arbitraryObject- Parameters:
a- theInstanceHostInfoto testb- theObjectto test- Returns:
- true if equal, false otherwise
-
equals
Tests an instance ofInstanceHostInfoagainst another instance ofInstanceHostInfo- Parameters:
a- theInstanceHostInfoto testb- theInstanceHostInfoto test- Returns:
- true if equal, false otherwise
-