屏蔽storm ui的kill功能
来源:互联网 发布:seo资源网 编辑:程序博客网 时间:2024/05/01 04:24
1
<
input
enabled
=
""
onclick
=
"confirmAction('xxxxxxxxxx', 'xxxxxxxx', 'kill', true, 30)"
type
=
"button"
value
=
"Kill"
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function
confirmAction(id, name, action, wait, defaultWait) {
var
opts = {
type:
'POST'
,
url:
'/topology/'
+ id +
'/'
+ action
};
if
(wait) {
var
waitSecs = prompt(
'Do you really want to '
+ action +
' topology "'
+ name +
'"? '
+
'If yes, please, specify wait time in seconds:'
,
defaultWait);
if
(waitSecs !=
null
&& waitSecs !=
""
&& ensureInt(waitSecs)) {
opts.url +=
'/'
+ waitSecs;
}
else
{
return
false
;
}
}
else
if
(!confirm(
'Do you really want to '
+ action +
' topology "'
+ name +
'"?'
)) {
return
false
;
}
$(
"input[type=button]"
).attr(
"disabled"
,
"disabled"
);
$.ajax(opts).always(
function
() {
window.location.reload();
}).fail(
function
() {
alert(
"Error while communicating with Nimbus."
)
});
return
false
;
}
1
/topology/xxxxx/kill/xxxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
upstream storm {
server 127.0.0.1:8888 weight=3 max_fails=3 fail_timeout=5s;
}
server {
server_name storm.xxx.com;
listen 80;
proxy_set_header Host $host;
proxy_read_timeout 3600;
proxy_set_header X-Forwarded-For $remote_addr;
access_log
/var/log/nginx/storm
.access.log main;
error_log
/var/log/nginx/storm
.error.log debug;
location ~*
/topology/
(.*)
/kill/
(.*) {
return
403;
}
location / {
proxy_pass http:
//storm
;
}
}
1
2
3
4
5
<
div
id
=
"topology-actions"
>
<
h2
class
=
"js-only"
>Topology actions</
h2
>
<
p
id
=
"topology-actions"
class
=
"js-only"
>
</
p
>
</
div
>
0 0
- 屏蔽storm ui的kill功能
- storm kill topology
- 【Storm】Storm UI 说明
- Storm UI
- Storm UI
- Storm UI
- Storm UI
- 屏蔽默认的事件功能
- 屏蔽网站的打印功能
- 屏蔽IE 的打印功能!
- Cocostudio生成的UI,触摸屏蔽问题
- Storm学习03--各个角色的功能
- 屏蔽tomcat的目录列表功能
- 屏蔽tomcat的目录列表功能
- 全屏程序的系统功能屏蔽处理
- 为什么达到不了屏蔽键盘的功能
- 如何屏蔽tomcat的缓存功能
- 屏蔽KEmulator的内存查看功能
- H.264中块,宏块,片,图像的关系
- 浅谈短网址
- Android命令Monkey测试学习(一)
- 【LintCode】翻转链表 II
- z-index无效的几种情况
- 屏蔽storm ui的kill功能
- cmd习惯颜色
- Android组件式开发(2)——实现网格布局的RadioButton矩阵
- LightOJ 1019 Brush (V) 最短路裸题
- android developer tiny share-20160908
- SQL Server 取日期时间部分
- 146. LRU Cache
- Linux内核源代码分析——Linux内核的入口
- java中的继承(向上转型)