/*
* Copyright © 2015 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package co.cask.tephra.distributed.thrift;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSet;
import java.util.EnumSet;
import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class TTransactionServer {
public interface Iface {
public TTransaction startLong() throws org.apache.thrift.TException;
public TTransaction startShort() throws org.apache.thrift.TException;
public TTransaction startShortTimeout(int timeout) throws org.apache.thrift.TException;
public TBoolean canCommitTx(TTransaction tx, Set<ByteBuffer> changes) throws TTransactionNotInProgressException, org.apache.thrift.TException;
public TBoolean commitTx(TTransaction tx) throws TTransactionNotInProgressException, org.apache.thrift.TException;
public void abortTx(TTransaction tx) throws org.apache.thrift.TException;
public boolean invalidateTx(long tx) throws org.apache.thrift.TException;
public ByteBuffer getSnapshot() throws TTransactionCouldNotTakeSnapshotException, org.apache.thrift.TException;
public void resetState() throws org.apache.thrift.TException;
public String status() throws org.apache.thrift.TException;
public TBoolean truncateInvalidTx(Set<Long> txns) throws org.apache.thrift.TException;
public TBoolean truncateInvalidTxBefore(long time) throws TInvalidTruncateTimeException, org.apache.thrift.TException;
public int invalidTxSize() throws org.apache.thrift.TException;
public TTransaction checkpoint(TTransaction tx) throws TTransactionNotInProgressException, org.apache.thrift.TException;
}
public interface AsyncIface {
public void startLong(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.startLong_call> resultHandler) throws org.apache.thrift.TException;
public void startShort(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.startShort_call> resultHandler) throws org.apache.thrift.TException;
public void startShortTimeout(int timeout, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.startShortTimeout_call> resultHandler) throws org.apache.thrift.TException;
public void canCommitTx(TTransaction tx, Set<ByteBuffer> changes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.canCommitTx_call> resultHandler) throws org.apache.thrift.TException;
public void commitTx(TTransaction tx, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.commitTx_call> resultHandler) throws org.apache.thrift.TException;
public void abortTx(TTransaction tx, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.abortTx_call> resultHandler) throws org.apache.thrift.TException;
public void invalidateTx(long tx, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.invalidateTx_call> resultHandler) throws org.apache.thrift.TException;
public void getSnapshot(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapshot_call> resultHandler) throws org.apache.thrift.TException;
public void resetState(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.resetState_call> resultHandler) throws org.apache.thrift.TException;
public void status(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.status_call> resultHandler) throws org.apache.thrift.TException;
public void truncateInvalidTx(Set<Long> txns, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.truncateInvalidTx_call> resultHandler) throws org.apache.thrift.TException;
public void truncateInvalidTxBefore(long time, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.truncateInvalidTxBefore_call> resultHandler) throws org.apache.thrift.TException;
public void invalidTxSize(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.invalidTxSize_call> resultHandler) throws org.apache.thrift.TException;
public void checkpoint(TTransaction tx, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.checkpoint_call> resultHandler) throws org.apache.thrift.TException;
}
public static class Client extends org.apache.thrift.TServiceClient implements Iface {
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
public Factory() {}
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
return new Client(prot);
}
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
return new Client(iprot, oprot);
}
}
public Client(org.apache.thrift.protocol.TProtocol prot)
{
super(prot, prot);
}
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
super(iprot, oprot);
}
public TTransaction startLong() throws org.apache.thrift.TException
{
send_startLong();
return recv_startLong();
}
public void send_startLong() throws org.apache.thrift.TException
{
startLong_args args = new startLong_args();
sendBase("startLong", args);
}
public TTransaction recv_startLong() throws org.apache.thrift.TException
{
startLong_result result = new startLong_result();
receiveBase(result, "startLong");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "startLong failed: unknown result");
}
public TTransaction startShort() throws org.apache.thrift.TException
{
send_startShort();
return recv_startShort();
}
public void send_startShort() throws org.apache.thrift.TException
{
startShort_args args = new startShort_args();
sendBase("startShort", args);
}
public TTransaction recv_startShort() throws org.apache.thrift.TException
{
startShort_result result = new startShort_result();
receiveBase(result, "startShort");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "startShort failed: unknown result");
}
public TTransaction startShortTimeout(int timeout) throws org.apache.thrift.TException
{
send_startShortTimeout(timeout);
return recv_startShortTimeout();
}
public void send_startShortTimeout(int timeout) throws org.apache.thrift.TException
{
startShortTimeout_args args = new startShortTimeout_args();
args.setTimeout(timeout);
sendBase("startShortTimeout", args);
}
public TTransaction recv_startShortTimeout() throws org.apache.thrift.TException
{
startShortTimeout_re
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
该项目为Apache HBase的事务处理设计,采用Java和Shell语言编写,包含235个文件,其中Java源文件208个,XML配置文件14个,PNG图片文件3个,RST文件2个,Git忽略文件1个,YAML文件1个,KEYS文件1个,LICENSE文件1个,bin目录下的tephra文件1个,以及Shell脚本文件1个。
资源推荐
资源详情
资源评论
收起资源包目录
基于Java和Shell语言的Apache HBase事务处理设计源码 (238个子文件)
.gitignore 322B
TTransactionServer.java 361KB
TransactionAwareHTableTest.java 67KB
TransactionAwareHTableTest.java 66KB
TransactionAwareHTableTest.java 66KB
TransactionAwareHTableTest.java 66KB
TransactionAwareHTableTest.java 66KB
TransactionManager.java 54KB
TTransaction.java 45KB
TransactionProcessorTest.java 30KB
TransactionProcessorTest.java 29KB
TransactionProcessorTest.java 25KB
TransactionProcessorTest.java 25KB
TransactionProcessorTest.java 25KB
TransactionAwareHTable.java 24KB
TransactionAwareHTable.java 24KB
TransactionAwareHTable.java 24KB
TransactionAwareHTable.java 23KB
TransactionContextTest.java 23KB
TephraZKClientService.java 22KB
TransactionAwareHTable.java 21KB
AbstractTransactionStateStorageTest.java 21KB
TThreadedSelectorServerWithFix.java 21KB
TransactionExecutorTest.java 20KB
HDFSTransactionStateStorage.java 17KB
SnapshotCodecTest.java 17KB
TransactionVisibilityFilterTest.java 16KB
TransactionVisibilityFilterTest.java 16KB
TransactionVisibilityFilterTest.java 16KB
TransactionVisibilityFilterTest.java 16KB
TransactionVisibilityFilterTest.java 16KB
TransactionServiceClient.java 15KB
TransactionProcessor.java 14KB
TransactionProcessor.java 14KB
TransactionProcessor.java 14KB
TransactionProcessor.java 14KB
VisibilityFenceTest.java 14KB
TransactionProcessor.java 14KB
TxConstants.java 14KB
TransactionManagerTest.java 13KB
TransactionContext.java 13KB
TTransactionCouldNotTakeSnapshotException.java 13KB
TTransactionNotInProgressException.java 12KB
TInvalidTruncateTimeException.java 12KB
BalanceBooks.java 12KB
TransactionVisibilityFilter.java 12KB
TransactionVisibilityFilter.java 12KB
TransactionVisibilityFilter.java 12KB
TransactionVisibilityFilter.java 12KB
TransactionVisibilityFilter.java 12KB
TBoolean.java 12KB
LocalFileTransactionStateStorage.java 12KB
TransactionEdit.java 12KB
Transaction.java 11KB
TransactionSystemTest.java 11KB
TransactionEditCodecs.java 11KB
ThriftRPCServer.java 10KB
LocalTransactionStateStorageTest.java 10KB
HDFSUtil.java 9KB
ThriftTransactionServerTest.java 8KB
TransactionSnapshot.java 8KB
DefaultSnapshotCodec.java 8KB
TransactionTest.java 7KB
HDFSTransactionLogTest.java 7KB
AbstractClientProvider.java 7KB
AbstractTransactionLog.java 7KB
TxUtils.java 7KB
TransactionServiceThriftClient.java 7KB
HBaseVersion.java 7KB
PooledClientProviderTest.java 7KB
TransactionAdminTest.java 7KB
AbstractTransactionAwareTable.java 7KB
SecondaryIndexTable.java 6KB
SecondaryIndexTable.java 6KB
SecondaryIndexTable.java 6KB
SecondaryIndexTable.java 6KB
SecondaryIndexTable.java 6KB
ElasticPool.java 6KB
CellSkipFilterTest.java 6KB
CellSkipFilterTest.java 6KB
CellSkipFilterTest.java 6KB
CellSkipFilterTest.java 6KB
CellSkipFilterTest.java 6KB
CommitMarkerCodecTest.java 6KB
VisibilityFence.java 6KB
TransactionStateCache.java 6KB
TransactionServiceThriftHandler.java 6KB
TransactionSystemClient.java 6KB
TransactionEditTest.java 5KB
TransactionService.java 5KB
TransactionAdmin.java 5KB
InMemoryTransactionStateStorage.java 5KB
HDFSTransactionLog.java 5KB
SnapshotCodecProvider.java 5KB
TransactionExecutor.java 5KB
CellSkipFilter.java 5KB
CellSkipFilter.java 5KB
CellSkipFilter.java 5KB
DefaultTransactionExecutor.java 5KB
DetachedTxSystemClient.java 5KB
共 238 条
- 1
- 2
- 3
资源评论
wjs2024
- 粉丝: 2205
- 资源: 5449
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功