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 TypeMethodDescriptionvoidgetCoordinatorInternalStats(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) voidgetTransactionBufferStats(javax.ws.rs.container.AsyncResponse asyncResponse, boolean authoritative, String tenant, String namespace, String encodedTopic, boolean lowWaterMarks) 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) voidscaleTransactionCoordinators(javax.ws.rs.container.AsyncResponse asyncResponse, int replicas) Methods inherited from class org.apache.pulsar.broker.admin.impl.TransactionsBase
checkTransactionCoordinatorEnabled, getExistingPersistentTopicAsync, internalGetCoordinatorInternalStats, internalGetCoordinatorStats, internalGetPendingAckInternalStats, internalGetPendingAckStats, internalGetPositionStatsPendingAckStats, internalGetSlowTransactions, internalGetTransactionBufferStats, internalGetTransactionInBufferStats, internalGetTransactionInPendingAckStats, internalGetTransactionMetadata, internalScaleTransactionCoordinators, validateTopicNameMethods inherited from class org.apache.pulsar.broker.admin.AdminResource
bookKeeper, checkArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, checkTopicLevelPolicyEnable, clusters, clustersAsync, dispatchRate, domain, fetchPartitionedTopicMetadata, fetchPartitionedTopicMetadataCheckAllowAutoCreation, filterSystemTopic, getNamespacePolicies, getNamespacePolicies, getNamespacePoliciesAsync, getNamespaceReplicatedClusters, getNamespaceReplicatedClustersAsync, getPartitionedTopicList, getPartitionedTopicListAsync, getPartitionedTopicMetadata, getPartitionedTopicMetadataAsync, getPartitionedTopicNotFoundErrorMessage, getSchemaCompatibilityStrategyAsync, getSchemaCompatibilityStrategyAsyncWithoutAuth, getSubNotFoundErrorMessage, getTopicNotFoundErrorMessage, getTopicPartitionList, getTopicPoliciesAsyncWithRetry, getTopicPoliciesAsyncWithRetry, internalCreatePartitionedTopic, internalCreatePartitionedTopic, isLeaderBroker, isManagedLedgerNotFoundException, isNamespaceReplicated, isNotFoundException, isRedirectException, jsonMapper, namespaceBacklogQuota, replicatorDispatchRate, setServletContext, subscribeRate, subscriptionDispatchRate, tryCreateExtendedPartitionsAsync, tryCreatePartitionsAsync, validateAdminAccessForTenant, validateAndGetWorkerService, validateBundleOwnership, validateClusterExists, validateGlobalNamespaceOwnership, validateNamespaceName, validateNamespaceName, validatePartitionedTopicMetadataAsync, validatePartitionedTopicName, validatePersistencePolicies, validatePersistentTopicName, validatePersistentTopicName, validatePoliciesReadOnlyAccess, validatePoliciesReadOnlyAccessAsync, validateSuperUserAccess, validateTopicNameMethods inherited from class org.apache.pulsar.broker.web.PulsarWebResource
bookieResources, canUpdateCluster, checkAuthorizationAsync, checkLocalOrGetPeerReplicationCluster, checkLocalOrGetPeerReplicationCluster, clientAppId, clientAuthData, clusterResources, config, dynamicConfigurationResources, getClusterDataIfDifferentCluster, getLocalPolicies, getPulsarResources, hasActiveNamespace, hasSuperUserAccess, isBundleOwnedByAnyBroker, isClientAuthenticated, isLeaderBroker, isRequestHttps, namespaceIsolationPolicies, namespaceResources, originalPrincipal, pulsar, resourceGroupResources, resumeAsyncResponseExceptionally, setPulsar, splitPath, sync, tenantResources, topicResources, validateAdminAccessForTenant, validateAdminAccessForTenantAsync, validateAdminAccessForTenantAsync, validateBrokerName, validateBundleOwnership, validateBundleOwnershipAsync, validateClusterForTenant, validateClusterForTenantAsync, validateClusterOwnership, validateClusterOwnershipAsync, validateGlobalNamespaceOwnership, validateGlobalNamespaceOwnershipAsync, validateNamespaceBundleOwnership, validateNamespaceBundleOwnershipAsync, validateNamespaceBundleRange, validateNamespaceOperation, validateNamespaceOperationAsync, validateNamespacePolicyOperation, validateNamespacePolicyOperationAsync, validatePeerClusterConflict, validatePeerClusterConflictAsync, validateSuperUserAccessAsync, validateTenantOperation, validateTenantOperationAsync, validateTopicOperation, validateTopicOperation, validateTopicOperationAsync, validateTopicOperationAsync, validateTopicOwnership, validateTopicOwnershipAsync, validateTopicPolicyOperation, validateTopicPolicyOperationAsync
-
Constructor Details
-
Transactions
public Transactions()
-
-
Method Details
-
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) -
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) -
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)
-