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
FieldsModifier and TypeFieldDescriptionstatic final intDefault block/sector size in bytes.static final CapacityDefault device capacity.static final StringDefault base directory for the device.static final StringDefault device name.static final intDefault read IO thread count.static final intDefault write IO thread count. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanBase directory for this device.intReturns disk block/sector size in bytes.Returns the capacity of this device.getName()Returns the device name.intReturns the read IO thread count;intReturns the write IO thread countinthashCode()booleanisLocal()Returnstruesincethisis 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:
getNamein interfaceNamedConfig
-
setName
Sets the device name.- Specified by:
setNamein 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:
getCapacityin 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()Returnstruesincethisis a configuration for a local device.- Specified by:
isLocalin interfaceDeviceConfig
-
equals
-
hashCode
public int hashCode() -
toString
-