C# Class Volante.Impl.ReplicationSlaveDatabaseImpl

Inheritance: DatabaseImpl, ReplicationSlaveDatabase
Afficher le fichier Open project: kjk/volante

Méthodes publiques

Свойство Type Description
LingerTime int
ListenQueueSize int

Protected Properties

Свойство Type Description
acceptor Socket
commit object
done object
file IFile
init object
initialized bool
lck IResource
listening bool
port int
prevIndex int
socket Socket
thread Thread

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
WaitInitializationCompletion ( ) : void
isDirty ( ) : bool

Private Methods

Méthode Description
connect ( ) : void
hangup ( ) : void

Method Details

BeginThreadTransaction() public méthode

public BeginThreadTransaction ( TransactionMode mode ) : void
mode TransactionMode
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

EndThreadTransaction() public méthode

public EndThreadTransaction ( int maxDelay ) : void
maxDelay int
Résultat void

HandleError() public méthode

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
Résultat bool

IsConnected() public méthode

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

Open() public méthode

public Open ( IFile file, int cacheSizeInBytes ) : void
file IFile
cacheSizeInBytes int
Résultat void

ReplicationSlaveDatabaseImpl() public méthode

public ReplicationSlaveDatabaseImpl ( int port ) : System
port int
Résultat System

WaitForModification() public méthode

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
Résultat void

WaitInitializationCompletion() protected méthode

protected WaitInitializationCompletion ( ) : void
Résultat void

isDirty() protected méthode

protected isDirty ( ) : bool
Résultat bool

run() public méthode

public run ( ) : void
Résultat void

Property Details

LingerTime public_oe static_oe property

public static int LingerTime
Résultat int

ListenQueueSize public_oe static_oe property

public static int ListenQueueSize
Résultat int

acceptor protected_oe property

protected Socket acceptor
Résultat Socket

commit protected_oe property

protected object commit
Résultat object

done protected_oe property

protected object done
Résultat object

file protected_oe property

protected IFile file
Résultat IFile

init protected_oe property

protected object init
Résultat object

initialized protected_oe property

protected bool initialized
Résultat bool

lck protected_oe property

protected IResource lck
Résultat IResource

listening protected_oe property

protected bool listening
Résultat bool

port protected_oe property

protected int port
Résultat int

prevIndex protected_oe property

protected int prevIndex
Résultat int

socket protected_oe property

protected Socket socket
Résultat Socket

thread protected_oe property

protected Thread thread
Résultat Thread