mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-08 06:13:14 +00:00
46 lines
1.5 KiB
Rust
46 lines
1.5 KiB
Rust
// Copyright 2024 RustFS Team
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
use std::sync::Arc;
|
|
|
|
use super::replication_bandwidth_boundary::ReplicationBucketMonitor;
|
|
use super::replication_pool::DynReplicationPool;
|
|
use super::replication_state::ReplicationStats;
|
|
use super::replication_storage_boundary::ReplicationObjectStore;
|
|
use crate::runtime::sources;
|
|
|
|
pub(crate) fn object_store_handle() -> Option<Arc<ReplicationObjectStore>> {
|
|
sources::object_store_handle()
|
|
}
|
|
|
|
pub(crate) fn default_local_node_name() -> String {
|
|
sources::default_local_node_name()
|
|
}
|
|
|
|
pub(crate) fn replication_pool() -> Option<Arc<DynReplicationPool>> {
|
|
sources::replication_pool()
|
|
}
|
|
|
|
pub(crate) fn replication_stats() -> Option<Arc<ReplicationStats>> {
|
|
sources::replication_stats()
|
|
}
|
|
|
|
pub(crate) fn replication_runtime_initialized() -> bool {
|
|
sources::replication_runtime_initialized()
|
|
}
|
|
|
|
pub(crate) fn bucket_monitor() -> Option<Arc<ReplicationBucketMonitor>> {
|
|
sources::bucket_monitor()
|
|
}
|