public class LogDirDescription extends Object
| Constructor and Description |
|---|
LogDirDescription(ApiException error, Map<TopicPartition,ReplicaInfo> replicaInfos) |
LogDirDescription(ApiException error, Map<TopicPartition,ReplicaInfo> replicaInfos, long totalBytes, long usableBytes) |
| Modifier and Type | Method and Description |
|---|---|
ApiException | error()Returns `ApiException` if the log directory is offline or an error occurred, otherwise returns null. |
Map<TopicPartition,ReplicaInfo> | replicaInfos()A map from topic partition to replica information for that partition in this log directory. |
String | toString() |
OptionalLong | totalBytes()The total size of the volume this log directory is on or empty if the broker did not return a value. |
OptionalLong | usableBytes()The usable size on the volume this log directory is on or empty if the broker did not return a value. |
public LogDirDescription(ApiException error, Map<TopicPartition,ReplicaInfo> replicaInfos)
public LogDirDescription(ApiException error, Map<TopicPartition,ReplicaInfo> replicaInfos, long totalBytes, long usableBytes)
public ApiException error()
public Map<TopicPartition,ReplicaInfo> replicaInfos()
public OptionalLong totalBytes()
public OptionalLong usableBytes()