Package dev.vality.damsel.domain_config
Class RepositorySrv.Client
java.lang.Object
org.apache.thrift.TServiceClient
dev.vality.damsel.domain_config.RepositorySrv.Client
- All Implemented Interfaces:
RepositorySrv.Iface
- Enclosing class:
- RepositorySrv
public static class RepositorySrv.Client
extends org.apache.thrift.TServiceClient
implements RepositorySrv.Iface
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.thrift.TServiceClient
interceptor, iprot_, oprot_, seqid_ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionПолучить снэпшот конкретной версииlongПрименить изменения к определенной версии.pull(long version) pullRange(long after, int limit) Получить новые коммиты следующие за указанной версиейlongrecvPull()voidsendCheckout(Reference reference) voidsendCommit(long version, Commit commit) voidsendPull(long version) voidsendPullRange(long after, int limit) Methods inherited from class org.apache.thrift.TServiceClient
getInputProtocol, getInterceptor, getOutputProtocol, receiveBase, sendBase, sendBaseOneway, setInterceptor
-
Constructor Details
-
Client
public Client(org.apache.thrift.protocol.TProtocol prot) -
Client
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot)
-
-
Method Details
-
commit
public long commit(long version, Commit commit) throws VersionNotFound, OperationConflict, OperationInvalid, ObsoleteCommitVersion, org.apache.thrift.TException Description copied from interface:RepositorySrv.IfaceПрименить изменения к определенной версии. Возвращает следующую версию- Specified by:
commitin interfaceRepositorySrv.Iface- Throws:
VersionNotFoundOperationConflictOperationInvalidObsoleteCommitVersionorg.apache.thrift.TException
-
sendCommit
- Throws:
org.apache.thrift.TException
-
recvCommit
public long recvCommit() throws VersionNotFound, OperationConflict, OperationInvalid, ObsoleteCommitVersion, org.apache.thrift.TException- Throws:
VersionNotFoundOperationConflictOperationInvalidObsoleteCommitVersionorg.apache.thrift.TException
-
checkout
Description copied from interface:RepositorySrv.IfaceПолучить снэпшот конкретной версии- Specified by:
checkoutin interfaceRepositorySrv.Iface- Throws:
VersionNotFoundorg.apache.thrift.TException
-
sendCheckout
- Throws:
org.apache.thrift.TException
-
recvCheckout
- Throws:
VersionNotFoundorg.apache.thrift.TException
-
pullRange
public Map<Long,Commit> pullRange(long after, int limit) throws VersionNotFound, org.apache.thrift.TException Description copied from interface:RepositorySrv.IfaceПолучить новые коммиты следующие за указанной версией- Specified by:
pullRangein interfaceRepositorySrv.Iface- Throws:
VersionNotFoundorg.apache.thrift.TException
-
sendPullRange
public void sendPullRange(long after, int limit) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
recvPullRange
- Throws:
VersionNotFoundorg.apache.thrift.TException
-
pull
- Specified by:
pullin interfaceRepositorySrv.Iface- Throws:
VersionNotFoundorg.apache.thrift.TException
-
sendPull
public void sendPull(long version) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
recvPull
- Throws:
VersionNotFoundorg.apache.thrift.TException
-