public interface MemberHandler
Modifier and Type | Method and Description |
---|---|
long |
getMonitorCount()
Get number of monitored members from the collective repository.
|
java.lang.String |
startMonitoring(int heartbeatInterval,
java.util.Map<java.lang.String,java.lang.Object> memberData)
Start monitoring a member when it is registering for the first time or re-registering.
|
void |
stopMonitoring(java.lang.String memberID)
Updates flags in the repository to indicate that this member
has been unregistered.
|
void |
validateMember(java.lang.String operation,
java.util.Map<java.lang.String,java.lang.Object> memberData,
boolean checkExist)
Validate a member.
|
void |
validateMember(java.lang.String operation,
java.lang.String memberID,
boolean checkExist)
Validate a member.
|
void validateMember(java.lang.String operation, java.util.Map<java.lang.String,java.lang.Object> memberData, boolean checkExist) throws java.io.IOException
An invalid member id is null or empty
operation
- the repository operation being invokedmemberData,
- check if the memberData tuple provided contains valid member idcheckExists
- if true
, check that the memberID existsjava.io.IOException
- if there was any problem completing the operationvoid validateMember(java.lang.String operation, java.lang.String memberID, boolean checkExist) throws java.io.IOException
An invalid member id is null or empty
operation
- the repository operation being invokedmemberID
- to validatecheckExists
- if true
, check that the memberID existsjava.io.IOException
- if there was any problem completing the operationjava.lang.String startMonitoring(int heartbeatInterval, java.util.Map<java.lang.String,java.lang.Object> memberData) throws java.io.IOException
heartbeatInterval
- the member's heart beat interval (seconds)memberData
- from the repository invocation, containing the member identityjava.io.IOException
- if there was any problem completing the operationvoid stopMonitoring(java.lang.String memberID) throws java.io.IOException
memberID
- the collective ID for the memberjava.io.IOException
- if there was any problem completing the operationlong getMonitorCount() throws java.io.IOException
java.io.IOException
- if there was any problem completing the operation