Definition at line 575 of file Options.h.
◆ StorageConfigurationBase()
| StorageConfigurationBase |
( |
size_t | qty, |
|
|
char ** | args ) |
|
inlineprotected |
Definition at line 592 of file Options.h.
593 : ConfigurationBase(qty, args)
594 {
595 }
◆ defaultStorage()
◆ showOptions()
| void showOptions |
( |
std::ostream & | out | ) |
const |
|
inlineoverrideprotectedvirtual |
Implements ConfigurationBase.
Definition at line 599 of file Options.h.
600 {
601 out
602 << " --storage [FileBased|AsyncFileBased|MemoryBased]" << std::endl
603 << "\tDefault value is [" << SessionStorageType::toString(defaultStorage()) << "]" << std::endl
604 << " --storageCpu <cpu>" << std::endl
605 << "\tAsyncFileBased storage CPU affinity" << std::endl
606 ;
607 }
◆ storage()
Definition at line 578 of file Options.h.
579 {
580 return argOrDefault(options(),
"storage", defaultStorage());
581 }
Value argOrDefault(const Options &options, const Char *option, const Value &defaultValue=Value())
◆ storageAffinity()
Definition at line 583 of file Options.h.
584 {
585 if(storage() == SessionStorageType::AsyncFileBased)
586 return requiredArg<CpuIndex>(options(), "storageCpu");
587
588 return 0;
589 }