com.hazelcast.cluster
Interface Joiner

All Known Implementing Classes:
AbstractJoiner, MulticastJoiner, TcpIpJoiner, TcpIpJoinerOverAWS

public interface Joiner


Method Summary
 void blacklist(Address address, boolean permanent)
          Adds an address to the blacklist.
 long getStartTime()
           
 String getType()
           
 boolean isBlacklisted(Address address)
          Checks if an address is blacklisted.
 void join()
           
 void reset()
           
 void searchForOtherClusters()
           
 void setTargetAddress(Address targetAddress)
           
 boolean unblacklist(Address address)
          Removes an address from the blacklist if it's temporarily blacklisted.
 

Method Detail

join

void join()

searchForOtherClusters

void searchForOtherClusters()

getStartTime

long getStartTime()

setTargetAddress

void setTargetAddress(Address targetAddress)

reset

void reset()

getType

String getType()

blacklist

void blacklist(Address address,
               boolean permanent)
Adds an address to the blacklist. Blacklist is useful if a node should ignore another node, e.g. when the groupname of 2 machines is not the same and they should form different clusters.

If blacklist is permanent, then this operation is write-once. It cannot be unblacklisted again. If blacklist is temporary, blacklist can be removed via unblacklist(com.hazelcast.nio.Address).

Method is thread-safe.

If the address already is blacklisted, the call is ignored

Parameters:
address - the address to blacklist.
permanent - if blacklist is permanent or not
Throws:
NullPointerException - if address is null.
See Also:
isBlacklisted(com.hazelcast.nio.Address)

unblacklist

boolean unblacklist(Address address)
Removes an address from the blacklist if it's temporarily blacklisted. This method has no effect if given address is not blacklisted. Permanent blacklists cannot be undone.

Method is thread-safe.

If the address is not blacklisted, the call is ignored.

Parameters:
address - the address to unblacklist.
Returns:
true if address is unblacklisted, false otherwise.

isBlacklisted

boolean isBlacklisted(Address address)
Checks if an address is blacklisted. Method is thread-safe.

Parameters:
address - the address to check.
Returns:
true if blacklisted, false otherwise.
Throws:
NullPointerException - if address is null.
See Also:
blacklist(com.hazelcast.nio.Address, boolean)


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.