C# 클래스 Volante.Impl.ReplicationMasterFile

File performing replication of changed pages to specified slave nodes.
상속: IFile
파일 보기 프로젝트 열기: kjk/volante

공개 프로퍼티들

프로퍼티 타입 설명
ConnectionTimeout int
LingerTime int
MaxConnectionAttempts int

보호된 프로퍼티들

프로퍼티 타입 설명
ack bool
db ReplicationMasterDatabaseImpl
file IFile
hosts string[]
nHosts int
rcBuf byte[]
sockets Socket[]
txBuf byte[]

공개 메소드들

메소드 설명
Close ( ) : void
GetNumberOfAvailableHosts ( ) : int
HandleError ( string host ) : bool

When overriden by base class this method perfroms socket error handling

Lock ( ) : void
Read ( long pos, byte buf ) : int
ReplicationMasterFile ( IFile file, string hosts, bool ack ) : System

Constructor of replication master file

ReplicationMasterFile ( ReplicationMasterDatabaseImpl db, IFile file ) : System

Constructor of replication master file

Sync ( ) : void
Write ( long pos, byte buf ) : void

보호된 메소드들

메소드 설명
connect ( int i ) : void

메소드 상세

Close() 공개 메소드

public Close ( ) : void
리턴 void

GetNumberOfAvailableHosts() 공개 메소드

public GetNumberOfAvailableHosts ( ) : int
리턴 int

HandleError() 공개 메소드

When overriden by base class this method perfroms socket error handling
public HandleError ( string host ) : bool
host string
리턴 bool

Lock() 공개 메소드

public Lock ( ) : void
리턴 void

Read() 공개 메소드

public Read ( long pos, byte buf ) : int
pos long
buf byte
리턴 int

ReplicationMasterFile() 공개 메소드

Constructor of replication master file
public ReplicationMasterFile ( IFile file, string hosts, bool ack ) : System
file IFile local file used to store data locally
hosts string slave node hosts to which replication will be performed
ack bool whether master should wait acknowledgment from slave node during trasanction commit
리턴 System

ReplicationMasterFile() 공개 메소드

Constructor of replication master file
public ReplicationMasterFile ( ReplicationMasterDatabaseImpl db, IFile file ) : System
db ReplicationMasterDatabaseImpl replication database
file IFile local file used to store data locally
리턴 System

Sync() 공개 메소드

public Sync ( ) : void
리턴 void

Write() 공개 메소드

public Write ( long pos, byte buf ) : void
pos long
buf byte
리턴 void

connect() 보호된 메소드

protected connect ( int i ) : void
i int
리턴 void

프로퍼티 상세

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

public static int ConnectionTimeout
리턴 int

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

public static int LingerTime
리턴 int

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

public static int MaxConnectionAttempts
리턴 int

ack 보호되어 있는 프로퍼티

protected bool ack
리턴 bool

db 보호되어 있는 프로퍼티

protected ReplicationMasterDatabaseImpl,Volante.Impl db
리턴 ReplicationMasterDatabaseImpl

file 보호되어 있는 프로퍼티

protected IFile file
리턴 IFile

hosts 보호되어 있는 프로퍼티

protected string[] hosts
리턴 string[]

nHosts 보호되어 있는 프로퍼티

protected int nHosts
리턴 int

rcBuf 보호되어 있는 프로퍼티

protected byte[] rcBuf
리턴 byte[]

sockets 보호되어 있는 프로퍼티

protected Socket[] sockets
리턴 Socket[]

txBuf 보호되어 있는 프로퍼티

protected byte[] txBuf
리턴 byte[]