public class StaticMembershipInterceptor extends ChannelInterceptorBase
ChannelInterceptor.InterceptorEvent
Modifier and Type | Field and Description |
---|---|
protected Member |
localMember |
protected ArrayList<Member> |
members |
optionFlag
Constructor and Description |
---|
StaticMembershipInterceptor() |
Modifier and Type | Method and Description |
---|---|
void |
addStaticMember(Member member) |
Member |
getLocalMember(boolean incAlive)
Return the member that represents this node.
|
Member |
getMember(Member mbr)
Intercepts the
Channel.getMember(Member) method |
Member[] |
getMembers()
Get all current cluster members
|
boolean |
hasMembers()
has members
|
void |
removeStaticMember(Member member) |
void |
setLocalMember(Member member) |
void |
start(int svc)
Send notifications upwards
|
fireInterceptorEvent, getNext, getOptionFlag, getPrevious, heartbeat, memberAdded, memberDisappeared, messageReceived, okToProcess, sendMessage, setNext, setOptionFlag, setPrevious, stop
protected Member localMember
public void addStaticMember(Member member)
public void removeStaticMember(Member member)
public void setLocalMember(Member member)
public boolean hasMembers()
hasMembers
in interface ChannelInterceptor
hasMembers
in class ChannelInterceptorBase
Channel.hasMembers()
public Member[] getMembers()
getMembers
in interface ChannelInterceptor
getMembers
in class ChannelInterceptorBase
Channel.getMembers()
public Member getMember(Member mbr)
ChannelInterceptor
Channel.getMember(Member)
methodgetMember
in interface ChannelInterceptor
getMember
in class ChannelInterceptorBase
mbr
- MemberChannel.getMember(Member)
public Member getLocalMember(boolean incAlive)
getLocalMember
in interface ChannelInterceptor
getLocalMember
in class ChannelInterceptorBase
incAlive
- booleanChannel.getLocalMember(boolean)
public void start(int svc) throws ChannelException
start
in interface ChannelInterceptor
start
in class ChannelInterceptorBase
svc
- intChannelException
Channel
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.