Package com.hazelcast.config
Class LocalDeviceConfig
java.lang.Object
com.hazelcast.config.LocalDeviceConfig
- All Implemented Interfaces:
DeviceConfig
,NamedConfig
Local Device configuration for the Tiered-Store.
- Since:
- 5.1
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default block/sector size in bytes.static final Capacity
Default device capacity.static final String
Default base directory for the device.static final String
Default device name.static final int
Default read IO thread count.static final int
Default write IO thread count. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Base directory for this device.int
Returns disk block/sector size in bytes.Returns the capacity of this device.getName()
Returns the device name.int
Returns the read IO thread count;int
Returns the write IO thread countint
hashCode()
boolean
isLocal()
Returnstrue
sincethis
is a configuration for a local device.setBaseDir
(File baseDir) Sets the base directory for this device.setBlockSize
(int blockSize) Sets the disk block/sector size in bytes.setCapacity
(Capacity capacity) Sets the capacity of this device.Sets the device name.setReadIOThreadCount
(int readIOThreadCount) Sets the read IO thread count.setWriteIOThreadCount
(int writeIOThreadCount) Sets the write IO thread count.toString()
-
Field Details
-
DEFAULT_DEVICE_NAME
Default device name.- See Also:
-
DEFAULT_DEVICE_BASE_DIR
Default base directory for the device.- See Also:
-
DEFAULT_BLOCK_SIZE_IN_BYTES
public static final int DEFAULT_BLOCK_SIZE_IN_BYTESDefault block/sector size in bytes.- See Also:
-
DEFAULT_READ_IO_THREAD_COUNT
public static final int DEFAULT_READ_IO_THREAD_COUNTDefault read IO thread count.- See Also:
-
DEFAULT_WRITE_IO_THREAD_COUNT
public static final int DEFAULT_WRITE_IO_THREAD_COUNTDefault write IO thread count.- See Also:
-
DEFAULT_CAPACITY
Default device capacity. It is 256 GB.
-
-
Constructor Details
-
LocalDeviceConfig
public LocalDeviceConfig() -
LocalDeviceConfig
-
-
Method Details
-
getName
Returns the device name.- Specified by:
getName
in interfaceNamedConfig
-
setName
Sets the device name.- Specified by:
setName
in interfaceNamedConfig
- Parameters:
name
- device name- Returns:
- this DeviceConfig
-
getBaseDir
Base directory for this device. Can be an absolute or relative path to the node startup directory. -
setBaseDir
Sets the base directory for this device.- Parameters:
baseDir
- base directory.- Returns:
- this DeviceConfig
-
getCapacity
Returns the capacity of this device.- Specified by:
getCapacity
in interfaceDeviceConfig
- Returns:
- device capacity.
-
setCapacity
Sets the capacity of this device.- Parameters:
capacity
- capacity.- Returns:
- this LocalDeviceConfig
-
getBlockSize
public int getBlockSize()Returns disk block/sector size in bytes.- Returns:
- block size
-
setBlockSize
Sets the disk block/sector size in bytes.- Parameters:
blockSize
- block size.- Returns:
- this DeviceConfig
-
getReadIOThreadCount
public int getReadIOThreadCount()Returns the read IO thread count;- Returns:
- read IO thread count
-
setReadIOThreadCount
Sets the read IO thread count.- Parameters:
readIOThreadCount
- read IO thread count- Returns:
- this DeviceConfig
-
getWriteIOThreadCount
public int getWriteIOThreadCount()Returns the write IO thread count- Returns:
- write IO thread count
-
setWriteIOThreadCount
Sets the write IO thread count.- Parameters:
writeIOThreadCount
- write IO thread count- Returns:
- this DeviceConfig
-
isLocal
public boolean isLocal()Returnstrue
sincethis
is a configuration for a local device.- Specified by:
isLocal
in interfaceDeviceConfig
-
equals
-
hashCode
public int hashCode() -
toString
-