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 Modifier and Type Class Description static classRepositorySrv.Client.Factory -
Field Summary
Fields inherited from class org.apache.thrift.TServiceClient
iprot_, oprot_, seqid_ -
Constructor Summary
-
Method Summary
Modifier and Type Method Description Snapshotcheckout(Reference reference)Получить снэпшот конкретной версииlongcommit(long version, Commit commit)Применить изменения к определенной версии.Map<Long,Commit>pull(long version)Map<Long,Commit>pullRange(long after, int limit)Получить новые коммиты следующие за указанной версиейSnapshotrecvCheckout()longrecvCommit()Map<Long,Commit>recvPull()Map<Long,Commit>recvPullRange()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, getOutputProtocol, receiveBase, sendBase, sendBaseOneway
-
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.TExceptionDescription 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.TExceptionDescription 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
-