Search in sources :

Example 6 with Address

use of com.hazelcast.nio.Address in project hazelcast by hazelcast.

the class SetMasterOperation method readInternal.

@Override
protected void readInternal(final ObjectDataInput in) throws IOException {
    masterAddress = new Address();
    masterAddress.readData(in);
}
Also used : Address(com.hazelcast.nio.Address)

Example 7 with Address

use of com.hazelcast.nio.Address in project hazelcast by hazelcast.

the class SplitBrainMergeValidationOperation method afterRun.

@Override
public void afterRun() throws Exception {
    if (removeCaller) {
        ClusterServiceImpl service = getService();
        Address caller = getCallerAddress();
        service.removeAddress(caller, "Removing " + caller + ", since it thinks it's already split from this cluster " + "and looking to merge.");
    }
}
Also used : Address(com.hazelcast.nio.Address) ClusterServiceImpl(com.hazelcast.internal.cluster.impl.ClusterServiceImpl)

Example 8 with Address

use of com.hazelcast.nio.Address in project hazelcast by hazelcast.

the class ChangeClusterStateOperation method readInternal.

@Override
protected void readInternal(ObjectDataInput in) throws IOException {
    super.readInternal(in);
    stateChange = in.readObject();
    initiator = new Address();
    initiator.readData(in);
    txnId = in.readUTF();
    isTransient = in.readBoolean();
}
Also used : Address(com.hazelcast.nio.Address)

Example 9 with Address

use of com.hazelcast.nio.Address in project hazelcast by hazelcast.

the class FinalizeJoinOperation method run.

@Override
public void run() throws Exception {
    checkLocalMemberUuid();
    ClusterServiceImpl clusterService = getService();
    Address callerAddress = getConnectionEndpointOrThisAddress();
    boolean finalized = clusterService.finalizeJoin(memberInfos, callerAddress, clusterId, clusterState, clusterVersion, clusterStartTime, masterTime);
    if (!finalized) {
        return;
    }
    processPartitionState();
    sendPostJoinOperations();
    runPostJoinOp();
}
Also used : Address(com.hazelcast.nio.Address) ClusterServiceImpl(com.hazelcast.internal.cluster.impl.ClusterServiceImpl)

Example 10 with Address

use of com.hazelcast.nio.Address in project hazelcast by hazelcast.

the class MergeClustersOperation method readInternal.

@Override
protected void readInternal(ObjectDataInput in) throws IOException {
    super.readInternal(in);
    newTargetAddress = new Address();
    newTargetAddress.readData(in);
}
Also used : Address(com.hazelcast.nio.Address)

Aggregations

Address (com.hazelcast.nio.Address)274 Test (org.junit.Test)44 QuickTest (com.hazelcast.test.annotation.QuickTest)36 HashMap (java.util.HashMap)33 ParallelTest (com.hazelcast.test.annotation.ParallelTest)29 Member (com.hazelcast.core.Member)27 ArrayList (java.util.ArrayList)27 Map (java.util.Map)26 ILogger (com.hazelcast.logging.ILogger)25 InetAddress (java.net.InetAddress)25 MemberImpl (com.hazelcast.instance.MemberImpl)21 List (java.util.List)20 HashSet (java.util.HashSet)18 Connection (com.hazelcast.nio.Connection)17 NodeEngine (com.hazelcast.spi.NodeEngine)16 NodeEngineImpl (com.hazelcast.spi.impl.NodeEngineImpl)16 IOException (java.io.IOException)16 ClusterServiceImpl (com.hazelcast.internal.cluster.impl.ClusterServiceImpl)14 HazelcastInstance (com.hazelcast.core.HazelcastInstance)13 IPartitionService (com.hazelcast.spi.partition.IPartitionService)13