use of com.hazelcast.instance.MemberImpl in project hazelcast by hazelcast.
the class MapPublisherCreateMessageTask method call.
@Override
protected Object call() throws Exception {
ClusterService clusterService = clientEngine.getClusterService();
Collection<MemberImpl> members = clusterService.getMemberImpls();
List<Future> futures = new ArrayList<Future>(members.size());
createInvocations(members, futures);
return getQueryResults(futures);
}
use of com.hazelcast.instance.MemberImpl in project hazelcast by hazelcast.
the class MapPublisherCreateWithValueMessageTask method call.
@Override
protected Object call() throws Exception {
ClusterService clusterService = clientEngine.getClusterService();
Collection<MemberImpl> members = clusterService.getMemberImpls();
List<Future> futures = new ArrayList<Future>(members.size());
createInvocations(members, futures);
return getQueryResults(futures);
}
use of com.hazelcast.instance.MemberImpl in project hazelcast by hazelcast.
the class CollectionService method dispatchEvent.
@Override
public void dispatchEvent(CollectionEvent event, ItemListener listener) {
final MemberImpl member = nodeEngine.getClusterService().getMember(event.getCaller());
ItemEvent itemEvent = new DataAwareItemEvent(event.getName(), event.getEventType(), event.getData(), member, nodeEngine.getSerializationService());
if (member == null) {
if (logger.isInfoEnabled()) {
logger.info("Dropping event " + itemEvent + " from unknown address:" + event.getCaller());
}
return;
}
if (event.getEventType().equals(ItemEventType.ADDED)) {
listener.itemAdded(itemEvent);
} else {
listener.itemRemoved(itemEvent);
}
}
use of com.hazelcast.instance.MemberImpl in project hazelcast by hazelcast.
the class LockServiceImpl method memberRemoved.
@Override
public void memberRemoved(MembershipServiceEvent event) {
final MemberImpl member = event.getMember();
final String uuid = member.getUuid();
releaseLocksOwnedBy(uuid);
}
use of com.hazelcast.instance.MemberImpl in project hazelcast by hazelcast.
the class MemberAttributeEvent method readData.
@Override
public void readData(ObjectDataInput in) throws IOException {
key = in.readUTF();
member = new MemberImpl();
member.readData(in);
operationType = MemberAttributeOperationType.getValue(in.readByte());
if (operationType == PUT) {
value = IOUtil.readAttributeValue(in);
}
this.source = member;
}
Aggregations