client for test
This commit is contained in:
@@ -4,20 +4,19 @@ import { FileEncryptor } from './file_encryptor'
|
||||
import { TcpCommunicator } from './tcp_communicator'
|
||||
import { operationCodes } from '../network/operation_codes'
|
||||
import { ParsedMessage } from '../network/message_handler'
|
||||
import { JsonDatabase } from '../database/database'
|
||||
import { DatabaseScheme } from '../database/schemes/database_scheme'
|
||||
import { Database } from '../database/database'
|
||||
import { NetworkUserScheme } from '../database/schemes/network_scheme'
|
||||
|
||||
export class BackupManager {
|
||||
private fileEncryptor: FileEncryptor | null = null
|
||||
private readonly db: JsonDatabase<DatabaseScheme, any>
|
||||
private readonly db: Database
|
||||
private readonly clientPort: number
|
||||
private isBusy: boolean = false
|
||||
private intervalId: NodeJS.Timeout | null = null
|
||||
private stopRequested: boolean = false
|
||||
|
||||
constructor(pathToDatabaseFile: string, clientPort: number) {
|
||||
this.db = new JsonDatabase(pathToDatabaseFile)
|
||||
this.db = new Database(pathToDatabaseFile)
|
||||
this.clientPort = clientPort
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user