use of com.hazelcast.instance.AbstractMember in project hazelcast by hazelcast.
the class ClientMembershipListener method handle.
@Override
public void handle(String uuid, String key, int opType, String value) {
Collection<Member> members = clusterService.getMemberList();
for (Member target : members) {
if (target.getUuid().equals(uuid)) {
final MemberAttributeOperationType operationType = MemberAttributeOperationType.getValue(opType);
((AbstractMember) target).updateAttribute(operationType, key, value);
MemberAttributeEvent memberAttributeEvent = new MemberAttributeEvent(client.getCluster(), target, operationType, key, value);
clusterService.fireMemberAttributeEvent(memberAttributeEvent);
break;
}
}
}
Aggregations