Class Transactions
java.lang.Object
org.apache.pulsar.broker.web.PulsarWebResource
org.apache.pulsar.broker.admin.AdminResource
org.apache.pulsar.broker.admin.impl.TransactionsBase
org.apache.pulsar.broker.admin.v3.Transactions
@Path("/transactions")
@Produces("application/json")
@Consumes("application/json")
public class Transactions
extends TransactionsBase
-
Field Summary
Fields inherited from class org.apache.pulsar.broker.admin.AdminResource
namespaceName, topicNameFields inherited from class org.apache.pulsar.broker.web.PulsarWebResource
httpRequest, servletContext, uri -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabortTransaction(javax.ws.rs.container.AsyncResponse asyncResponse, boolean authoritative, String mostSigBits, String leastSigBits) voidgetCoordinatorInternalStats(javax.ws.rs.container.AsyncResponse asyncResponse, boolean authoritative, String coordinatorId, boolean metadata) voidgetCoordinatorStats(javax.ws.rs.container.AsyncResponse asyncResponse, boolean authoritative, Integer coordinatorId) voidgetPendingAckInternalStats(javax.ws.rs.container.AsyncResponse asyncResponse, boolean authoritative, String tenant, String namespace, String encodedTopic, String subName, boolean metadata) voidgetPendingAckStats(javax.ws.rs.container.AsyncResponse asyncResponse, boolean authoritative, String tenant, String namespace, String encodedTopic, String subName, boolean lowWaterMarks) voidgetPositionStatsInPendingAck(javax.ws.rs.container.AsyncResponse asyncResponse, boolean authoritative, String tenant, String namespace, String encodedTopic, String subName, Long ledgerId, Long entryId, Integer batchIndex) voidgetSlowTransactions(javax.ws.rs.container.AsyncResponse asyncResponse, boolean authoritative, String timeout, Integer coordinatorId) voidgetTransactionBufferInternalStats(javax.ws.rs.container.AsyncResponse asyncResponse, boolean authoritative, String tenant, String namespace, String encodedTopic, boolean metadata) voidgetTransactionBufferStats(javax.ws.rs.container.AsyncResponse asyncResponse, boolean authoritative, String tenant, String namespace, String encodedTopic, boolean lowWaterMarks, boolean segmentStats) voidgetTransactionInBufferStats(javax.ws.rs.container.AsyncResponse asyncResponse, boolean authoritative, String tenant, String namespace, String encodedTopic, String mostSigBits, String leastSigBits) voidgetTransactionInPendingAckStats(javax.ws.rs.container.AsyncResponse asyncResponse, boolean authoritative, String tenant, String namespace, String encodedTopic, String mostSigBits, String leastSigBits, String subName) voidgetTransactionMetadata(javax.ws.rs.container.AsyncResponse asyncResponse, boolean authoritative, String mostSigBits, String leastSigBits) voidlistCoordinators(javax.ws.rs.container.AsyncResponse asyncResponse) voidscaleTransactionCoordinators(javax.ws.rs.container.AsyncResponse asyncResponse, int replicas) Methods inherited from class org.apache.pulsar.broker.admin.impl.TransactionsBase
checkTransactionCoordinatorEnabled, getExistingPersistentTopicAsync, internalAbortTransaction, internalGetCoordinatorInternalStats, internalGetCoordinatorStats, internalGetPendingAckInternalStats, internalGetPendingAckStats, internalGetPositionStatsPendingAckStats, internalGetSlowTransactions, internalGetTransactionBufferInternalStats, internalGetTransactionBufferStats, internalGetTransactionInBufferStats, internalGetTransactionInPendingAckStats, internalGetTransactionMetadata, internalListCoordinators, internalScaleTransactionCoordinators, validateTopicNameMethods inherited from class org.apache.pulsar.broker.admin.AdminResource
autoSubscriptionCreationOverride, bookKeeper, checkArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, clusters, clustersAsync, dispatchRate, domain, filterSystemTopic, getAuthorizationService, getNamespacePolicies, getNamespacePolicies, getNamespacePoliciesAsync, getNamespaceReplicatedClustersAsync, getPartitionedTopicList, getPartitionedTopicListAsync, getPartitionedTopicMetadata, getPartitionedTopicMetadataAsync, getPartitionedTopicNotFoundErrorMessage, getSchemaCompatibilityStrategyAsync, getSchemaCompatibilityStrategyAsyncWithoutAuth, getSubNotFoundErrorMessage, getTopicNotFoundErrorMessage, getTopicPartitionList, getTopicPoliciesAsyncWithRetry, getTopicPoliciesAsyncWithRetry, internalCheckTopicExists, internalCreatePartitionedTopic, internalCreatePartitionedTopic, internalCreatePartitionedTopicToReplicatedClustersInBackground, isLeaderBroker, isManagedLedgerNotFoundException, isNot307And404Exception, isNotFoundException, isRedirectException, namespaceBacklogQuota, objectReader, objectWriter, replicatorDispatchRate, setServletContext, subscribeRate, subscriptionDispatchRate, tryCreatePartitionsAsync, validateAdminAccessForTenant, validateAndGetWorkerService, validateBundleOwnership, validateClusterExists, validateEntryFilters, validateGlobalNamespaceOwnership, validateNamespaceName, validateNamespaceName, validateOffloadPolicies, validatePartitionedTopicMetadataAsync, validatePartitionedTopicName, validatePersistencePolicies, validatePersistentTopicName, validatePersistentTopicName, validatePoliciesReadOnlyAccess, validatePoliciesReadOnlyAccessAsync, validateSuperUserAccess, validateTopicNameMethods inherited from class org.apache.pulsar.broker.web.PulsarWebResource
authParams, bookieResources, canUpdateCluster, checkAuthorizationAsync, checkLocalOrGetPeerReplicationCluster, checkLocalOrGetPeerReplicationCluster, clientAppId, clientAuthData, clusterResources, config, dynamicConfigurationResources, getClusterDataIfDifferentCluster, getLocalPolicies, getPulsarResources, hasActiveNamespace, hasSuperUserAccess, isBundleOwnedByAnyBroker, isClientAuthenticated, isLeaderBroker, isRequestHttps, loadBalanceResources, maybeRedirectToBroker, namespaceIsolationPolicies, namespaceResources, originalPrincipal, pulsar, resourceGroupResources, resumeAsyncResponseExceptionally, setPulsar, splitPath, sync, tenantResources, topicResources, validateAdminAccessForTenant, validateAdminAccessForTenantAsync, validateAdminAccessForTenantAsync, validateBundleOwnership, validateBundleOwnershipAsync, validateClusterForTenant, validateClusterForTenantAsync, validateClusterOwnership, validateClusterOwnershipAsync, validateGlobalNamespaceOwnership, validateGlobalNamespaceOwnershipAsync, validateNamespaceBundleOwnership, validateNamespaceBundleOwnershipAsync, validateNamespaceBundleRange, validateNamespaceOperation, validateNamespaceOperationAsync, validateNamespacePolicyOperation, validateNamespacePolicyOperationAsync, validatePeerClusterConflict, validatePeerClusterConflictAsync, validateSuperUserAccessAsync, validateTenantOperation, validateTenantOperationAsync, validateTopicOperationAsync, validateTopicOperationAsync, validateTopicOwnership, validateTopicOwnershipAsync, validateTopicPolicyOperation, validateTopicPolicyOperationAsync
-
Constructor Details
-
Transactions
public Transactions()
-
-
Method Details
-
listCoordinators
@GET @Path("/coordinators") public void listCoordinators(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse) -
getCoordinatorStats
@GET @Path("/coordinatorStats") public void getCoordinatorStats(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @QueryParam("coordinatorId") Integer coordinatorId) -
getTransactionInBufferStats
@GET @Path("/transactionInBufferStats/{tenant}/{namespace}/{topic}/{mostSigBits}/{leastSigBits}") public void getTransactionInBufferStats(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("mostSigBits") String mostSigBits, @PathParam("leastSigBits") String leastSigBits) -
getTransactionInPendingAckStats
@GET @Path("/transactionInPendingAckStats/{tenant}/{namespace}/{topic}/{subName}/{mostSigBits}/{leastSigBits}") public void getTransactionInPendingAckStats(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("mostSigBits") String mostSigBits, @PathParam("leastSigBits") String leastSigBits, @PathParam("subName") String subName) -
getTransactionBufferStats
@GET @Path("/transactionBufferStats/{tenant}/{namespace}/{topic}") public void getTransactionBufferStats(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("lowWaterMarks") @DefaultValue("false") boolean lowWaterMarks, @QueryParam("segmentStats") @DefaultValue("false") boolean segmentStats) -
getPendingAckStats
@GET @Path("/pendingAckStats/{tenant}/{namespace}/{topic}/{subName}") public void getPendingAckStats(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("subName") String subName, @QueryParam("lowWaterMarks") @DefaultValue("false") boolean lowWaterMarks) -
getTransactionMetadata
@GET @Path("/transactionMetadata/{mostSigBits}/{leastSigBits}") public void getTransactionMetadata(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @PathParam("mostSigBits") String mostSigBits, @PathParam("leastSigBits") String leastSigBits) -
getSlowTransactions
@GET @Path("/slowTransactions/{timeout}") public void getSlowTransactions(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @PathParam("timeout") String timeout, @QueryParam("coordinatorId") Integer coordinatorId) -
getCoordinatorInternalStats
@GET @Path("/coordinatorInternalStats/{coordinatorId}") public void getCoordinatorInternalStats(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @PathParam("coordinatorId") String coordinatorId, @QueryParam("metadata") @DefaultValue("false") boolean metadata) -
getPendingAckInternalStats
@GET @Path("/pendingAckInternalStats/{tenant}/{namespace}/{topic}/{subName}") public void getPendingAckInternalStats(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("subName") String subName, @QueryParam("metadata") @DefaultValue("false") boolean metadata) -
getTransactionBufferInternalStats
@GET @Path("/transactionBufferInternalStats/{tenant}/{namespace}/{topic}") public void getTransactionBufferInternalStats(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("metadata") @DefaultValue("false") boolean metadata) -
scaleTransactionCoordinators
@POST @Path("/transactionCoordinator/replicas") public void scaleTransactionCoordinators(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, int replicas) -
getPositionStatsInPendingAck
@GET @Path("/positionStatsInPendingAck/{tenant}/{namespace}/{topic}/{subName}/{ledgerId}/{entryId}") public void getPositionStatsInPendingAck(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("subName") String subName, @PathParam("ledgerId") Long ledgerId, @PathParam("entryId") Long entryId, @QueryParam("batchIndex") Integer batchIndex) -
abortTransaction
@POST @Path("/abortTransaction/{mostSigBits}/{leastSigBits}") public void abortTransaction(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @PathParam("mostSigBits") String mostSigBits, @PathParam("leastSigBits") String leastSigBits)
-