Package com.hazelcast.config
Class PersistentMemoryDirectoryConfig
java.lang.Object
com.hazelcast.config.PersistentMemoryDirectoryConfig
Configuration class for directories that persistent memories are mounted at.
-
Constructor Summary
ConstructorsConstructorDescriptionPersistentMemoryDirectoryConfig(PersistentMemoryDirectoryConfig directoryConfig) Constructs an instance by copying the providedPersistentMemoryDirectoryConfig.PersistentMemoryDirectoryConfig(String directory) Creates an instance with thedirectoryspecified.PersistentMemoryDirectoryConfig(String directory, int numaNode) Creates an instance with thedirectoryand NUMA node specified. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the directory of thisPersistentMemoryDirectoryConfig.intReturns the NUMA node the persistent memory mounted to the given directory is attached to.inthashCode()booleanReturns if the NUMA node for the given persistent memory directory is set.voidsetDirectory(String directory) Returns thedirectoryof thisPersistentMemoryDirectoryConfig.voidsetNumaNode(int numaNode) Sets the NUMA node the persistent memory mounted to the given directory is attached to.toString()
-
Constructor Details
-
PersistentMemoryDirectoryConfig
Creates an instance with thedirectoryspecified.- Parameters:
directory- The directory where the persistent memory is mounted at- Throws:
NullPointerException- ifdirectoryisnull
-
PersistentMemoryDirectoryConfig
Creates an instance with thedirectoryand NUMA node specified. Note that settingnumaNodeto -1 on any of the configuredPersistentMemoryDirectoryConfiginstances disables NUMA-aware persistent memory allocation.- Parameters:
directory- The directory where the persistent memory is mounted atnumaNode- The NUMA node that the persistent memory mounted to the given directory is attached to.- Throws:
NullPointerException- ifdirectoryisnull
-
PersistentMemoryDirectoryConfig
Constructs an instance by copying the providedPersistentMemoryDirectoryConfig.- Parameters:
directoryConfig- The configuration to copy- Throws:
NullPointerException- ifdirectoryConfigisnull
-
-
Method Details
-
getDirectory
Returns the directory of thisPersistentMemoryDirectoryConfig.- Returns:
- the directory
-
setDirectory
Returns thedirectoryof thisPersistentMemoryDirectoryConfig.- Parameters:
directory- the directory to set- Throws:
NullPointerException- ifdirectoryisnull
-
getNumaNode
public int getNumaNode()Returns the NUMA node the persistent memory mounted to the given directory is attached to.- Returns:
- the NUMA node of the persistent memory
-
setNumaNode
public void setNumaNode(int numaNode) Sets the NUMA node the persistent memory mounted to the given directory is attached to. Note that settingnumaNodeto -1 on any of the configuredPersistentMemoryDirectoryConfiginstances disables NUMA-aware persistent memory allocation.- Parameters:
numaNode- the NUMA node to set
-
isNumaNodeSet
public boolean isNumaNodeSet()Returns if the NUMA node for the given persistent memory directory is set.- Returns:
trueif the NUMA node is set,falseotherwise
-
equals
-
hashCode
public int hashCode() -
toString
-