public abstract class AbstractJoiner extends Object implements Joiner
Modifier and Type | Field and Description |
---|---|
protected Set<com.hazelcast.nio.Address> |
blacklistedAddresses |
protected Config |
config |
protected com.hazelcast.logging.ILogger |
logger |
protected com.hazelcast.instance.Node |
node |
Constructor and Description |
---|
AbstractJoiner(com.hazelcast.instance.Node node) |
Modifier and Type | Method and Description |
---|---|
void |
blacklist(com.hazelcast.nio.Address callerAddress)
Adds an address to the blacklist.
|
abstract void |
doJoin() |
protected long |
getMaxJoinMillis() |
protected long |
getMaxJoinTimeToMasterNode() |
long |
getStartTime() |
com.hazelcast.nio.Address |
getTargetAddress() |
boolean |
isBlacklisted(com.hazelcast.nio.Address address)
Checks if an address is blacklisted.
|
void |
join() |
void |
reset() |
void |
setTargetAddress(com.hazelcast.nio.Address targetAddress) |
protected void |
startClusterMerge(com.hazelcast.nio.Address targetAddress) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getType, searchForOtherClusters
protected final Set<com.hazelcast.nio.Address> blacklistedAddresses
protected final Config config
protected final com.hazelcast.instance.Node node
protected final com.hazelcast.logging.ILogger logger
public void blacklist(com.hazelcast.nio.Address callerAddress)
Joiner
blacklist
in interface Joiner
callerAddress
- the address to blacklist.Joiner.isBlacklisted(com.hazelcast.nio.Address)
public boolean isBlacklisted(com.hazelcast.nio.Address address)
Joiner
isBlacklisted
in interface Joiner
address
- the address to check.Joiner.blacklist(com.hazelcast.nio.Address)
public abstract void doJoin()
protected final long getMaxJoinMillis()
protected final long getMaxJoinTimeToMasterNode()
protected void startClusterMerge(com.hazelcast.nio.Address targetAddress)
public final long getStartTime()
getStartTime
in interface Joiner
public void setTargetAddress(com.hazelcast.nio.Address targetAddress)
setTargetAddress
in interface Joiner
public com.hazelcast.nio.Address getTargetAddress()
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.