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
ConstructorDescriptionPersistentMemoryDirectoryConfig
(PersistentMemoryDirectoryConfig directoryConfig) Constructs an instance by copying the providedPersistentMemoryDirectoryConfig
.PersistentMemoryDirectoryConfig
(String directory) Creates an instance with thedirectory
specified.PersistentMemoryDirectoryConfig
(String directory, int numaNode) Creates an instance with thedirectory
and NUMA node specified. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the directory of thisPersistentMemoryDirectoryConfig
.int
Returns the NUMA node the persistent memory mounted to the given directory is attached to.int
hashCode()
boolean
Returns if the NUMA node for the given persistent memory directory is set.void
setDirectory
(String directory) Returns thedirectory
of thisPersistentMemoryDirectoryConfig
.void
setNumaNode
(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 thedirectory
specified.- Parameters:
directory
- The directory where the persistent memory is mounted at- Throws:
NullPointerException
- ifdirectory
isnull
-
PersistentMemoryDirectoryConfig
Creates an instance with thedirectory
and NUMA node specified. Note that settingnumaNode
to -1 on any of the configuredPersistentMemoryDirectoryConfig
instances 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
- ifdirectory
isnull
-
PersistentMemoryDirectoryConfig
Constructs an instance by copying the providedPersistentMemoryDirectoryConfig
.- Parameters:
directoryConfig
- The configuration to copy- Throws:
NullPointerException
- ifdirectoryConfig
isnull
-
-
Method Details
-
getDirectory
Returns the directory of thisPersistentMemoryDirectoryConfig
.- Returns:
- the directory
-
setDirectory
Returns thedirectory
of thisPersistentMemoryDirectoryConfig
.- Parameters:
directory
- the directory to set- Throws:
NullPointerException
- ifdirectory
isnull
-
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 settingnumaNode
to -1 on any of the configuredPersistentMemoryDirectoryConfig
instances 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:
true
if the NUMA node is set,false
otherwise
-
equals
-
hashCode
public int hashCode() -
toString
-