public final class LocalDeviceConfig extends Object implements DeviceConfig
| Modifier and Type | Field and Description | 
|---|---|
static int | 
DEFAULT_BLOCK_SIZE_IN_BYTES
Default block/sector size in bytes. 
 | 
static Capacity | 
DEFAULT_CAPACITY
Default device capacity. 
 | 
static String | 
DEFAULT_DEVICE_BASE_DIR
Default base directory for the device. 
 | 
static String | 
DEFAULT_DEVICE_NAME
Default device name. 
 | 
static int | 
DEFAULT_READ_IO_THREAD_COUNT
Default read IO thread count. 
 | 
static int | 
DEFAULT_WRITE_IO_THREAD_COUNT
Default write IO thread count. 
 | 
| Constructor and Description | 
|---|
LocalDeviceConfig()  | 
LocalDeviceConfig(LocalDeviceConfig localDeviceConfig)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object o)  | 
File | 
getBaseDir()
Base directory for this device. 
 | 
int | 
getBlockSize()
Returns disk block/sector size in bytes. 
 | 
Capacity | 
getCapacity()
Returns the capacity of this device. 
 | 
String | 
getName()
Returns the device name. 
 | 
int | 
getReadIOThreadCount()
Returns the read IO thread count; 
 | 
int | 
getWriteIOThreadCount()
Returns the write IO thread count 
 | 
int | 
hashCode()  | 
boolean | 
isLocal()
Returns  
true since this is a configuration for a local device. | 
LocalDeviceConfig | 
setBaseDir(File baseDir)
Sets the base directory for this device. 
 | 
LocalDeviceConfig | 
setBlockSize(int blockSize)
Sets the disk block/sector size in bytes. 
 | 
LocalDeviceConfig | 
setCapacity(Capacity capacity)
Sets the capacity of this device. 
 | 
LocalDeviceConfig | 
setName(String name)
Sets the device name. 
 | 
LocalDeviceConfig | 
setReadIOThreadCount(int readIOThreadCount)
Sets the read IO thread count. 
 | 
LocalDeviceConfig | 
setWriteIOThreadCount(int writeIOThreadCount)
Sets the write IO thread count. 
 | 
String | 
toString()  | 
public static final String DEFAULT_DEVICE_NAME
public static final String DEFAULT_DEVICE_BASE_DIR
public static final int DEFAULT_BLOCK_SIZE_IN_BYTES
public static final int DEFAULT_READ_IO_THREAD_COUNT
public static final int DEFAULT_WRITE_IO_THREAD_COUNT
public static final Capacity DEFAULT_CAPACITY
public LocalDeviceConfig()
public LocalDeviceConfig(LocalDeviceConfig localDeviceConfig)
public String getName()
getName in interface NamedConfigpublic LocalDeviceConfig setName(@Nonnull String name)
setName in interface NamedConfigname - device namepublic File getBaseDir()
public LocalDeviceConfig setBaseDir(@Nonnull File baseDir)
baseDir - base directory.public Capacity getCapacity()
getCapacity in interface DeviceConfigpublic LocalDeviceConfig setCapacity(Capacity capacity)
capacity - capacity.public int getBlockSize()
public LocalDeviceConfig setBlockSize(int blockSize)
blockSize - block size.public int getReadIOThreadCount()
public LocalDeviceConfig setReadIOThreadCount(int readIOThreadCount)
readIOThreadCount - read IO thread countpublic int getWriteIOThreadCount()
public LocalDeviceConfig setWriteIOThreadCount(int writeIOThreadCount)
writeIOThreadCount - write IO thread countpublic boolean isLocal()
true since this is a configuration for a local device.isLocal in interface DeviceConfigCopyright © 2023 Hazelcast, Inc.. All rights reserved.