C# Класс Volante.Impl.ReplicationSlaveDatabaseImpl

Наследование: DatabaseImpl, ReplicationSlaveDatabase
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
LingerTime int
ListenQueueSize int

Защищенные свойства (Protected)

Свойство Тип Описание
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