NebulaStream  0.6.213
NebulaStream is a data and application management framework for the internet of things
TCPSourceTest.cpp File Reference
#include <API/Schema.hpp>
#include <BaseIntegrationTest.hpp>
#include <Catalogs/Source/PhysicalSource.hpp>
#include <Configurations/Worker/PhysicalSourceTypes/TCPSourceType.hpp>
#include <Operators/LogicalOperators/Sources/TCPSourceDescriptor.hpp>
#include <Runtime/NodeEngine.hpp>
#include <Runtime/NodeEngineBuilder.hpp>
#include <Sources/SourceCreator.hpp>
#include <Util/Logger/Logger.hpp>
#include <gtest/gtest.h>
#include <iostream>
#include <string>
#include <Catalogs/Query/QueryCatalog.hpp>
#include <Components/NesCoordinator.hpp>
#include <Components/NesWorker.hpp>
#include <Configurations/Coordinator/CoordinatorConfiguration.hpp>
#include <Configurations/Worker/WorkerConfiguration.hpp>
#include <Identifiers/Identifiers.hpp>
#include <Plans/Global/Query/GlobalQueryPlan.hpp>
#include <Runtime/HardwareManager.hpp>
#include <Runtime/MemoryLayout/RowLayout.hpp>
#include <Runtime/QueryManager.hpp>
#include <Services/RequestHandlerService.hpp>
#include <Util/TestUtils.hpp>
#include <arpa/inet.h>
#include <netinet/in.h>
Include dependency graph for TCPSourceTest.cpp:

Classes

class  NES::TCPSourceTest
 

Namespaces

 NES
 This exception represents a network error.
 

Macros

#define OPERATORID   OperatorId(1)
 
#define ORIGINID   OriginId(1)
 
#define STATISTICID   1
 
#define NUMSOURCELOCALBUFFERS   12
 
#define SUCCESSORS    {}
 
#define INPUTFORMAT   InputFormat::JSON
 

Functions

void setup_read_from_buffer (std::vector< char > data)
 
std::string get_ip_address ()
 
short get_port ()
 
int socket (int domain, int type, int protocol)
 
int connect (int fd, const sockaddr *addr, [[maybe_unused]] socklen_t addrlen)
 
ssize_t __real_read (int fd, void *data, size_t size)
 
ssize_t __wrap_read (int fd, void *data, size_t size)
 
 NES::TEST_F (TCPSourceTest, TCPSourceUserSpecifiedTupleSizePrint)
 
 NES::TEST_F (TCPSourceTest, TCPSourceTupleSeparatorPrint)
 
 NES::TEST_F (TCPSourceTest, TCPSourceBufferSizeFromSocketPrint)
 
 NES::TEST_F (TCPSourceTest, TCPSourceBufferSizeFromSocketNesFormatPrint)
 

Macro Definition Documentation

◆ INPUTFORMAT

#define INPUTFORMAT   InputFormat::JSON

◆ NUMSOURCELOCALBUFFERS

#define NUMSOURCELOCALBUFFERS   12

◆ OPERATORID

#define OPERATORID   OperatorId(1)

◆ ORIGINID

#define ORIGINID   OriginId(1)

◆ STATISTICID

#define STATISTICID   1

◆ SUCCESSORS

#define SUCCESSORS    {}

Function Documentation

◆ __real_read()

ssize_t __real_read ( int  fd,
void *  data,
size_t  size 
)

◆ __wrap_read()

ssize_t __wrap_read ( int  fd,
void *  data,
size_t  size 
)

References fd.

◆ connect()

int connect ( int  fd,
const sockaddr *  addr,
[[maybe_unused] ] socklen_t  addrlen 
)

Referenced by NES::TCPSource::createOrLoadPersistedProperties(), and NES::TEST_F().

Here is the caller graph for this function:

◆ get_ip_address()

std::string get_ip_address ( )

◆ get_port()

short get_port ( )

◆ setup_read_from_buffer()

void setup_read_from_buffer ( std::vector< char >  data)

Referenced by NES::TEST_F().

Here is the caller graph for this function:

◆ socket()

int socket ( int  domain,
int  type,
int  protocol 
)

Referenced by NES::TCPSource::createOrLoadPersistedProperties(), NES::TCPSourceIntegrationTest::startServer(), and TEST_F().

Here is the caller graph for this function:

Variable Documentation

◆ addr_in

sockaddr_in addr_in = {}

◆ called_connect

bool called_connect = false

◆ called_socket_create

bool called_socket_create = false

◆ connect_fd

size_t connect_fd = 0

◆ connection_fd

int connection_fd = 0

◆ data

◆ domain

int domain = 0

◆ fd

◆ index

◆ numbers_of_reads

size_t numbers_of_reads = 0

◆ protocol

◆ read_ptr

std::vector<const void*> read_ptr

◆ read_sizes

std::vector<size_t> read_sizes

◆ socklen

socklen_t socklen = 0

◆ type