C# 클래스 Volante.DatabaseFactory

Database factory
파일 보기 프로젝트 열기: kjk/volante

공개 메소드들

메소드 설명
CreateDatabase ( ) : IDatabase

Create a database instance

CreateReplicationMasterDatabase ( string replicationSlaveNodes, int asyncBufSize ) : ReplicationMasterDatabase

Create new instance of the master node of replicated database

CreateReplicationSlaveDatabase ( int port ) : ReplicationSlaveDatabase

Create new instance of the slave node of replicated database

메소드 상세

CreateDatabase() 공개 정적인 메소드

Create a database instance
public static CreateDatabase ( ) : IDatabase
리턴 IDatabase

CreateReplicationMasterDatabase() 공개 정적인 메소드

Create new instance of the master node of replicated database
public static CreateReplicationMasterDatabase ( string replicationSlaveNodes, int asyncBufSize ) : ReplicationMasterDatabase
replicationSlaveNodes string addresses of hosts to which replication will be performed. /// Address as specified as NAME:PORT
asyncBufSize int if value of this parameter is greater than zero then replication will be /// asynchronous, done by separate thread and not blocking main application. /// Otherwise data is send to the slave nodes by the same thread which updates the database. /// If space asynchronous buffer is exhausted, then main thread willbe also blocked until the /// data is send.
리턴 ReplicationMasterDatabase

CreateReplicationSlaveDatabase() 공개 정적인 메소드

Create new instance of the slave node of replicated database
public static CreateReplicationSlaveDatabase ( int port ) : ReplicationSlaveDatabase
port int socket port at which connection from master will be established
리턴 ReplicationSlaveDatabase