Package org.apache.kafka.clients.admin
Class LogDirDescription
- java.lang.Object
-
- org.apache.kafka.clients.admin.LogDirDescription
-
public class LogDirDescription extends Object
A description of a log directory on a particular broker.
-
-
Constructor Summary
Constructors Constructor Description LogDirDescription(ApiException error, Map<TopicPartition,ReplicaInfo> replicaInfos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
LogDirDescription
public LogDirDescription(ApiException error, Map<TopicPartition,ReplicaInfo> replicaInfos)
-
-
Method Detail
-
error
public ApiException error()
Returns `ApiException` if the log directory is offline or an error occurred, otherwise returns null.- KafkaStorageException - The log directory is offline.
- UnknownServerException - The server experienced an unexpected error when processing the request.
-
replicaInfos
public Map<TopicPartition,ReplicaInfo> replicaInfos()
A map from topic partition to replica information for that partition in this log directory.
-
-