streaming: add forward declarations in stream_fwd.hh

To be used for defining streaming::plan_id
in the next patcvh.

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
Benny Halevy
2022-08-21 15:45:17 +03:00
parent 484004e766
commit c1fc0672a5
6 changed files with 24 additions and 9 deletions

View File

@@ -11,6 +11,7 @@
#pragma once
#include "gms/inet_address.hh"
#include "streaming/stream_fwd.hh"
#include "streaming/stream_session.hh"
#include "streaming/session_info.hh"
#include <map>

19
streaming/stream_fwd.hh Normal file
View File

@@ -0,0 +1,19 @@
/*
* Copyright (C) 2018-present ScyllaDB
*/
/*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#pragma once
namespace streaming {
class stream_event_handler;
class stream_manager;
class stream_result_future;
class stream_session;
class stream_state;
} // namespace streaming

View File

@@ -9,6 +9,7 @@
*/
#pragma once
#include "streaming/stream_fwd.hh"
#include "streaming/progress_info.hh"
#include <seastar/core/shared_ptr.hh>
#include <seastar/core/distributed.hh>
@@ -45,9 +46,6 @@ class gossiper;
namespace streaming {
class stream_session;
class stream_result_future;
struct stream_bytes {
int64_t bytes_sent = 0;
int64_t bytes_received = 0;

View File

@@ -16,6 +16,7 @@
#include "gms/inet_address.hh"
#include "query-request.hh"
#include "dht/i_partitioner.hh"
#include "streaming/stream_fwd.hh"
#include "streaming/stream_coordinator.hh"
#include "streaming/stream_detail.hh"
#include "streaming/stream_reason.hh"
@@ -23,9 +24,6 @@
namespace streaming {
class stream_state;
class stream_event_handler;
/**
* {@link StreamPlan} is a helper class that builds StreamOperation of given configuration.
*

View File

@@ -11,13 +11,12 @@
#pragma once
#include "utils/UUID.hh"
#include "streaming/stream_fwd.hh"
#include "streaming/stream_task.hh"
#include <memory>
namespace streaming {
class stream_session;
/**
* Task that manages receiving files for the session for certain ColumnFamily.
*/

View File

@@ -11,6 +11,7 @@
#pragma once
#include "utils/UUID.hh"
#include "streaming/stream_fwd.hh"
#include "streaming/stream_task.hh"
#include "streaming/stream_detail.hh"
#include <map>
@@ -18,7 +19,6 @@
namespace streaming {
class stream_session;
class send_info;
/**