Package com.hazelcast.config
Class PersistentMemoryDirectoryConfig
- java.lang.Object
-
- com.hazelcast.config.PersistentMemoryDirectoryConfig
-
public class PersistentMemoryDirectoryConfig extends java.lang.Object
Configuration class for directories that persistent memories are mounted at.
-
-
Constructor Summary
Constructors Constructor Description PersistentMemoryDirectoryConfig(PersistentMemoryDirectoryConfig directoryConfig)
Constructs an instance by copying the providedPersistentMemoryDirectoryConfig
.PersistentMemoryDirectoryConfig(java.lang.String directory)
Creates an instance with thedirectory
specified.PersistentMemoryDirectoryConfig(java.lang.String directory, int numaNode)
Creates an instance with thedirectory
and NUMA node specified.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getDirectory()
Returns the directory of thisPersistentMemoryDirectoryConfig
.int
getNumaNode()
Returns the NUMA node the persistent memory mounted to the given directory is attached to.int
hashCode()
boolean
isNumaNodeSet()
Returns if the NUMA node for the given persistent memory directory is set.void
setDirectory(java.lang.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.java.lang.String
toString()
-
-
-
Constructor Detail
-
PersistentMemoryDirectoryConfig
public PersistentMemoryDirectoryConfig(@Nonnull java.lang.String directory)
Creates an instance with thedirectory
specified.- Parameters:
directory
- The directory where the persistent memory is mounted at- Throws:
java.lang.NullPointerException
- ifdirectory
isnull
-
PersistentMemoryDirectoryConfig
public PersistentMemoryDirectoryConfig(@Nonnull java.lang.String directory, int numaNode)
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:
java.lang.NullPointerException
- ifdirectory
isnull
-
PersistentMemoryDirectoryConfig
public PersistentMemoryDirectoryConfig(@Nonnull PersistentMemoryDirectoryConfig directoryConfig)
Constructs an instance by copying the providedPersistentMemoryDirectoryConfig
.- Parameters:
directoryConfig
- The configuration to copy- Throws:
java.lang.NullPointerException
- ifdirectoryConfig
isnull
-
-
Method Detail
-
getDirectory
@Nonnull public java.lang.String getDirectory()
Returns the directory of thisPersistentMemoryDirectoryConfig
.- Returns:
- the directory
-
setDirectory
public void setDirectory(@Nonnull java.lang.String directory)
Returns thedirectory
of thisPersistentMemoryDirectoryConfig
.- Parameters:
directory
- the directory to set- Throws:
java.lang.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
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-