Package org.vitrivr.cottontail.grpc
Class TXNGrpc.TXNImplBase
- java.lang.Object
-
- org.vitrivr.cottontail.grpc.TXNGrpc.TXNImplBase
-
- All Implemented Interfaces:
io.grpc.BindableService
- Enclosing class:
- TXNGrpc
public abstract static class TXNGrpc.TXNImplBase extends java.lang.Object implements io.grpc.BindableServiceEndpoint for transaction management.
-
-
Constructor Summary
Constructors Constructor Description TXNImplBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<CottontailGrpc.Metadata> responseObserver)Starts a new transaction.io.grpc.ServerServiceDefinitionbindService()voidcommit(CottontailGrpc.Metadata request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Performs a commit on a transaction.voidkill(CottontailGrpc.Metadata request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Kills and performs a rollback on an ongoing transaction.voidlistLocks(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<CottontailGrpc.QueryResponseMessage> responseObserver)Lists all active locks on database objects.voidlistTransactions(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<CottontailGrpc.QueryResponseMessage> responseObserver)Lists all active transactions.voidrollback(CottontailGrpc.Metadata request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Performs a rollback on a transaction and aborts it.
-
-
-
Method Detail
-
begin
public void begin(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<CottontailGrpc.Metadata> responseObserver)Starts a new transaction.
-
commit
public void commit(CottontailGrpc.Metadata request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Performs a commit on a transaction. This method blocks if a query is currently executed.
-
rollback
public void rollback(CottontailGrpc.Metadata request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Performs a rollback on a transaction and aborts it. This method blocks if a query is currently executed.
-
kill
public void kill(CottontailGrpc.Metadata request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Kills and performs a rollback on an ongoing transaction. This method can even be used when a query is being executed.
-
listTransactions
public void listTransactions(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<CottontailGrpc.QueryResponseMessage> responseObserver)Lists all active transactions.
-
listLocks
public void listLocks(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver<CottontailGrpc.QueryResponseMessage> responseObserver)Lists all active locks on database objects.
-
bindService
public final io.grpc.ServerServiceDefinition bindService()
- Specified by:
bindServicein interfaceio.grpc.BindableService
-
-