com.hazelcast.core.MembershipEvent Java Examples

The following examples show how to use com.hazelcast.core.MembershipEvent. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MyClusterMembershipListener.java    From sctalk with Apache License 2.0 5 votes vote down vote up
@Override
public void memberRemoved(MembershipEvent membershipEvent) {
    String uuid = membershipEvent.getMember().getUuid();
    logger.info("关闭连接: {}", uuid);
    messageServerManager.unload(uuid);
    // userClientInfoManager.unloadServer(uuid);
}
 
Example #2
Source File: ClusterMember.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Override
public void memberAdded(MembershipEvent membershipEvent) {
	UKTools.voteMaster(hazelcastInstance);
}
 
Example #3
Source File: ClusterMember.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Override
public void memberRemoved(MembershipEvent membershipEvent) {
	UKTools.voteMaster(hazelcastInstance);
}
 
Example #4
Source File: ClusterMembershipListener.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Override
public void memberAdded(MembershipEvent membershipEvent) {
	// TODO Auto-generated method stub
	System.out.println("");
}
 
Example #5
Source File: MembershipListenerImpl.java    From java-11-examples with Apache License 2.0 4 votes vote down vote up
@Override
public void memberAdded(MembershipEvent membershipEvent) {
    LOG.info("memberAdded: {} {}", membershipEvent.getMember().getUuid(), membershipEvent.getMember().getAddress());
    cl.countDown();
}
 
Example #6
Source File: MembershipListenerImpl.java    From java-11-examples with Apache License 2.0 4 votes vote down vote up
@Override
public void memberRemoved(MembershipEvent membershipEvent) {
    LOG.info("memberRemoved: {} {}", membershipEvent.getMember().getUuid(), membershipEvent.getMember().getAddress());
}
 
Example #7
Source File: MyClusterMembershipListener.java    From sctalk with Apache License 2.0 4 votes vote down vote up
@Override
public void memberAdded(MembershipEvent membershipEvent) {
    String uuid = membershipEvent.getMember().getUuid();
    logger.info("建立连接: {}",  uuid);
}
 
Example #8
Source File: HazelcastLifecycleMonitor.java    From usergrid with Apache License 2.0 4 votes vote down vote up
@Override
public void memberAdded( MembershipEvent membersipEvent ) {
    logger.info( "MemberAdded {}", membersipEvent );
}
 
Example #9
Source File: HazelcastLifecycleMonitor.java    From usergrid with Apache License 2.0 4 votes vote down vote up
@Override
public void memberRemoved( MembershipEvent membersipEvent ) {
    logger.info( "MemberRemoved {}", membersipEvent );
}
 
Example #10
Source File: ClusterMembershipListener.java    From youkefu with Apache License 2.0 2 votes vote down vote up
@Override
public void memberRemoved(MembershipEvent membershipEvent) {
	
}