MicroService Type :${MsType}
Server :
Client - Host - Connect :
Client - Domain - Mapping :
Client - Register - Module :
Display Name |
PID |
Private Host Url |
Public IP |
State |
IsVirtual |
Version |
LastActiveTime |
To Doc |
To Admin |
Download RpcProxy |
View ProcProxy |
Stop Microservice |
Exit Application |
${Name} |
${PID} |
${Host} |
${HostIP} |
${State} |
${IsVirtual} |
${Version} |
${RegTime} |
ToDoc |
ToAdmin |
Download |
ViewCode |
Stop
|
Exit
|
function stop(host, el) {
if (confirm("Stop [" + host + "] MicroService Confirm ?")) {
el.onclick = undefined;
el.style = "text-decoration: none; cursor: default; opacity: 0.2";
$.ajax({
type: "GET",
url: "StopClientMicroService?host=" + host,
success: function (result) {
if (result && result.msg) {
alert(result.msg);
}
},
error: function (result) {
alert("stop fail.");
}
});
}
}
function exit(host, el) {
if (confirm("Exit [" + host + "] Application Confirm ?")) {
el.onclick = undefined;
el.style = "text-decoration: none; cursor: default; opacity: 0.2";
$.ajax({
type: "GET",
url: "ExitClientAppliction?host=" + host,
success: function (result) {
if (result && result.msg) {
alert(result.msg);
}
},
error: function (result) {
alert("exit fail.");
}
});
}
}
function checkUrl(host, el) {
var text = $(el).html();
if (text == "- - -") { return; }
if (confirm("Check [" + host + "] State Again Confirm ?")) {
var state = text == "√" ? "1" : "-1";
$.ajax({
type: "GET",
url: "checkurl?host=" + host + "&state=" + state,
success: function (result) {
if (result && result.msg) {
alert(result.msg);
}
},
error: function (result) {
alert("checkurl fail.");
}
});
}
}
function downRpcProxy(host, el) {
var name = prompt("Input the api module name:", "RpcProxy");
if (name == undefined) { return; }
el.onclick = undefined;
el.style = "text-decoration: none; cursor: default; opacity: 0.2";
var url = "DownRpcProxy?host=" + host + "&name=" + name;
window.open(url, '_blank');
}
function viewRpcProxy(host, el) {
var name = prompt("Input the api module name:", "RpcProxy");
el.onclick = undefined;
el.style = "text-decoration: none; cursor: default; opacity: 0.2";
var url = "ViewRpcProxy?host=" + host + "&name=" + name;
window.open(url, '_blank');
}
]]>