Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #83 from qminer/frozen
Browse files Browse the repository at this point in the history
Frozen
  • Loading branch information
bergloman authored Dec 13, 2017
2 parents 71c708f + eaaee30 commit 85d5e29
Show file tree
Hide file tree
Showing 18 changed files with 249 additions and 147 deletions.
2 changes: 1 addition & 1 deletion built/db_updater.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion built/mysql_storage.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export interface MySqlStorageParams {
database: string;
user: string;
password: string;
retries: number;
retry_timeout: number;
}
export interface MySqlTopologyManager {
insert(uuid: string, config: any, overwrite: boolean, callback: qtopology.SimpleCallback): any;
Expand All @@ -18,6 +20,7 @@ export declare class MySqlStorage implements qtopology.CoordinationStorage {
init(callback: qtopology.SimpleCallback): void;
close(callback: qtopology.SimpleCallback): void;
private log(s);
static retry(times: number, timeout: number, isRetriableError: (e: Error) => boolean, step: (cb: qtopology.SimpleResultCallback<any>) => void, callback: qtopology.SimpleResultCallback<any>): void;
private query(sql, obj, callback);
getMessages(name: string, callback: qtopology.SimpleResultCallback<qtopology.StorageResultMessage[]>): void;
getMessage(name: string, callback: qtopology.SimpleResultCallback<qtopology.StorageResultMessage>): void;
Expand All @@ -32,7 +35,7 @@ export declare class MySqlStorage implements qtopology.CoordinationStorage {
announceLeaderCandidacy(name: string, callback: qtopology.SimpleCallback): void;
checkLeaderCandidacy(name: string, callback: qtopology.SimpleResultCallback<boolean>): void;
assignTopology(uuid: string, name: string, callback: qtopology.SimpleCallback): void;
setTopologyStatus(uuid: string, status: string, error: string, callback: qtopology.SimpleCallback): void;
setTopologyStatus(uuid: string, worker: string, status: string, error: string, callback: qtopology.SimpleCallback): void;
setTopologyPid(uuid: string, pid: number, callback: qtopology.SimpleCallback): void;
setWorkerStatus(name: string, status: string, callback: qtopology.SimpleCallback): void;
setWorkerLStatus(name: string, lstatus: string, callback: qtopology.SimpleCallback): void;
Expand Down
40 changes: 35 additions & 5 deletions built/mysql_storage.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion built/mysql_storage.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 85d5e29

Please sign in to comment.