Class MembershipProviderBase
java.lang.Object
org.apache.catalina.tribes.membership.MembershipProviderBase
- All Implemented Interfaces:
MembershipProvider
- Direct Known Subclasses:
CloudMembershipProvider
,McastServiceImpl
,StaticMembershipProvider
-
Field Summary
Modifier and TypeFieldDescriptionprotected ScheduledExecutorService
protected Membership
protected MembershipListener
protected MembershipService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the specified member from the associated membership.Member[]
Get the members from the associated membership.boolean
void
init
(Properties properties) Initialize the membership provider with the specified configuration.void
setMembershipListener
(MembershipListener listener) Set the associated membership listener.void
setMembershipService
(MembershipService service) Set the associated membership service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.catalina.tribes.MembershipProvider
start, stop
-
Field Details
-
membership
-
membershipListener
-
service
-
executor
-
-
Constructor Details
-
MembershipProviderBase
public MembershipProviderBase()
-
-
Method Details
-
init
Description copied from interface:MembershipProvider
Initialize the membership provider with the specified configuration.- Specified by:
init
in interfaceMembershipProvider
- Parameters:
properties
- configuration- Throws:
Exception
- if an error occurs
-
hasMembers
public boolean hasMembers()- Specified by:
hasMembers
in interfaceMembershipProvider
- Returns:
true
if there are members
-
getMember
Description copied from interface:MembershipProvider
Get the specified member from the associated membership.- Specified by:
getMember
in interfaceMembershipProvider
- Parameters:
mbr
- the member- Returns:
- the member
-
getMembers
Description copied from interface:MembershipProvider
Get the members from the associated membership.- Specified by:
getMembers
in interfaceMembershipProvider
- Returns:
- the members
-
setMembershipListener
Description copied from interface:MembershipProvider
Set the associated membership listener.- Specified by:
setMembershipListener
in interfaceMembershipProvider
- Parameters:
listener
- the listener
-
setMembershipService
Description copied from interface:MembershipProvider
Set the associated membership service.- Specified by:
setMembershipService
in interfaceMembershipProvider
- Parameters:
service
- the service
-