|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nhncorp.neptune.fs.PipeBasedChangeLogFileSystem
public class PipeBasedChangeLogFileSystem
Changelog 처리를 위한 파일시스템 클라이언트 현재 구성은 Neptune에서 자체 개발된 고속의 append 가능한 change log용 파일시스템을 별도로 구축하여 사용하고 있다.
| Field Summary |
|---|
| Fields inherited from interface com.nhncorp.neptune.fs.ChangeLogFileSystemIF |
|---|
ADD_OK |
| 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 레코드를 저장한 다음에 호출된다. |
void |
delete(java.lang.String tabletName)
특정 Tablet의 모든 change log 파일을 삭제한다. |
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)
|
java.lang.String |
getTestHandlerKey()
|
void |
init(ChangeLogFileSystemIF systemIF,
NConfiguration conf,
TabletServerIF tabletServer,
com.nhncorp.pleiades.client.LockService lockService)
|
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 |
| Method Detail |
|---|
public void open(java.lang.String tabletName,
boolean writable)
throws java.io.IOException
ChangeLogFileSystemIF
open 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 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 finishAdding(java.lang.String tabletName,
java.lang.String txId)
throws java.io.IOException
finishAdding in interface ChangeLogFileSystemIFjava.io.IOException
public void close(java.lang.String tabletName,
boolean writable)
throws java.io.IOException
ChangeLogFileSystemIF
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 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 boolean exists(java.lang.String tabletName)
throws java.io.IOException
ChangeLogFileSystemIF
exists in interface ChangeLogFileSystemIFjava.io.IOException
public void format()
throws java.io.IOException
ChangeLogFileSystemIF
format 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 void init(ChangeLogFileSystemIF systemIF,
NConfiguration conf,
TabletServerIF tabletServer,
com.nhncorp.pleiades.client.LockService lockService)
throws java.io.IOException
init in interface ChangeLogFileSystemIFjava.io.IOException
public ChangeLog nextChangeLog(java.lang.String tabletName)
throws java.io.IOException
ChangeLogFileSystemIF
nextChangeLog in interface ChangeLogFileSystemIFjava.io.IOException
public ChangeLogStatus verifyChangelog(java.lang.String tabletName)
throws java.io.IOException
ChangeLogFileSystemIF
verifyChangelog in interface ChangeLogFileSystemIFjava.io.IOExceptionpublic java.lang.String getTestHandlerKey()
getTestHandlerKey in interface ProxyObject
public java.util.List<ChangeLogStatus> getChangeLogStatus(java.lang.String tabletName)
throws java.io.IOException
getChangeLogStatus in interface ChangeLogFileSystemIFjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||