Package org.apache.pulsar.client.admin
Interface Transactions
-
public interface Transactions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransactionCoordinatorInternalStatsgetCoordinatorInternalStats(int coordinatorId, boolean metadata)Get transaction coordinator internal stats.java.util.concurrent.CompletableFuture<TransactionCoordinatorInternalStats>getCoordinatorInternalStatsAsync(int coordinatorId, boolean metadata)Get transaction coordinator internal stats.java.util.Map<java.lang.Integer,TransactionCoordinatorStats>getCoordinatorStats()Get transaction metadataStore stats.java.util.concurrent.CompletableFuture<java.util.Map<java.lang.Integer,TransactionCoordinatorStats>>getCoordinatorStatsAsync()Get transaction metadataStore stats.TransactionCoordinatorStatsgetCoordinatorStatsById(int coordinatorId)Get transaction metadataStore stats.java.util.concurrent.CompletableFuture<TransactionCoordinatorStats>getCoordinatorStatsByIdAsync(int coordinatorId)Get transaction metadataStore stats.TransactionPendingAckInternalStatsgetPendingAckInternalStats(java.lang.String topic, java.lang.String subName, boolean metadata)Get pending ack internal stats.java.util.concurrent.CompletableFuture<TransactionPendingAckInternalStats>getPendingAckInternalStatsAsync(java.lang.String topic, java.lang.String subName, boolean metadata)Get pending ack internal stats.TransactionPendingAckStatsgetPendingAckStats(java.lang.String topic, java.lang.String subName)Get transaction pending ack stats.java.util.concurrent.CompletableFuture<TransactionPendingAckStats>getPendingAckStatsAsync(java.lang.String topic, java.lang.String subName)Get transaction pending ack stats.java.util.Map<java.lang.String,TransactionMetadata>getSlowTransactions(long timeout, java.util.concurrent.TimeUnit timeUnit)Get slow transactions.java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,TransactionMetadata>>getSlowTransactionsAsync(long timeout, java.util.concurrent.TimeUnit timeUnit)Get slow transactions.java.util.Map<java.lang.String,TransactionMetadata>getSlowTransactionsByCoordinatorId(java.lang.Integer coordinatorId, long timeout, java.util.concurrent.TimeUnit timeUnit)Get slow transactions by coordinator id.java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,TransactionMetadata>>getSlowTransactionsByCoordinatorIdAsync(java.lang.Integer coordinatorId, long timeout, java.util.concurrent.TimeUnit timeUnit)Get slow transactions by coordinator id.TransactionBufferStatsgetTransactionBufferStats(java.lang.String topic)Get transaction buffer stats.java.util.concurrent.CompletableFuture<TransactionBufferStats>getTransactionBufferStatsAsync(java.lang.String topic)Get transaction buffer stats.TransactionInBufferStatsgetTransactionInBufferStats(org.apache.pulsar.client.api.transaction.TxnID txnID, java.lang.String topic)Get transaction in buffer stats.java.util.concurrent.CompletableFuture<TransactionInBufferStats>getTransactionInBufferStatsAsync(org.apache.pulsar.client.api.transaction.TxnID txnID, java.lang.String topic)Get transaction in buffer stats.TransactionInPendingAckStatsgetTransactionInPendingAckStats(org.apache.pulsar.client.api.transaction.TxnID txnID, java.lang.String topic, java.lang.String subName)Get transaction in pending ack stats.java.util.concurrent.CompletableFuture<TransactionInPendingAckStats>getTransactionInPendingAckStatsAsync(org.apache.pulsar.client.api.transaction.TxnID txnID, java.lang.String topic, java.lang.String subName)Get transaction in pending ack stats.TransactionMetadatagetTransactionMetadata(org.apache.pulsar.client.api.transaction.TxnID txnID)Get transaction metadata.java.util.concurrent.CompletableFuture<TransactionMetadata>getTransactionMetadataAsync(org.apache.pulsar.client.api.transaction.TxnID txnID)Get transaction metadata.
-
-
-
Method Detail
-
getCoordinatorStatsByIdAsync
java.util.concurrent.CompletableFuture<TransactionCoordinatorStats> getCoordinatorStatsByIdAsync(int coordinatorId)
Get transaction metadataStore stats.- Parameters:
coordinatorId- the id which get transaction coordinator- Returns:
- the future of transaction metadata store stats.
-
getCoordinatorStatsById
TransactionCoordinatorStats getCoordinatorStatsById(int coordinatorId) throws PulsarAdminException
Get transaction metadataStore stats.- Parameters:
coordinatorId- the id which get transaction coordinator- Returns:
- the transaction metadata store stats.
- Throws:
PulsarAdminException
-
getCoordinatorStatsAsync
java.util.concurrent.CompletableFuture<java.util.Map<java.lang.Integer,TransactionCoordinatorStats>> getCoordinatorStatsAsync()
Get transaction metadataStore stats.- Returns:
- the map future of transaction metadata store stats.
-
getCoordinatorStats
java.util.Map<java.lang.Integer,TransactionCoordinatorStats> getCoordinatorStats() throws PulsarAdminException
Get transaction metadataStore stats.- Returns:
- the map of transaction metadata store stats.
- Throws:
PulsarAdminException
-
getTransactionInBufferStatsAsync
java.util.concurrent.CompletableFuture<TransactionInBufferStats> getTransactionInBufferStatsAsync(org.apache.pulsar.client.api.transaction.TxnID txnID, java.lang.String topic)
Get transaction in buffer stats.- Parameters:
txnID- the txnIdtopic- the produce topic- Returns:
- the future stats of transaction in buffer.
-
getTransactionInBufferStats
TransactionInBufferStats getTransactionInBufferStats(org.apache.pulsar.client.api.transaction.TxnID txnID, java.lang.String topic) throws PulsarAdminException
Get transaction in buffer stats.- Parameters:
txnID- the txnIdtopic- the produce topic- Returns:
- the stats of transaction in buffer.
- Throws:
PulsarAdminException
-
getTransactionInPendingAckStatsAsync
java.util.concurrent.CompletableFuture<TransactionInPendingAckStats> getTransactionInPendingAckStatsAsync(org.apache.pulsar.client.api.transaction.TxnID txnID, java.lang.String topic, java.lang.String subName)
Get transaction in pending ack stats.- Parameters:
txnID- the txnIdtopic- the ack topicsubName- the subscription name of this transaction ack- Returns:
- the future stats of transaction in pending ack.
-
getTransactionInPendingAckStats
TransactionInPendingAckStats getTransactionInPendingAckStats(org.apache.pulsar.client.api.transaction.TxnID txnID, java.lang.String topic, java.lang.String subName) throws PulsarAdminException
Get transaction in pending ack stats.- Parameters:
txnID- the txnIdtopic- the ack topicsubName- the subscription name of this transaction ack- Returns:
- the stats of transaction in pending ack.
- Throws:
PulsarAdminException
-
getTransactionMetadataAsync
java.util.concurrent.CompletableFuture<TransactionMetadata> getTransactionMetadataAsync(org.apache.pulsar.client.api.transaction.TxnID txnID)
Get transaction metadata.- Parameters:
txnID- the ID of this transaction- Returns:
- the future metadata of this transaction.
-
getTransactionMetadata
TransactionMetadata getTransactionMetadata(org.apache.pulsar.client.api.transaction.TxnID txnID) throws PulsarAdminException
Get transaction metadata.- Parameters:
txnID- the ID of this transaction- Returns:
- the metadata of this transaction.
- Throws:
PulsarAdminException
-
getTransactionBufferStatsAsync
java.util.concurrent.CompletableFuture<TransactionBufferStats> getTransactionBufferStatsAsync(java.lang.String topic)
Get transaction buffer stats.- Parameters:
topic- the topic of getting transaction buffer stats- Returns:
- the future stats of transaction buffer in topic.
-
getTransactionBufferStats
TransactionBufferStats getTransactionBufferStats(java.lang.String topic) throws PulsarAdminException
Get transaction buffer stats.- Parameters:
topic- the topic of getting transaction buffer stats- Returns:
- the stats of transaction buffer in topic.
- Throws:
PulsarAdminException
-
getPendingAckStatsAsync
java.util.concurrent.CompletableFuture<TransactionPendingAckStats> getPendingAckStatsAsync(java.lang.String topic, java.lang.String subName)
Get transaction pending ack stats.- Parameters:
topic- the topic of this transaction pending ack statssubName- the subscription name of this transaction pending ack stats- Returns:
- the stats of transaction pending ack.
-
getPendingAckStats
TransactionPendingAckStats getPendingAckStats(java.lang.String topic, java.lang.String subName) throws PulsarAdminException
Get transaction pending ack stats.- Parameters:
topic- the topic of this transaction pending ack statssubName- the subscription name of this transaction pending ack stats- Returns:
- the stats of transaction pending ack.
- Throws:
PulsarAdminException
-
getSlowTransactionsByCoordinatorIdAsync
java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,TransactionMetadata>> getSlowTransactionsByCoordinatorIdAsync(java.lang.Integer coordinatorId, long timeout, java.util.concurrent.TimeUnit timeUnit)
Get slow transactions by coordinator id.- Parameters:
coordinatorId- the coordinator id of getting slow transaction status.timeout- the timeouttimeUnit- the timeout timeUnit- Returns:
- the future metadata of slow transactions.
-
getSlowTransactionsByCoordinatorId
java.util.Map<java.lang.String,TransactionMetadata> getSlowTransactionsByCoordinatorId(java.lang.Integer coordinatorId, long timeout, java.util.concurrent.TimeUnit timeUnit) throws PulsarAdminException
Get slow transactions by coordinator id.- Parameters:
coordinatorId- the coordinator id of getting slow transaction status.timeout- the timeouttimeUnit- the timeout timeUnit- Returns:
- the metadata of slow transactions.
- Throws:
PulsarAdminException
-
getSlowTransactionsAsync
java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,TransactionMetadata>> getSlowTransactionsAsync(long timeout, java.util.concurrent.TimeUnit timeUnit)
Get slow transactions.- Parameters:
timeout- the timeouttimeUnit- the timeout timeUnit- Returns:
- the future metadata of slow transactions.
-
getSlowTransactions
java.util.Map<java.lang.String,TransactionMetadata> getSlowTransactions(long timeout, java.util.concurrent.TimeUnit timeUnit) throws PulsarAdminException
Get slow transactions.- Parameters:
timeout- the timeouttimeUnit- the timeout timeUnit- Returns:
- the metadata of slow transactions.
- Throws:
PulsarAdminException
-
getCoordinatorInternalStatsAsync
java.util.concurrent.CompletableFuture<TransactionCoordinatorInternalStats> getCoordinatorInternalStatsAsync(int coordinatorId, boolean metadata)
Get transaction coordinator internal stats.- Parameters:
coordinatorId- the coordinator IDmetadata- is get ledger metadata- Returns:
- the future internal stats of this coordinator
-
getCoordinatorInternalStats
TransactionCoordinatorInternalStats getCoordinatorInternalStats(int coordinatorId, boolean metadata) throws PulsarAdminException
Get transaction coordinator internal stats.- Parameters:
coordinatorId- the coordinator IDmetadata- whether to obtain ledger metadata- Returns:
- the internal stats of this coordinator
- Throws:
PulsarAdminException
-
getPendingAckInternalStatsAsync
java.util.concurrent.CompletableFuture<TransactionPendingAckInternalStats> getPendingAckInternalStatsAsync(java.lang.String topic, java.lang.String subName, boolean metadata)
Get pending ack internal stats.- Parameters:
topic- the topic of get pending ack internal statssubName- the subscription name of this pending ackmetadata- whether to obtain ledger metadata- Returns:
- the future internal stats of pending ack
-
getPendingAckInternalStats
TransactionPendingAckInternalStats getPendingAckInternalStats(java.lang.String topic, java.lang.String subName, boolean metadata) throws PulsarAdminException
Get pending ack internal stats.- Parameters:
topic- the topic of get pending ack internal statssubName- the subscription name of this pending ackmetadata- whether to obtain ledger metadata- Returns:
- the internal stats of pending ack
- Throws:
PulsarAdminException
-
-