【文件属性】:
文件名称:启动和控制NodeJS进程Process-watcher.zip
文件大小:10KB
文件格式:ZIP
更新时间:2022-08-07 22:29:26
开源项目
Process-watcher 能够启动和控制 NodeJS 进程的工具。代码示例:var watcher = require('process-watcher');
/*
* Dummy metric monitoring object.
*/
var watcher_metric = {
/**
* Increments metric
*/
increment : function (name, v) {
// Add implementation as necessary
},
/**
* Set the metric or multiple metrics at the same time.
* */
set : function (names, v) {
// Add implementation as necessary
}
};
var dgpath = '/tmp/watcher_test_dgram',
statusPath = '/tmp/watcher_status_path_test',
watcher_config = { max_inactive : 0.001, monitor : 0.001, monPath: dgpath,
timeout : 30, timeout_start : 60 };
//Instantiate watcher
var watcher_instance = new watcher.Watcher({ metric : watcher_metric, config : watcher_config });
标签:Process
分享
window._bd_share_config = {
"common": {
"bdSnsKey": {},
"bdText": "",
"bdMini": "2",
"bdMiniList": [],
"bdPic": "",
"bdStyle": "1",
"bdSize": "24"
}, "share": {}
};
with (document)0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' ~(-new Date() / 36e5)];\r\n \r\n \r\n \r\n \r\n \u8f6f\u4ef6\u9996\u9875\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\nwindow.changyan.api.config({\r\nappid: 'cysXjLKDf',
conf: 'prod_33c27aefa42004c9b2c12a759c851039'
});
【文件预览】:
process-watcher-master
----.travis.yml(40B)
----package.json(1KB)
----tests()
--------test_watcher.js(9KB)
----LICENSE(1KB)
----.gitignore(22B)
----lib()
--------index.js(12KB)
--------watcher_metric.js(537B)
----README.md(2KB)