com.taobao.metamorphosis.server.transaction.store
类 Checkpoint
java.lang.Object
com.taobao.metamorphosis.server.transaction.store.Checkpoint
- 所有已实现的接口:
- Closeable
public class Checkpoint
- extends Object
- implements Closeable
checkpoint文件存储
- 作者:
- boyan(boyan@taobao.com)
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Checkpoint
public Checkpoint(String path,
int maxCheckpoints)
throws Exception
- 抛出:
Exception
getRecentCheckpoint
public JournalLocation getRecentCheckpoint()
- 返回最近的checkpoint
- 返回:
check
public void check(JournalLocation location)
throws Exception
- 新设置checkpoint,如果没有改变则不存入磁盘,否则产生一个新的checkpoint文件
- 参数:
location
-
- 抛出:
Exception
close
public void close()
throws IOException
- 指定者:
- 接口
Closeable
中的 close
- 抛出:
IOException
Copyright © 2010–2013. All rights reserved.