|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nhncorp.neptune.fs.old.FileBasedChangeLogFileSystem
public class FileBasedChangeLogFileSystem
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
LOG
|
static int |
LOG_TX_TIMEOUT
|
| Fields inherited from interface com.nhncorp.neptune.fs.ChangeLogFileSystemIF |
|---|
ADD_OK |
| Constructor Summary | |
|---|---|
FileBasedChangeLogFileSystem()
|
|
| Method Summary | |
|---|---|
boolean |
addChangeLog(java.lang.String tabletName,
java.lang.String txId,
int seq,
ChangeLog changeLog)
ChangeLog를 저장한다. |
void |
close(java.lang.String tabletName,
boolean writable)
Changelog server에 장애가 있는지 확인하여 장애가 있는 경우 kill 시키고, log file image 정보에서 해당 목록을 삭제한다. |
void |
delete(java.lang.String tabletName)
특정 Tablet의 모든 change log 파일을 삭제한다. |
void |
deleteAll()
|
void |
endMinorCompaction(java.lang.String tabletName)
MinorCompaction 수행 종료될 때 Changelog 쪽으로 MinorCompaction 종료 상황을 알려주는 역할 |
boolean |
exists(java.lang.String tabletName)
change log 파일의 존재 여부를 반환한다. |
void |
finishAdding(java.lang.String tabletName,
java.lang.String txId)
|
void |
format()
관리하는 모든 정보를 삭제한다. |
java.net.InetSocketAddress[] |
getChangeLogServerInfo(java.lang.String tabletName)
해당 Tablet의 log를 관리하는 서버를 반환한다. |
java.util.List<ChangeLogStatus> |
getChangeLogStatus(java.lang.String tabletName)
|
TabletServerIF |
getTabletServer()
|
java.lang.String |
getTestHandlerKey()
|
void |
init(ChangeLogFileSystemIF proxyObject,
NConfiguration conf,
TabletServerIF tabletServer,
com.nhncorp.pleiades.client.LockService lockService)
|
java.lang.String[] |
list()
|
ChangeLog |
nextChangeLog(java.lang.String tabletName)
read 모드로 오픈된 ChangeLog 저장소로부터 ChangeLog 레코드를 읽는다. |
void |
open(java.lang.String tabletName,
boolean writable)
ChangeLog를 저장하기 위해 오픈한다. |
void |
open(java.lang.String hostName,
java.lang.String tabletName,
boolean writable)
|
void |
startMinorCompaction(java.lang.String tabletName)
MinorCompaction 수행 시작할 때 Changelog 쪽으로 MinorCompaction 시작 상황을 알려주는 역할 |
ChangeLogStatus |
verifyChangelog(java.lang.String tabletName)
여러개의 복사본들 사이에 동기화가 되어 있는지 확인한다. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOG
public static final int LOG_TX_TIMEOUT
| Constructor Detail |
|---|
public FileBasedChangeLogFileSystem()
| Method Detail |
|---|
public void init(ChangeLogFileSystemIF proxyObject,
NConfiguration conf,
TabletServerIF tabletServer,
com.nhncorp.pleiades.client.LockService lockService)
throws java.io.IOException
init in interface ChangeLogFileSystemIFjava.io.IOException
public boolean addChangeLog(java.lang.String tabletName,
java.lang.String txId,
int seq,
ChangeLog changeLog)
throws java.io.IOException
ChangeLogFileSystemIF
addChangeLog in interface ChangeLogFileSystemIFjava.io.IOException
public void close(java.lang.String tabletName,
boolean writable)
throws java.io.IOException
close in interface ChangeLogFileSystemIFjava.io.IOException
public void delete(java.lang.String tabletName)
throws java.io.IOException
ChangeLogFileSystemIF
delete in interface ChangeLogFileSystemIFjava.io.IOException
public boolean exists(java.lang.String tabletName)
throws java.io.IOException
ChangeLogFileSystemIF
exists in interface ChangeLogFileSystemIFjava.io.IOException
public java.lang.String[] list()
throws java.io.IOException
java.io.IOException
public ChangeLog nextChangeLog(java.lang.String tabletName)
throws java.io.IOException
ChangeLogFileSystemIF
nextChangeLog in interface ChangeLogFileSystemIFjava.io.IOException
public void open(java.lang.String hostName,
java.lang.String tabletName,
boolean writable)
throws java.io.IOException
open in interface ChangeLogFileSystemIFjava.io.IOException
public void open(java.lang.String tabletName,
boolean writable)
throws java.io.IOException
ChangeLogFileSystemIF
open in interface ChangeLogFileSystemIFjava.io.IOException
public java.net.InetSocketAddress[] getChangeLogServerInfo(java.lang.String tabletName)
throws java.io.IOException
ChangeLogFileSystemIF
getChangeLogServerInfo in interface ChangeLogFileSystemIFjava.io.IOException
public ChangeLogStatus verifyChangelog(java.lang.String tabletName)
throws java.io.IOException
ChangeLogFileSystemIF
verifyChangelog in interface ChangeLogFileSystemIFjava.io.IOException
public java.util.List<ChangeLogStatus> getChangeLogStatus(java.lang.String tabletName)
throws java.io.IOException
getChangeLogStatus in interface ChangeLogFileSystemIFjava.io.IOExceptionpublic TabletServerIF getTabletServer()
public java.lang.String getTestHandlerKey()
getTestHandlerKey in interface ProxyObject
public void deleteAll()
throws java.io.IOException
java.io.IOException
public void format()
throws java.io.IOException
ChangeLogFileSystemIF
format in interface ChangeLogFileSystemIFjava.io.IOException
public void startMinorCompaction(java.lang.String tabletName)
throws java.io.IOException
ChangeLogFileSystemIF
startMinorCompaction in interface ChangeLogFileSystemIFjava.io.IOException
public void endMinorCompaction(java.lang.String tabletName)
throws java.io.IOException
ChangeLogFileSystemIF
endMinorCompaction in interface ChangeLogFileSystemIFjava.io.IOException
public void finishAdding(java.lang.String tabletName,
java.lang.String txId)
throws java.io.IOException
finishAdding in interface ChangeLogFileSystemIFjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||