use of com.hazelcast.internal.server.ServerConnectionManager in project hazelcast by hazelcast.
the class HazelcastTestSupport method toPacket.
// ###########################################
// ########## implementation getter ##########
// ###########################################
public static Packet toPacket(HazelcastInstance local, HazelcastInstance remote, Operation operation) {
InternalSerializationService serializationService = Accessors.getSerializationService(local);
ServerConnectionManager connectionManager = Accessors.getConnectionManager(local);
return new Packet(serializationService.toBytes(operation), operation.getPartitionId()).setPacketType(Packet.Type.OPERATION).setConn(connectionManager.get(Accessors.getAddress(remote)));
}
Aggregations