public class CertifierReplica extends java.rmi.server.UnicastRemoteObject implements PeerInterface, ValidationService, ValidationService_thrift.Iface, PeerInterface_thrift.Iface
| Modifier and Type | Field and Description |
|---|---|
static int |
clientPort |
static java.util.Map<java.lang.Integer,java.util.concurrent.LinkedBlockingQueue<PeerInterface_thrift.Client>> |
peerThreadPools |
static int |
peerThriftPoolSize |
java.io.PrintStream |
ps |
static int |
serverPort |
| Constructor and Description |
|---|
CertifierReplica(java.lang.String validationReplicationConfigFile,
int serverId,
java.lang.String configFile) |
| Modifier and Type | Method and Description |
|---|---|
PeerResponse_thrift |
abort_peer_thrift(long startTS,
long transactionId,
boolean bReleaseLock) |
PeerResponse |
abort(long startTS,
long transactionId,
boolean bReleaseLock) |
java.util.Map<java.lang.String,ValidateResponse_thrift> |
batchValidate_thrift(java.util.List<ValidationRequest_thrift> requests) |
void |
checkPoint() |
PeerResponse_thrift |
commit_peer_thrift(long startTS,
long commitTS,
long transactionId) |
PeerResponse |
commit(long startTS,
long commitTS,
long transactionId) |
java.util.List<java.lang.Long> |
getCtsSts_peer_thrift() |
long[] |
getCtsSts() |
long |
getGTS() |
long |
getStableTS() |
long |
getSTS_peer_thrift() |
long |
getSTS_thrift() |
long |
getSTS() |
long |
getTransactionId() |
static void |
main(java.lang.String[] args) |
long |
reportCompletion_peer_thrift(long commitTS) |
long |
reportCompletion_thrift(long commitTS) |
long |
reportCompletion(long commitTS) |
long |
reportCompletion(java.util.Vector<java.lang.Long> commitTSList) |
long |
reportCompletionBatch_peer_thrift(java.util.List<java.lang.Long> commitTS) |
long |
reportCompletionBatch_thrift(java.util.List<java.lang.Long> commitTSList) |
void |
setStableTS(long stableTS) |
void |
setTransactionId(long transactionId) |
PeerResponse_thrift |
validate_peer_thrift(long startTS,
RWSetInfo_thrift rwSet,
long transactionId) |
ValidateResponse_thrift |
validate_thrift(long startTS,
RWSetInfo_thrift rwSet) |
ValidateResponse |
validate(long startTS,
RWSetInfo rwSet,
LoadInfo loadInfo) |
PeerResponse |
validate(long startTS,
RWSetInfo rwSet,
long transactionId) |
java.util.Hashtable<java.lang.String,ValidateResponse> |
validateBatch(java.util.Queue<ValidationRequest> requestBatch,
LoadInfo myLoad) |
clone, exportObject, exportObject, exportObject, unexportObjectpublic static java.util.Map<java.lang.Integer,java.util.concurrent.LinkedBlockingQueue<PeerInterface_thrift.Client>> peerThreadPools
public static int peerThriftPoolSize
public static int clientPort
public static int serverPort
public java.io.PrintStream ps
public CertifierReplica(java.lang.String validationReplicationConfigFile,
int serverId,
java.lang.String configFile)
throws java.rmi.RemoteException,
java.io.IOException
java.rmi.RemoteExceptionjava.io.IOExceptionpublic long getStableTS()
public void setStableTS(long stableTS)
public long getTransactionId()
public void setTransactionId(long transactionId)
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic long[] getCtsSts()
throws java.rmi.RemoteException
getCtsSts in interface PeerInterfacejava.rmi.RemoteExceptionpublic PeerResponse validate(long startTS, RWSetInfo rwSet, long transactionId) throws java.rmi.RemoteException
validate in interface PeerInterfacejava.rmi.RemoteExceptionpublic long getGTS()
throws java.rmi.RemoteException
getGTS in interface PeerInterfacejava.rmi.RemoteExceptionpublic long getSTS()
throws java.rmi.RemoteException
getSTS in interface ValidationServicegetSTS in interface PeerInterfacejava.rmi.RemoteExceptionpublic PeerResponse commit(long startTS, long commitTS, long transactionId) throws java.rmi.RemoteException
commit in interface PeerInterfacejava.rmi.RemoteExceptionpublic PeerResponse abort(long startTS, long transactionId, boolean bReleaseLock) throws java.rmi.RemoteException
abort in interface PeerInterfacejava.rmi.RemoteExceptionpublic ValidateResponse validate(long startTS, RWSetInfo rwSet, LoadInfo loadInfo) throws java.rmi.RemoteException
validate in interface ValidationServicejava.rmi.RemoteExceptionpublic long reportCompletion(long commitTS)
throws java.rmi.RemoteException
reportCompletion in interface ValidationServicereportCompletion in interface PeerInterfacejava.rmi.RemoteExceptionpublic long reportCompletion(java.util.Vector<java.lang.Long> commitTSList)
throws java.rmi.RemoteException
reportCompletion in interface ValidationServicereportCompletion in interface PeerInterfacejava.rmi.RemoteExceptionpublic java.util.Hashtable<java.lang.String,ValidateResponse> validateBatch(java.util.Queue<ValidationRequest> requestBatch, LoadInfo myLoad) throws java.rmi.RemoteException
validateBatch in interface ValidationServicejava.rmi.RemoteExceptionpublic void checkPoint()
throws java.rmi.RemoteException
checkPoint in interface ValidationServicejava.rmi.RemoteExceptionpublic long getSTS_thrift()
getSTS_thrift in interface ValidationService_thrift.Ifacepublic ValidateResponse_thrift validate_thrift(long startTS, RWSetInfo_thrift rwSet) throws org.apache.thrift.TException
validate_thrift in interface ValidationService_thrift.Ifaceorg.apache.thrift.TExceptionpublic long reportCompletion_thrift(long commitTS)
reportCompletion_thrift in interface ValidationService_thrift.Ifacepublic long reportCompletionBatch_thrift(java.util.List<java.lang.Long> commitTSList)
reportCompletionBatch_thrift in interface ValidationService_thrift.Ifacepublic java.util.Map<java.lang.String,ValidateResponse_thrift> batchValidate_thrift(java.util.List<ValidationRequest_thrift> requests)
batchValidate_thrift in interface ValidationService_thrift.Ifacepublic long reportCompletion_peer_thrift(long commitTS)
throws org.apache.thrift.TException
reportCompletion_peer_thrift in interface PeerInterface_thrift.Ifaceorg.apache.thrift.TExceptionpublic long reportCompletionBatch_peer_thrift(java.util.List<java.lang.Long> commitTS)
throws org.apache.thrift.TException
reportCompletionBatch_peer_thrift in interface PeerInterface_thrift.Ifaceorg.apache.thrift.TExceptionpublic PeerResponse_thrift validate_peer_thrift(long startTS, RWSetInfo_thrift rwSet, long transactionId) throws org.apache.thrift.TException
validate_peer_thrift in interface PeerInterface_thrift.Ifaceorg.apache.thrift.TExceptionpublic long getSTS_peer_thrift()
throws org.apache.thrift.TException
getSTS_peer_thrift in interface PeerInterface_thrift.Ifaceorg.apache.thrift.TExceptionpublic java.util.List<java.lang.Long> getCtsSts_peer_thrift()
throws org.apache.thrift.TException
getCtsSts_peer_thrift in interface PeerInterface_thrift.Ifaceorg.apache.thrift.TExceptionpublic PeerResponse_thrift commit_peer_thrift(long startTS, long commitTS, long transactionId) throws org.apache.thrift.TException
commit_peer_thrift in interface PeerInterface_thrift.Ifaceorg.apache.thrift.TExceptionpublic PeerResponse_thrift abort_peer_thrift(long startTS, long transactionId, boolean bReleaseLock) throws org.apache.thrift.TException
abort_peer_thrift in interface PeerInterface_thrift.Ifaceorg.apache.thrift.TException