Peano
Loading...
Searching...
No Matches
LoadBalancingService.h
Go to the documentation of this file.
1// This file is part of the Peano project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
5
6#include "tarch/logging/Log.h"
7
8
9namespace toolbox {
10 namespace loadbalancing {
11 class AbstractLoadBalancing;
12 class LoadBalancingService;
13 } // namespace loadbalancing
14} // namespace toolbox
15
16
Log Device.
Definition Log.h:517
Abstract superclass of any load balancing.
AbstractLoadBalancing * getLoadBalancing() const
AbstractLoadBalancing * _loadBalancing
Owned by this service.
static LoadBalancingService & getInstance()
void setLoadBalancing(AbstractLoadBalancing *loadBalancing)
Install a new load balancing strategy.
LoadBalancingService()
Singletons don't do anything in their constructor - see tarch::services::Service for a discussion.
LoadBalancingService(const LoadBalancingService &other)=delete
You may not copy a singleton.
void shutdown()
Delete the installed load balancing strategy (if any) and reset the service, i.e.