Skip to content

Commit

Permalink
Create MessageToMaster.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AnatolyUss authored Jul 27, 2016
1 parent 0175f8f commit c1fd4ae
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions migration/fmtp/MessageToMaster.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* This file is a part of "NMIG" - the database migration tool.
*
* Copyright 2016 Anatoly Khaytovich <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program (please see the "LICENSE.md" file).
* If not, see <http://www.gnu.org/licenses/gpl.txt>.
*
* @author Anatoly Khaytovich <[email protected]>
*/
'use strict';

/**
* Representation of a message of DataLoader process to the master process regarding records,
* inserted to specified table.
* Constructor.
*
* @param {String} tableName
* @param {Number} rowsInserted
* @param {Number} totalRowsToInsert
*/
module.exports = function MessageToMaster(tableName, rowsInserted, totalRowsToInsert) {
this.tableName = tableName;
this.rowsInserted = rowsInserted;
this.totalRowsToInsert = totalRowsToInsert;
};

0 comments on commit c1fd4ae

Please sign in to comment.