C# 클래스 Volante.Impl.ReplicationSlaveDatabaseImpl

상속: DatabaseImpl, ReplicationSlaveDatabase
파일 보기 프로젝트 열기: kjk/volante

공개 프로퍼티들

프로퍼티 타입 설명
LingerTime int
ListenQueueSize int

보호된 프로퍼티들

프로퍼티 타입 설명
acceptor Socket
commit object
done object
file IFile
init object
initialized bool
lck IResource
listening bool
port int
prevIndex int
socket Socket
thread Thread

공개 메소드들

메소드 설명
BeginThreadTransaction ( TransactionMode mode ) : void
Close ( ) : void
EndThreadTransaction ( int maxDelay ) : void
HandleError ( ) : bool

When overriden by base class this method perfroms socket error handling @return true if host should be reconnected and attempt to send data to it should be repeated, false if no more attmpts to communicate with this host should be performed

IsConnected ( ) : bool

Check if socket is connected to the master host @return true if connection between slave and master is sucessfully established

Open ( IFile file, int cacheSizeInBytes ) : void
ReplicationSlaveDatabaseImpl ( int port ) : System
WaitForModification ( ) : void

Wait until database is modified by master This method blocks current thread until master node commits trasanction and this transanction is completely delivered to this slave node

run ( ) : void

보호된 메소드들

메소드 설명
WaitInitializationCompletion ( ) : void
isDirty ( ) : bool

비공개 메소드들

메소드 설명
connect ( ) : void
hangup ( ) : void

메소드 상세

BeginThreadTransaction() 공개 메소드

public BeginThreadTransaction ( TransactionMode mode ) : void
mode TransactionMode
리턴 void

Close() 공개 메소드

public Close ( ) : void
리턴 void

EndThreadTransaction() 공개 메소드

public EndThreadTransaction ( int maxDelay ) : void
maxDelay int
리턴 void

HandleError() 공개 메소드

When overriden by base class this method perfroms socket error handling @return true if host should be reconnected and attempt to send data to it should be repeated, false if no more attmpts to communicate with this host should be performed
public HandleError ( ) : bool
리턴 bool

IsConnected() 공개 메소드

Check if socket is connected to the master host @return true if connection between slave and master is sucessfully established
public IsConnected ( ) : bool
리턴 bool

Open() 공개 메소드

public Open ( IFile file, int cacheSizeInBytes ) : void
file IFile
cacheSizeInBytes int
리턴 void

ReplicationSlaveDatabaseImpl() 공개 메소드

public ReplicationSlaveDatabaseImpl ( int port ) : System
port int
리턴 System

WaitForModification() 공개 메소드

Wait until database is modified by master This method blocks current thread until master node commits trasanction and this transanction is completely delivered to this slave node
public WaitForModification ( ) : void
리턴 void

WaitInitializationCompletion() 보호된 메소드

protected WaitInitializationCompletion ( ) : void
리턴 void

isDirty() 보호된 메소드

protected isDirty ( ) : bool
리턴 bool

run() 공개 메소드

public run ( ) : void
리턴 void

프로퍼티 상세

LingerTime 공개적으로 정적으로 프로퍼티

public static int LingerTime
리턴 int

ListenQueueSize 공개적으로 정적으로 프로퍼티

public static int ListenQueueSize
리턴 int

acceptor 보호되어 있는 프로퍼티

protected Socket acceptor
리턴 Socket

commit 보호되어 있는 프로퍼티

protected object commit
리턴 object

done 보호되어 있는 프로퍼티

protected object done
리턴 object

file 보호되어 있는 프로퍼티

protected IFile file
리턴 IFile

init 보호되어 있는 프로퍼티

protected object init
리턴 object

initialized 보호되어 있는 프로퍼티

protected bool initialized
리턴 bool

lck 보호되어 있는 프로퍼티

protected IResource lck
리턴 IResource

listening 보호되어 있는 프로퍼티

protected bool listening
리턴 bool

port 보호되어 있는 프로퍼티

protected int port
리턴 int

prevIndex 보호되어 있는 프로퍼티

protected int prevIndex
리턴 int

socket 보호되어 있는 프로퍼티

protected Socket socket
리턴 Socket

thread 보호되어 있는 프로퍼티

protected Thread thread
리턴 Thread