Package com.hazelcast.config
Class DiskTierConfig
java.lang.Object
com.hazelcast.config.DiskTierConfig
- All Implemented Interfaces:
DataSerializable,IdentifiedDataSerializable
Disk tier configuration of Tiered-Store.
- Since:
- 5.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanintReturns type identifier for this class.Returns the device name of this disk tier.intReturns DataSerializableFactory factory ID for this class.final inthashCode()booleanReturns whether disk tier is enabled on the related tiered-store.voidReads fields from the input streamsetDeviceName(String deviceName) Sets the device name for this disk tier.setEnabled(boolean enabled) Sets whether disk tier is enabled on the related tiered-store.toString()voidWrites object fields to output stream
-
Constructor Details
-
DiskTierConfig
public DiskTierConfig() -
DiskTierConfig
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether disk tier is enabled on the related tiered-store.- Returns:
- true if disk tier is enabled, false otherwise.
-
setEnabled
Sets whether disk tier is enabled on the related tiered-store.- Parameters:
enabled- enabled parameter.- Returns:
- this DiskTierConfig
-
getDeviceName
Returns the device name of this disk tier.- Returns:
- device name.
-
setDeviceName
Sets the device name for this disk tier.- Parameters:
deviceName- device name.- Returns:
- this DiskTierConfig
-
writeData
Description copied from interface:DataSerializableWrites object fields to output stream- Specified by:
writeDatain interfaceDataSerializable- Parameters:
out- output- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializableReads fields from the input stream- Specified by:
readDatain interfaceDataSerializable- Parameters:
in- input- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the input stream has been closed.
-
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializableReturns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryIdin interfaceIdentifiedDataSerializable- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializableReturns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassIdin interfaceIdentifiedDataSerializable- Returns:
- type ID
-
equals
-
hashCode
public final int hashCode() -
toString
-