Package dev.vality.damsel.accounter
Class AccounterSrv.Client
java.lang.Object
org.apache.thrift.TServiceClient
dev.vality.damsel.accounter.AccounterSrv.Client
- All Implemented Interfaces:
AccounterSrv.Iface
- Enclosing class:
- AccounterSrv
public static class AccounterSrv.Client
extends org.apache.thrift.TServiceClient
implements AccounterSrv.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 TypeMethodDescriptioncommitPlan(PostingPlan plan) longcreateAccount(AccountPrototype prototype) longgetAccountBalance(long id, String to_time) longgetAccountBalanceDiff(long id, String from_time, String to_time) getAccountByID(long id) hold(PostingPlanChange plan_change) longlonglongrecvHold()rollbackPlan(PostingPlan plan) voidsendCommitPlan(PostingPlan plan) voidsendCreateAccount(AccountPrototype prototype) voidsendGetAccountBalance(long id, String to_time) voidsendGetAccountBalanceDiff(long id, String from_time, String to_time) voidsendGetAccountByID(long id) voidsendGetPlan(String id) voidsendHold(PostingPlanChange plan_change) voidsendRollbackPlan(PostingPlan plan) 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
-
hold
public PostingPlanLog hold(PostingPlanChange plan_change) throws InvalidPostingParams, InvalidRequest, org.apache.thrift.TException - Specified by:
holdin interfaceAccounterSrv.Iface- Throws:
InvalidPostingParamsInvalidRequestorg.apache.thrift.TException
-
sendHold
- Throws:
org.apache.thrift.TException
-
recvHold
public PostingPlanLog recvHold() throws InvalidPostingParams, InvalidRequest, org.apache.thrift.TException- Throws:
InvalidPostingParamsInvalidRequestorg.apache.thrift.TException
-
commitPlan
public PostingPlanLog commitPlan(PostingPlan plan) throws InvalidPostingParams, InvalidRequest, org.apache.thrift.TException - Specified by:
commitPlanin interfaceAccounterSrv.Iface- Throws:
InvalidPostingParamsInvalidRequestorg.apache.thrift.TException
-
sendCommitPlan
- Throws:
org.apache.thrift.TException
-
recvCommitPlan
public PostingPlanLog recvCommitPlan() throws InvalidPostingParams, InvalidRequest, org.apache.thrift.TException- Throws:
InvalidPostingParamsInvalidRequestorg.apache.thrift.TException
-
rollbackPlan
public PostingPlanLog rollbackPlan(PostingPlan plan) throws InvalidPostingParams, InvalidRequest, org.apache.thrift.TException - Specified by:
rollbackPlanin interfaceAccounterSrv.Iface- Throws:
InvalidPostingParamsInvalidRequestorg.apache.thrift.TException
-
sendRollbackPlan
- Throws:
org.apache.thrift.TException
-
recvRollbackPlan
public PostingPlanLog recvRollbackPlan() throws InvalidPostingParams, InvalidRequest, org.apache.thrift.TException- Throws:
InvalidPostingParamsInvalidRequestorg.apache.thrift.TException
-
getPlan
- Specified by:
getPlanin interfaceAccounterSrv.Iface- Throws:
PlanNotFoundorg.apache.thrift.TException
-
sendGetPlan
- Throws:
org.apache.thrift.TException
-
recvGetPlan
- Throws:
PlanNotFoundorg.apache.thrift.TException
-
getAccountByID
- Specified by:
getAccountByIDin interfaceAccounterSrv.Iface- Throws:
AccountNotFoundorg.apache.thrift.TException
-
sendGetAccountByID
public void sendGetAccountByID(long id) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
recvGetAccountByID
- Throws:
AccountNotFoundorg.apache.thrift.TException
-
createAccount
- Specified by:
createAccountin interfaceAccounterSrv.Iface- Throws:
org.apache.thrift.TException
-
sendCreateAccount
- Throws:
org.apache.thrift.TException
-
recvCreateAccount
public long recvCreateAccount() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
getAccountBalance
public long getAccountBalance(long id, String to_time) throws AccountNotFound, org.apache.thrift.TException - Specified by:
getAccountBalancein interfaceAccounterSrv.Iface- Throws:
AccountNotFoundorg.apache.thrift.TException
-
sendGetAccountBalance
- Throws:
org.apache.thrift.TException
-
recvGetAccountBalance
- Throws:
AccountNotFoundorg.apache.thrift.TException
-
getAccountBalanceDiff
public long getAccountBalanceDiff(long id, String from_time, String to_time) throws AccountNotFound, org.apache.thrift.TException - Specified by:
getAccountBalanceDiffin interfaceAccounterSrv.Iface- Throws:
AccountNotFoundorg.apache.thrift.TException
-
sendGetAccountBalanceDiff
public void sendGetAccountBalanceDiff(long id, String from_time, String to_time) throws org.apache.thrift.TException - Throws:
org.apache.thrift.TException
-
recvGetAccountBalanceDiff
- Throws:
AccountNotFoundorg.apache.thrift.TException
-