public class DiscoveredService extends Object implements Serializable
Constructor and Description |
---|
DiscoveredService() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object otherArg)
NOTE - this object is often put into sets, so equals needs to be overridden.
|
ArrayList<String> |
getCacheNames() |
long |
getLastHearFromTime() |
String |
getServiceAddress() |
int |
getServicePort() |
int |
hashCode() |
void |
setCacheNames(ArrayList<String> cacheNames) |
void |
setLastHearFromTime(long lastHearFromTime) |
void |
setServiceAddress(String serviceAddress) |
void |
setServicePort(int servicePort) |
String |
toString() |
public DiscoveredService()
public void setCacheNames(ArrayList<String> cacheNames)
cacheNames
- the cacheNames to setpublic ArrayList<String> getCacheNames()
public void setServiceAddress(String serviceAddress)
serviceAddress
- The serviceAddress to set.public String getServiceAddress()
public void setServicePort(int servicePort)
servicePort
- The servicePort to set.public int getServicePort()
public void setLastHearFromTime(long lastHearFromTime)
lastHearFromTime
- The lastHearFromTime to set.public long getLastHearFromTime()
public int hashCode()
public boolean equals(Object otherArg)
We can't use cache names as part of the equals unless we manually only use the address and port in a contains check. So that we can use normal set functionality, I've kept the cache names out.
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.