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
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
int
Returns type identifier for this class.Returns the device name of this disk tier.int
Returns DataSerializableFactory factory ID for this class.final int
hashCode()
boolean
Returns whether disk tier is enabled on the related tiered-store.void
Reads 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()
void
Writes 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:DataSerializable
Writes object fields to output stream- Specified by:
writeData
in interfaceDataSerializable
- Parameters:
out
- output- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializable
Reads fields from the input stream- Specified by:
readData
in interfaceDataSerializable
- Parameters:
in
- input- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the input stream has been closed.
-
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializable
Returns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryId
in interfaceIdentifiedDataSerializable
- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializable
Returns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassId
in interfaceIdentifiedDataSerializable
- Returns:
- type ID
-
equals
-
hashCode
public final int hashCode() -
toString
-