Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: continuous monitoring support #67

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
84b1abb
add appconfig.POLLING_INTERVAL
breznak Jan 6, 2016
2dfdf36
Merge branch 'master' into online_polling
breznak Jan 6, 2016
af8ee14
unify the download/stream*File functions
breznak Jan 6, 2016
8b93e82
cleanup + loadFile() unifies getRemote/LocalFile
breznak Jan 6, 2016
3367438
document the remote file loading feature
breznak Jan 6, 2016
81636ef
function canDownload() extended to judge RangeHeader
breznak Jan 6, 2016
d478da6
new getFileSize function used
breznak Jan 6, 2016
64ba327
using common getFile function
breznak Jan 6, 2016
2f3843f
add FIXME
breznak Jan 6, 2016
facb3e5
fix getFileSize & canDownload, WIP getRemoteFile
breznak Jan 7, 2016
3dbf998
initial online monitoring/polling/streaming support
breznak Jan 7, 2016
9def3e2
add example/readme for the online monitoring mode
breznak Jan 7, 2016
428959f
monitoring: speedup consecutive pollings
breznak Jan 7, 2016
c0f0e63
record file.size
breznak Jan 7, 2016
21f6277
improve skipping for large file, till size reached
breznak Jan 7, 2016
9eea799
avoid parallel timers
breznak Jan 7, 2016
5f38c9c
fix file size updated as file grows during monitoring
breznak Jan 7, 2016
23f0597
increase local CHUNK_SIZE for Papa
breznak Jan 8, 2016
f86d7ab
Merge branch 'master' into online_polling
breznak Jan 13, 2016
201b580
use Angular's $interval
breznak Jan 13, 2016
6f10a95
merge functionality to loadFile (local, remote)
breznak Jan 13, 2016
b61b3e8
WIP chaining promises
breznak Jan 13, 2016
f34d2f4
Merge branch 'master' into online_polling
breznak Jan 14, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/app.js

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

13 changes: 9 additions & 4 deletions client/src/app/appConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,24 @@ angular.module('app').constant('appConfig', {
// We replace the with this value, defaults to 0.
NONE_VALUE_REPLACEMENT : 0,
// BUFFER:
// buffer size used for DyGraph streaming, default 1000
// buffer size used for DyGraph streaming, default 10000
BUFFER_SIZE : 10000,
// SLIDING_WINDOW:
// True = each batch existing values are dropped, new BUFFER_SIZE is painted. Graph will "move to the right".
// False = data never dropped, just append. Graph will "shrink". (default)
SLIDING_WINDOW : false,
// MAX_FILE_SIZE:
// Maximum size in bytes, for a file. Over this size, and windowing will automatically occur.
MAX_FILE_SIZE : 5000000,
// Maximum size in bytes, for a file. Over this size, and windowing will automatically occur. (default 5MB)
MAX_FILE_SIZE : 5120000,
// LOCAL_CHUNK_SIZE:
// size in bytes of each chunk for the data stream, when reading local files
LOCAL_CHUNK_SIZE : 65536,
// REMOTE_CHUNK_SIZE:
// size in bytes of each chunk for the data stream, when reading files over a network. Not currently used.
REMOTE_CHUNK_SIZE : 65536
REMOTE_CHUNK_SIZE : 65536,
// POLLING_INTERVAL:
// time interval (in ms) after which the source file is re-read to find possible updates.
// A value <= 0 means polling is disabled - nothing else happens after the end of the file is reached.
// Default: 0
POLLING_INTERVAL : 0
});
Loading