Implement a non-polling flag in the DB-Extractor
This commit is contained in:
@@ -5,9 +5,10 @@
|
|||||||
"serverURI": "http://localhost:2222",
|
"serverURI": "http://localhost:2222",
|
||||||
"maxResultsPerMessage":100,
|
"maxResultsPerMessage":100,
|
||||||
"statements":{
|
"statements":{
|
||||||
"poller":"'select top ' + config.maxResultsPerMessage + ' * from rpslog with (nolock) where pkey > \\'' + maxPKey + '\\' and businessModified < dateAdd(mi,-30, getdate()) order by pkey'"
|
"poller":"'select top ' + config.maxResultsPerMessage + ' * from rpslog with (nolock) where pkey > \\'' + maxPKey + '\\' order by pkey'"
|
||||||
},
|
},
|
||||||
"pollIntervalIdle": 10000,
|
"pollIntervalIdle": 10000,
|
||||||
|
"pollMode": false,
|
||||||
"UP_sqlConfig": {
|
"UP_sqlConfig": {
|
||||||
"user": "casdbuser",
|
"user": "casdbuser",
|
||||||
"password": "4KcLao2016!",
|
"password": "4KcLao2016!",
|
||||||
|
|||||||
@@ -99,8 +99,13 @@ try {
|
|||||||
});
|
});
|
||||||
process.stdout.write(">" + allRows.length + ">");
|
process.stdout.write(">" + allRows.length + ">");
|
||||||
} else {
|
} else {
|
||||||
theInterval = setInterval(runNextPoll, config.pollIntervalIdle);
|
if (config.pollMode) {
|
||||||
process.stdout.write(".");
|
theInterval = setInterval(runNextPoll, config.pollIntervalIdle);
|
||||||
|
process.stdout.write(".");
|
||||||
|
} else {
|
||||||
|
sql.close();
|
||||||
|
return(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
allRows=[];
|
allRows=[];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user