DiCE API nvidia_logo_transpbg.gif Up
icache_manager.h
Go to the documentation of this file.
1/***************************************************************************************************
2 * Copyright 2023 NVIDIA Corporation. All rights reserved.
3 **************************************************************************************************/
6
7#ifndef MI_NEURAYLIB_ICACHE_MANAGER_H
8#define MI_NEURAYLIB_ICACHE_MANAGER_H
9
11
12namespace mi {
13
14class IString;
15
16namespace neuraylib {
17
26class ICache_manager : public
27 mi::base::Interface_declare<0x6b063e2d,0x41cf,0x4a48,0x8b,0xdf,0x2e,0x41,0x65,0xfe,0x48,0xb7>
28{
29public:
49 virtual Sint32 start( const char* listen_address, const char* directory) = 0;
50
56 virtual Sint32 shutdown() = 0;
57
70 const char* address, const char* user_name, const char* password) = 0;
71
73 virtual const IString* get_http_address() const = 0;
74
76 virtual const IString* get_http_user_name() const = 0;
77
79 virtual const IString* get_http_password() const = 0;
80
93 virtual Sint32 set_multicast_address( const char* address) = 0;
94
96 virtual const IString* get_multicast_address() const = 0;
97
108 virtual Sint32 set_cluster_interface( const char* address) = 0;
109
111 virtual const IString* get_cluster_interface() const = 0;
112
121 virtual Sint32 set_use_rdma( bool use_rdma) = 0;
122
126 virtual bool get_use_rdma() const = 0;
127
137 virtual Sint32 set_rdma_interface( const char* rdma_interface) = 0;
138
144 virtual const IString* get_rdma_interface() const = 0;
145
156 virtual Sint32 set_admin_http_address( const char* address) = 0;
157
159 virtual const IString* get_admin_http_address() const = 0;
160
185 virtual Sint32 set_memory_limits( Size low_water, Size high_water) = 0;
186
188 virtual void get_memory_limits( Size* low_water, Size* high_water) const = 0;
189
194 virtual Sint32 set_reference_count_checking( bool enabled) = 0;
195
197 virtual bool get_reference_count_checking() const = 0;
198};
199
202 mi::base::Interface_declare<0xd5908356,0x1686,0x4299,0xae,0x10,0x8c,0x88,0x71,0x43,0x1f,0x04>
203{
204public:
207};
208
209} // namespace neuraylib
210
211} // namespace mi
212
213#endif // MI_NEURAYLIB_ICACHE_MANAGER_H
A simple string class.
Definition: istring.h:22
Mixin class template for deriving new interface declarations.
Definition: interface_declare.h:43
This factory allows to create cache manager instances.
Definition: icache_manager.h:203
virtual ICache_manager * create_cache_manager()=0
Creates a new cache manager instance.
Represents an instance of the cache manager.
Definition: icache_manager.h:28
virtual const IString * get_admin_http_address() const =0
Returns the address of the admin HTTP server, or NULL if none is set.
virtual const IString * get_http_password() const =0
Returns the password for the HTTP server, or NULL if none is set.
virtual const IString * get_http_address() const =0
Returns the address of the HTTP server, or NULL if none is set.
virtual const IString * get_rdma_interface() const =0
Returns RDMA InfiniBand interface to be used.
virtual bool get_reference_count_checking() const =0
Indicates whether checking of reference counts is enabled.
virtual Sint32 set_use_rdma(bool use_rdma)=0
Enables or disables the usage of RDMA InfiniBand.
virtual bool get_use_rdma() const =0
Indicates whether RDMA InfiniBand is enabled.
virtual Sint32 set_http_address(const char *address, const char *user_name, const char *password)=0
Sets the address and authentication information of the HTTP server.
virtual const IString * get_cluster_interface() const =0
Returns the cluster interface, or NULL if none is set.
virtual const IString * get_http_user_name() const =0
Returns the user name for the HTTP server, or NULL if none is set.
virtual Sint32 shutdown()=0
Shuts down the cache manager.
virtual Sint32 set_admin_http_address(const char *address)=0
Sets the address for the administrative HTTP server.
virtual Sint32 set_multicast_address(const char *address)=0
Sets the multicast address of the cache manager.
virtual Sint32 set_memory_limits(Size low_water, Size high_water)=0
Sets the memory limits for the garbage collection.
virtual void get_memory_limits(Size *low_water, Size *high_water) const =0
Returns the memory limits for the garbage collection.
virtual Sint32 start(const char *listen_address, const char *directory)=0
Starts the cache manager.
virtual Sint32 set_cluster_interface(const char *address)=0
Sets the cluster interface used by the cache manager.
virtual Sint32 set_rdma_interface(const char *rdma_interface)=0
Set the RDMA InfiniBand interface to be used.
virtual Sint32 set_reference_count_checking(bool enabled)=0
Enables or disables checking of reference counts.
virtual const IString * get_multicast_address() const =0
Returns the multicast address, or NULL if none is set.
Uint64 Size
Unsigned integral type that is large enough to hold the size of all types.
Definition: types.h:112
signed int Sint32
32-bit signed integer.
Definition: types.h:46
Mixin class template for deriving new interface declarations.
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH.
Definition: dice.h:89