Package com.hazelcast.config
Class PersistentMemoryDirectoryConfig
java.lang.Object
com.hazelcast.config.PersistentMemoryDirectoryConfig
Configuration class for directories that persistent memories are mounted at.
- 
Constructor SummaryConstructorsConstructorDescriptionPersistentMemoryDirectoryConfig(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 SummaryModifier 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- 
PersistentMemoryDirectoryConfigCreates an instance with thedirectoryspecified.- Parameters:
- directory- The directory where the persistent memory is mounted at
- Throws:
- NullPointerException- if- directoryis- null
 
- 
PersistentMemoryDirectoryConfigCreates 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 at
- numaNode- The NUMA node that the persistent memory mounted to the given directory is attached to.
- Throws:
- NullPointerException- if- directoryis- null
 
- 
PersistentMemoryDirectoryConfigConstructs an instance by copying the providedPersistentMemoryDirectoryConfig.- Parameters:
- directoryConfig- The configuration to copy
- Throws:
- NullPointerException- if- directoryConfigis- null
 
 
- 
- 
Method Details- 
getDirectoryReturns the directory of thisPersistentMemoryDirectoryConfig.- Returns:
- the directory
 
- 
setDirectoryReturns thedirectoryof thisPersistentMemoryDirectoryConfig.- Parameters:
- directory- the directory to set
- Throws:
- NullPointerException- if- directoryis- null
 
- 
getNumaNodepublic 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
 
- 
setNumaNodepublic 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
 
- 
isNumaNodeSetpublic boolean isNumaNodeSet()Returns if the NUMA node for the given persistent memory directory is set.- Returns:
- trueif the NUMA node is set,- falseotherwise
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-