Package dev.vality.machinegun.stateproc
Class AutomatonSrv.Client
java.lang.Object
org.apache.thrift.TServiceClient
dev.vality.machinegun.stateproc.AutomatonSrv.Client
- All Implemented Interfaces:
AutomatonSrv.Iface
- Enclosing class:
- AutomatonSrv
public static class AutomatonSrv.Client extends org.apache.thrift.TServiceClient implements AutomatonSrv.Iface
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAutomatonSrv.Client.Factory -
Field Summary
Fields inherited from class org.apache.thrift.TServiceClient
iprot_, oprot_, seqid_ -
Constructor Summary
-
Method Summary
Modifier and Type Method Description Valuecall(MachineDescriptor desc, Value a)Совершить вызов и дождаться на него ответа.MachinegetMachine(MachineDescriptor desc)Метод возвращает _машину_ (Machine)voidmodernize(MachineDescriptor desc)Принудительно обновить представления данных указанной машины.ValuerecvCall()MachinerecvGetMachine()voidrecvModernize()voidrecvRemove()ValuerecvRepair()voidrecvSimpleRepair()voidrecvStart()voidremove(String ns, String id)Удалить машину вместе со всеми её событиями.Valuerepair(MachineDescriptor desc, Value a)Попытаться перевести определённый процесс автомата из ошибочного состояния в штатное и, получив результат операции, продолжить его исполнение.voidsendCall(MachineDescriptor desc, Value a)voidsendGetMachine(MachineDescriptor desc)voidsendModernize(MachineDescriptor desc)voidsendRemove(String ns, String id)voidsendRepair(MachineDescriptor desc, Value a)voidsendSimpleRepair(String ns, Reference ref)voidsendStart(String ns, String id, Value a)voidsimpleRepair(String ns, Reference ref)Попытаться перевести определённый процесс автомата из ошибочного состояния в предыдущее штатное и продолжить его исполнение.voidstart(String ns, String id, Value a)Запустить новый процесс автомата с заданным ID.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
-
start
public void start(String ns, String id, Value a) throws NamespaceNotFound, MachineAlreadyExists, MachineFailed, org.apache.thrift.TExceptionDescription copied from interface:AutomatonSrv.IfaceЗапустить новый процесс автомата с заданным ID. Если машина с таким ID уже существует, то кинется иключение MachineAlreadyExists.- Specified by:
startin interfaceAutomatonSrv.Iface- Throws:
NamespaceNotFoundMachineAlreadyExistsMachineFailedorg.apache.thrift.TException
-
sendStart
- Throws:
org.apache.thrift.TException
-
recvStart
public void recvStart() throws NamespaceNotFound, MachineAlreadyExists, MachineFailed, org.apache.thrift.TException- Throws:
NamespaceNotFoundMachineAlreadyExistsMachineFailedorg.apache.thrift.TException
-
repair
public Value repair(MachineDescriptor desc, Value a) throws NamespaceNotFound, MachineNotFound, MachineFailed, MachineAlreadyWorking, RepairFailed, org.apache.thrift.TExceptionDescription copied from interface:AutomatonSrv.IfaceПопытаться перевести определённый процесс автомата из ошибочного состояния в штатное и, получив результат операции, продолжить его исполнение.- Specified by:
repairin interfaceAutomatonSrv.Iface- Throws:
NamespaceNotFoundMachineNotFoundMachineFailedMachineAlreadyWorkingRepairFailedorg.apache.thrift.TException
-
sendRepair
- Throws:
org.apache.thrift.TException
-
recvRepair
public Value recvRepair() throws NamespaceNotFound, MachineNotFound, MachineFailed, MachineAlreadyWorking, RepairFailed, org.apache.thrift.TException- Throws:
NamespaceNotFoundMachineNotFoundMachineFailedMachineAlreadyWorkingRepairFailedorg.apache.thrift.TException
-
simpleRepair
public void simpleRepair(String ns, Reference ref) throws NamespaceNotFound, MachineNotFound, MachineFailed, MachineAlreadyWorking, org.apache.thrift.TExceptionDescription copied from interface:AutomatonSrv.IfaceПопытаться перевести определённый процесс автомата из ошибочного состояния в предыдущее штатное и продолжить его исполнение.- Specified by:
simpleRepairin interfaceAutomatonSrv.Iface- Throws:
NamespaceNotFoundMachineNotFoundMachineFailedMachineAlreadyWorkingorg.apache.thrift.TException
-
sendSimpleRepair
- Throws:
org.apache.thrift.TException
-
recvSimpleRepair
public void recvSimpleRepair() throws NamespaceNotFound, MachineNotFound, MachineFailed, MachineAlreadyWorking, org.apache.thrift.TException- Throws:
NamespaceNotFoundMachineNotFoundMachineFailedMachineAlreadyWorkingorg.apache.thrift.TException
-
call
public Value call(MachineDescriptor desc, Value a) throws NamespaceNotFound, MachineNotFound, MachineFailed, org.apache.thrift.TExceptionDescription copied from interface:AutomatonSrv.IfaceСовершить вызов и дождаться на него ответа.- Specified by:
callin interfaceAutomatonSrv.Iface- Throws:
NamespaceNotFoundMachineNotFoundMachineFailedorg.apache.thrift.TException
-
sendCall
- Throws:
org.apache.thrift.TException
-
recvCall
public Value recvCall() throws NamespaceNotFound, MachineNotFound, MachineFailed, org.apache.thrift.TException- Throws:
NamespaceNotFoundMachineNotFoundMachineFailedorg.apache.thrift.TException
-
getMachine
public Machine getMachine(MachineDescriptor desc) throws NamespaceNotFound, MachineNotFound, EventNotFound, org.apache.thrift.TExceptionDescription copied from interface:AutomatonSrv.IfaceМетод возвращает _машину_ (Machine)- Specified by:
getMachinein interfaceAutomatonSrv.Iface- Throws:
NamespaceNotFoundMachineNotFoundEventNotFoundorg.apache.thrift.TException
-
sendGetMachine
- Throws:
org.apache.thrift.TException
-
recvGetMachine
public Machine recvGetMachine() throws NamespaceNotFound, MachineNotFound, EventNotFound, org.apache.thrift.TException- Throws:
NamespaceNotFoundMachineNotFoundEventNotFoundorg.apache.thrift.TException
-
remove
public void remove(String ns, String id) throws NamespaceNotFound, MachineNotFound, org.apache.thrift.TExceptionDescription copied from interface:AutomatonSrv.IfaceУдалить машину вместе со всеми её событиями. Опубликованные в event sink события остаются нетронутыми.- Specified by:
removein interfaceAutomatonSrv.Iface- Throws:
NamespaceNotFoundMachineNotFoundorg.apache.thrift.TException
-
sendRemove
- Throws:
org.apache.thrift.TException
-
recvRemove
- Throws:
NamespaceNotFoundMachineNotFoundorg.apache.thrift.TException
-
modernize
public void modernize(MachineDescriptor desc) throws NamespaceNotFound, MachineNotFound, org.apache.thrift.TExceptionDescription copied from interface:AutomatonSrv.IfaceПринудительно обновить представления данных указанной машины. В частности: представления событий.- Specified by:
modernizein interfaceAutomatonSrv.Iface- Throws:
NamespaceNotFoundMachineNotFoundorg.apache.thrift.TException
-
sendModernize
- Throws:
org.apache.thrift.TException
-
recvModernize
- Throws:
NamespaceNotFoundMachineNotFoundorg.apache.thrift.TException
-