Finalize prototype for SI

This commit is contained in:
BoykoAlex
2019-09-04 17:42:34 -04:00
parent 1a22387b53
commit 1963baf20c
10 changed files with 837 additions and 4960 deletions

View File

@@ -18,8 +18,8 @@ rm -fr $static_dir
mkdir -p $static_dir
echo "cp ${client_dir}/bundle* $static_dir"
cp ${client_dir}/bundle* $static_dir
cp ${client_dir}/index.html $static_dir
cp ${client_dir}/eclipse.html $static_dir
cp ${client_dir}/*.html $static_dir
cp -R ${client_dir}/samples $static_dir/samples
cp -R ${client_dir}/css $static_dir/css
cp -R ${client_dir}/lib $static_dir/lib
cp -R ${client_dir}/src $static_dir/src

View File

@@ -1,13 +0,0 @@
svg {
width: 100%;
height: 100%;
}
body {
height: 100vh;
overflow: hidden;
}
.sprotty {
height: 100%;
}

View File

@@ -1,45 +1,13 @@
/********************************************************************************
* Copyright (c) 2017-2018 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
* with the GNU Classpath Exception which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
********************************************************************************/
.copyright {
margin-top: 10px;
text-align: right;
font-size: 10px;
color: #888;
}
#refresh {
width: 20%;
}
#target-url {
width: 80%;
}
.help {
margin-top: 24px;
text-align: right;
font-size: 16px;
color: #888;
}
svg {
margin-top: 15px;
width: 100%;
height: 600px;
border-style: solid;
border-width: 1px;
border-color: #bbb;
height: 100%;
}
body {
height: 100vh;
overflow: hidden;
}
.sprotty {
height: 100%;
}

View File

@@ -1,16 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Spring Integration Graph</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dom4/3.0.0/dom4.js">
<link rel="stylesheet" href="css/eclipse-page.css">
</head>
<body id="sprotty-app" client-id="spring-boot">
<div id="spring-boot" class="sprotty" />
</div>
<script src="bundle.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sockjs-client@1/dist/sockjs.min.js"></script>
</body>
</html>

View File

@@ -4,33 +4,12 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Spring Integration Graph</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css">
<link rel="stylesheet" href="css/page.css">
<!-- support Microsoft browsers -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dom4/3.0.0/dom4.js">
<link rel="stylesheet" href="css/page.css">
</head>
<body>
<div class="container">
<div class="row" id="sprotty-app" client-id="spring-boot">
<div class="col-md-10">
<h1>Spring Integration Graph</h1>
<p>
<input id="target-url" type="text" value="http://localhost:8080/integration"><button id="refresh">Refresh</button>
</p>
</div>
<div class="help col-md-2">
<a href='https://github.com/theia-ide/sprotty/wiki/Using-sprotty'>Help</a>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div id="spring-boot" class="sprotty"/>
</div>
<div class="copyright">
&copy; 2017 <a href="http://typefox.io">TypeFox GmbH</a>.
</div>
</div>
</div>
<body id="sprotty-app" client-id="spring-boot">
<div id="spring-boot" class="sprotty" />
</div>
<script src="bundle.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sockjs-client@1/dist/sockjs.min.js"></script>
</body>

File diff suppressed because it is too large Load Diff

View File

@@ -14,7 +14,7 @@
"license": "ISC",
"dependencies": {
"reflect-metadata": "^0.1.10",
"sprotty": "^0.6.0",
"sprotty": "^0.7.0-next",
"sockjs-client": "^1.3.0"
},
"devDependencies": {

View File

@@ -0,0 +1,806 @@
{
"contentDescriptor": {
"providerVersion": "5.1.7.RELEASE",
"providerFormatVersion": 1.0,
"provider": "spring-integration"
},
"nodes": [
{
"nodeId": 1,
"name": "orders",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"sendCount": 1561,
"sendErrorCount": 0,
"timeSinceLastSend": 1429.0248509645462,
"meanSendRate": 0.19872301370567233,
"meanErrorRate": 0.0,
"meanErrorRatio": 1.1102230246251565E-16,
"meanSendDuration": 5003.650878194805,
"minSendDuration": 0.15412,
"maxSendDuration": 5014.799534,
"standardDeviationSendDuration": 1.363640363553712,
"sendDuration": {
"count": 1560,
"min": 0.15412,
"max": 5014.799534,
"mean": 5003.650878194805,
"standardDeviation": 1.363640363553712,
"countLong": 1560
},
"sendRate": {
"count": 1561,
"min": 2.0863598585128785E-4,
"max": 5.0149249210357665,
"mean": 0.19872298170154085,
"standardDeviation": 6.1696431014795805E-6,
"countLong": 1561
},
"errorRate": {
"count": 0,
"min": 0.0,
"max": 0.0,
"mean": 0.0,
"standardDeviation": 0.0,
"countLong": 0
}
},
"componentType": "channel",
"properties": {}
},
{
"nodeId": 2,
"name": "drinks",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"sendCount": 3121,
"sendErrorCount": 0,
"timeSinceLastSend": 1429.0787830352783,
"meanSendRate": 3.9946284090990978,
"meanErrorRate": 0.0,
"meanErrorRatio": 0.0,
"meanSendDuration": 2370.2359079638513,
"minSendDuration": 0.011644,
"maxSendDuration": 5014.652454,
"standardDeviationSendDuration": 2498.428610188665,
"sendDuration": {
"count": 3120,
"min": 0.011644,
"max": 5014.652454,
"mean": 2370.2359079638513,
"standardDeviation": 2498.428610188665,
"countLong": 3120
},
"sendRate": {
"count": 3121,
"min": 6.322205066680909E-5,
"max": 5.014701367020607,
"mean": 3.9946212584416454,
"standardDeviation": 162.60439431075358,
"countLong": 3121
},
"errorRate": {
"count": 0,
"min": 0.0,
"max": 0.0,
"mean": 0.0,
"standardDeviation": 0.0,
"countLong": 0
}
},
"componentType": "channel",
"properties": {}
},
{
"nodeId": 3,
"name": "coldDrinks",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"sendCount": 1560,
"sendErrorCount": 0,
"timeSinceLastSend": 1429.1956920027733,
"meanSendRate": 0.19872288631751323,
"meanErrorRate": 0.0,
"meanErrorRatio": 1.1102230246251565E-16,
"meanSendDuration": 0.0035419568681405956,
"minSendDuration": 0.00139,
"maxSendDuration": 0.111822,
"standardDeviationSendDuration": 6.359127572244061E-4,
"sendDuration": {
"count": 1560,
"min": 0.00139,
"max": 0.111822,
"mean": 0.0035419568681405956,
"standardDeviation": 6.359127572244061E-4,
"countLong": 1560
},
"sendRate": {
"count": 1560,
"min": 2.0191603899002075E-4,
"max": 5.014931671023369,
"mean": 0.1987228658502675,
"standardDeviation": 6.190136782228871E-6,
"countLong": 1560
},
"errorRate": {
"count": 0,
"min": 0.0,
"max": 0.0,
"mean": 0.0,
"standardDeviation": 0.0,
"countLong": 0
}
},
"componentType": "channel",
"properties": {}
},
{
"nodeId": 4,
"name": "hotDrinks",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"sendCount": 1561,
"sendErrorCount": 0,
"timeSinceLastSend": 1429.1548599600792,
"meanSendRate": 0.19872291318417598,
"meanErrorRate": 0.0,
"meanErrorRatio": 0.0,
"meanSendDuration": 5003.590805525635,
"minSendDuration": 0.008038,
"maxSendDuration": 5014.631164,
"standardDeviationSendDuration": 1.3643270200570699,
"sendDuration": {
"count": 1560,
"min": 0.008038,
"max": 5014.631164,
"mean": 5003.590805525635,
"standardDeviation": 1.3643270200570699,
"countLong": 1560
},
"sendRate": {
"count": 1561,
"min": 2.0728200674057006E-4,
"max": 5.014925371050834,
"mean": 0.19872289389054654,
"standardDeviation": 6.164594582431265E-6,
"countLong": 1561
},
"errorRate": {
"count": 0,
"min": 0.0,
"max": 0.0,
"mean": 0.0,
"standardDeviation": 0.0,
"countLong": 0
}
},
"componentType": "channel",
"properties": {}
},
{
"nodeId": 5,
"name": "coldDrinkBarista",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"sendCount": 1560,
"sendErrorCount": 0,
"timeSinceLastSend": 881.5405940413475,
"meanSendRate": 0.19873440540639117,
"meanErrorRate": 0.0,
"meanErrorRatio": 0.0,
"meanSendDuration": 1003.5126326006912,
"minSendDuration": 1000.228565,
"maxSendDuration": 1112.043471,
"standardDeviationSendDuration": 1.3022780189205296,
"sendDuration": {
"count": 1559,
"min": 1000.228565,
"max": 1112.043471,
"mean": 1003.5126326006912,
"standardDeviation": 1.3022780189205296,
"countLong": 1559
},
"sendRate": {
"count": 1560,
"min": 1.0020495340228082,
"max": 5.040197880983353,
"mean": 0.19873438120993936,
"standardDeviation": 1.6047682169374947E-5,
"countLong": 1560
},
"errorRate": {
"count": 0,
"min": 0.0,
"max": 0.0,
"mean": 0.0,
"standardDeviation": 0.0,
"countLong": 0
}
},
"componentType": "channel",
"properties": {}
},
{
"nodeId": 6,
"name": "hotDrinkBarista",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"sendCount": 1550,
"sendErrorCount": 0,
"timeSinceLastSend": 1429.3890929818153,
"meanSendRate": 0.1987227278958619,
"meanErrorRate": 0.0,
"meanErrorRatio": 0.0,
"meanSendDuration": 5003.709062876814,
"minSendDuration": 5000.359221,
"maxSendDuration": 5012.99843,
"standardDeviationSendDuration": 1.3690899772908132,
"sendDuration": {
"count": 1549,
"min": 5000.359221,
"max": 5012.99843,
"mean": 5003.709062876814,
"standardDeviation": 1.3690899772908132,
"countLong": 1549
},
"sendRate": {
"count": 1550,
"min": 5.000380456984043,
"max": 5.013030328035355,
"mean": 0.19872269111971524,
"standardDeviation": 6.1998210245207215E-6,
"countLong": 1550
},
"errorRate": {
"count": 0,
"min": 0.0,
"max": 0.0,
"mean": 0.0,
"standardDeviation": 0.0,
"countLong": 0
}
},
"componentType": "channel",
"properties": {}
},
{
"nodeId": 7,
"name": "preparedDrinks",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"sendCount": 3108,
"sendErrorCount": 0,
"timeSinceLastSend": 1429.894403040409,
"meanSendRate": 0.3918871560015905,
"meanErrorRate": 0.0,
"meanErrorRatio": 1.1102230246251565E-16,
"meanSendDuration": 0.33589069331477384,
"minSendDuration": 0.076157,
"maxSendDuration": 7.546004,
"standardDeviationSendDuration": 0.23511089412174876,
"sendDuration": {
"count": 3108,
"min": 0.076157,
"max": 7.546004,
"mean": 0.33589069331477384,
"standardDeviation": 0.23511089412174876,
"countLong": 3108
},
"sendRate": {
"count": 3108,
"min": 0.022141517996788027,
"max": 4.002905887961387,
"mean": 0.3918870708409155,
"standardDeviation": 0.005819420767766574,
"countLong": 3108
},
"errorRate": {
"count": 0,
"min": 0.0,
"max": 0.0,
"mean": 0.0,
"standardDeviation": 0.0,
"countLong": 0
}
},
"componentType": "channel",
"properties": {}
},
{
"nodeId": 8,
"name": "deliveries",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"sendCount": 1549,
"sendErrorCount": 0,
"timeSinceLastSend": 1429.6123870015144,
"meanSendRate": 0.19872256936926955,
"meanErrorRate": 0.0,
"meanErrorRatio": 0.0,
"meanSendDuration": 0.04190433049833542,
"minSendDuration": 0.021149,
"maxSendDuration": 0.440369,
"standardDeviationSendDuration": 0.012591642596904994,
"sendDuration": {
"count": 1549,
"min": 0.021149,
"max": 0.440369,
"mean": 0.04190433049833542,
"standardDeviation": 0.012591642596904994,
"countLong": 1549
},
"sendRate": {
"count": 1549,
"min": 5.000379998981953,
"max": 5.113779273986816,
"mean": 0.1987225514460575,
"standardDeviation": 6.19586783811112E-6,
"countLong": 1549
},
"errorRate": {
"count": 0,
"min": 0.0,
"max": 0.0,
"mean": 0.0,
"standardDeviation": 0.0,
"countLong": 0
}
},
"componentType": "channel",
"properties": {}
},
{
"nodeId": 9,
"name": "nullChannel",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"sendCount": 0,
"sendErrorCount": 0,
"timeSinceLastSend": 0.0,
"meanSendRate": 0.0,
"meanErrorRate": 0.0,
"meanErrorRatio": 0.0,
"meanSendDuration": 0.0,
"minSendDuration": 0.0,
"maxSendDuration": 0.0,
"standardDeviationSendDuration": 0.0,
"sendDuration": {
"count": 0,
"min": 0.0,
"max": 0.0,
"mean": 0.0,
"standardDeviation": 0.0,
"countLong": 0
},
"sendRate": {
"count": 0,
"min": 0.0,
"max": 0.0,
"mean": 0.0,
"standardDeviation": 0.0,
"countLong": 0
},
"errorRate": {
"count": 0,
"min": 0.0,
"max": 0.0,
"mean": 0.0,
"standardDeviation": 0.0,
"countLong": 0
}
},
"componentType": "null-channel",
"properties": {}
},
{
"nodeId": 10,
"name": "errorChannel",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"sendCount": 0,
"sendErrorCount": 0,
"timeSinceLastSend": 0.0,
"meanSendRate": 0.0,
"meanErrorRate": 0.0,
"meanErrorRatio": 0.0,
"meanSendDuration": 0.0,
"minSendDuration": 0.0,
"maxSendDuration": 0.0,
"standardDeviationSendDuration": 0.0,
"sendDuration": {
"count": 0,
"min": 0.0,
"max": 0.0,
"mean": 0.0,
"standardDeviation": 0.0,
"countLong": 0
},
"sendRate": {
"count": 0,
"min": 0.0,
"max": 0.0,
"mean": 0.0,
"standardDeviation": 0.0,
"countLong": 0
},
"errorRate": {
"count": 0,
"min": 0.0,
"max": 0.0,
"mean": 0.0,
"standardDeviation": 0.0,
"countLong": 0
}
},
"componentType": "publish-subscribe-channel",
"properties": {}
},
{
"nodeId": 11,
"name": "cafe.placeOrder(com.coffee.barista.model.Order)",
"stats": null,
"componentType": "gateway",
"properties": {},
"output": "orders",
"errors": null
},
{
"nodeId": 12,
"name": "org.springframework.integration.config.ConsumerEndpointFactoryBean#0",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"handleCount": 1560,
"meanDuration": 1003.518562869151,
"minDuration": 1000.233368,
"maxDuration": 1112.060177,
"standardDeviationDuration": 1.3030029550200601,
"errorCount": 0,
"activeCount": 1,
"duration": {
"count": 1559,
"min": 1000.233368,
"max": 1112.060177,
"mean": 1003.518562869151,
"standardDeviation": 1.3030029550200601,
"countLong": 1559
}
},
"componentType": "bridge",
"properties": {},
"output": "coldDrinkBarista",
"input": "coldDrinks",
"errors": null
},
{
"nodeId": 13,
"name": "org.springframework.integration.config.ConsumerEndpointFactoryBean#1",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"handleCount": 1550,
"meanDuration": 5003.712236239948,
"minDuration": 5000.361081,
"maxDuration": 5013.008827,
"standardDeviationDuration": 1.368902308120164,
"errorCount": 0,
"activeCount": 1,
"duration": {
"count": 1549,
"min": 5000.361081,
"max": 5013.008827,
"mean": 5003.712236239948,
"standardDeviation": 1.368902308120164,
"countLong": 1549
}
},
"componentType": "bridge",
"properties": {},
"output": "hotDrinkBarista",
"input": "hotDrinks",
"errors": null
},
{
"nodeId": 14,
"name": "deliveries.adapter",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"handleCount": 1549,
"meanDuration": 0.03922531460394737,
"minDuration": 0.01943,
"maxDuration": 0.312978,
"standardDeviationDuration": 0.01227842190964896,
"errorCount": 0,
"activeCount": 0,
"duration": {
"count": 1549,
"min": 0.01943,
"max": 0.312978,
"mean": 0.03922531460394737,
"standardDeviation": 0.01227842190964896,
"countLong": 1549
}
},
"componentType": "stream:outbound-channel-adapter(character)",
"properties": {},
"output": null,
"input": "deliveries"
},
{
"nodeId": 15,
"name": "_org.springframework.integration.errorLogger",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"handleCount": 0,
"meanDuration": 0.0,
"minDuration": 0.0,
"maxDuration": 0.0,
"standardDeviationDuration": 0.0,
"errorCount": 0,
"activeCount": 0,
"duration": {
"count": 0,
"min": 0.0,
"max": 0.0,
"mean": 0.0,
"standardDeviation": 0.0,
"countLong": 0
}
},
"componentType": "logging-channel-adapter",
"properties": {},
"output": null,
"input": "errorChannel"
},
{
"nodeId": 16,
"name": "barista.prepareHotDrink.serviceActivator",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"handleCount": 1550,
"meanDuration": 5003.707504086414,
"minDuration": 5000.358286,
"maxDuration": 5012.995772,
"standardDeviationDuration": 1.369033564410027,
"errorCount": 0,
"activeCount": 1,
"duration": {
"count": 1549,
"min": 5000.358286,
"max": 5012.995772,
"mean": 5003.707504086414,
"standardDeviation": 1.369033564410027,
"countLong": 1549
}
},
"componentType": "service-activator",
"properties": {},
"output": "preparedDrinks",
"input": "hotDrinkBarista"
},
{
"nodeId": 17,
"name": "barista.prepareColdDrink.serviceActivator",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"handleCount": 1560,
"meanDuration": 1003.507666352316,
"minDuration": 1000.22605,
"maxDuration": 1112.031208,
"standardDeviationDuration": 1.300996104762833,
"errorCount": 0,
"activeCount": 1,
"duration": {
"count": 1559,
"min": 1000.22605,
"max": 1112.031208,
"mean": 1003.507666352316,
"standardDeviation": 1.300996104762833,
"countLong": 1559
}
},
"componentType": "service-activator",
"properties": {},
"output": "preparedDrinks",
"input": "coldDrinkBarista"
},
{
"nodeId": 18,
"name": "drinkRouter.resolveOrderItemChannel.router",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"handleCount": 3121,
"meanDuration": 2370.2345934783143,
"minDuration": 0.010944,
"maxDuration": 5014.649644,
"standardDeviationDuration": 2498.428529231691,
"errorCount": 0,
"activeCount": 1,
"duration": {
"count": 3120,
"min": 0.010944,
"max": 5014.649644,
"mean": 2370.2345934783143,
"standardDeviation": 2498.428529231691,
"countLong": 3120
}
},
"componentType": "router",
"properties": {},
"output": null,
"input": "drinks",
"routes": []
},
{
"nodeId": 19,
"name": "orderSplitter.split.splitter",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"handleCount": 1561,
"meanDuration": 5003.649297328232,
"minDuration": 0.146871,
"maxDuration": 5014.796199,
"standardDeviationDuration": 1.3635449140853426,
"errorCount": 0,
"activeCount": 1,
"duration": {
"count": 1560,
"min": 0.146871,
"max": 5014.796199,
"mean": 5003.649297328232,
"standardDeviation": 1.3635449140853426,
"countLong": 1560
}
},
"componentType": "splitter",
"properties": {},
"output": "drinks",
"input": "orders"
},
{
"nodeId": 20,
"name": "waiter.prepareDelivery.aggregator",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"handleCount": 3108,
"meanDuration": 0.3323798716314965,
"minDuration": 0.072916,
"maxDuration": 7.539735,
"standardDeviationDuration": 0.23517653062568422,
"errorCount": 0,
"activeCount": 0,
"duration": {
"count": 3108,
"min": 0.072916,
"max": 7.539735,
"mean": 0.3323798716314965,
"standardDeviation": 0.23517653062568422,
"countLong": 3108
}
},
"componentType": "aggregator",
"properties": {},
"output": "deliveries",
"input": "preparedDrinks",
"discards": "org.springframework.integration.channel.NullChannel@2204e377"
}
],
"links": [
{
"from": 11,
"to": 1,
"type": "output"
},
{
"from": 3,
"to": 12,
"type": "input"
},
{
"from": 12,
"to": 5,
"type": "output"
},
{
"from": 4,
"to": 13,
"type": "input"
},
{
"from": 13,
"to": 6,
"type": "output"
},
{
"from": 8,
"to": 14,
"type": "input"
},
{
"from": 10,
"to": 15,
"type": "input"
},
{
"from": 6,
"to": 16,
"type": "input"
},
{
"from": 16,
"to": 7,
"type": "output"
},
{
"from": 5,
"to": 17,
"type": "input"
},
{
"from": 17,
"to": 7,
"type": "output"
},
{
"from": 2,
"to": 18,
"type": "input"
},
{
"from": 1,
"to": 19,
"type": "input"
},
{
"from": 19,
"to": 2,
"type": "output"
},
{
"from": 7,
"to": 20,
"type": "input"
},
{
"from": 20,
"to": 8,
"type": "output"
}
]
}

View File

@@ -39,6 +39,10 @@ export default function runStandalone() {
modelSource.listen(ws);
ws.addEventListener('open', () => {
dispatcher.dispatch(requestModelAction());
const refreshRate = parseInt(extractQueryParam('refresh'));
if (refreshRate) {
setInterval(() => dispatcher.dispatch(requestModelAction()), refreshRate);
}
});
ws.addEventListener('error', (event) => {
console.error(`WebSocket Error: ${event}`)
@@ -68,8 +72,16 @@ export default function runStandalone() {
function getTarget() : string {
const input = <HTMLInputElement>document.getElementById('target-url');
const target = input && input.value;
return target || /*'target-missing'*/'http://localhost:8080/integration';
let target = input && input.value;
if (!target) {
target = extractQueryParam('url') || '';
}
return target || `${window.location.protocol}//${window.location.host}/samples/coffee.json`;
}
function extractQueryParam(param: string) {
const searchParams = new URLSearchParams(window.location.search);
return searchParams.get(param) || '';
}
function requestModelAction() : RequestModelAction {

View File

@@ -1,315 +0,0 @@
{
"contentDescriptor": {
"providerVersion": "5.1.6.RELEASE",
"providerFormatVersion": 1,
"provider": "spring-integration"
},
"nodes": [
{
"nodeId": 1,
"name": "news",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"sendCount": 20,
"sendErrorCount": 0,
"timeSinceLastSend": 3017590.1150589883,
"meanSendRate": 0.006416917317469066,
"meanErrorRate": 0,
"meanErrorRatio": 0,
"meanSendDuration": 0.6229622172698512,
"minSendDuration": 0.36042,
"maxSendDuration": 5.398724,
"standardDeviationSendDuration": 0.6248008418287394,
"sendDuration": {
"count": 20,
"min": 0.36042,
"max": 5.398724,
"mean": 0.6229622172698512,
"standardDeviation": 0.6248008418287394,
"countLong": 20
},
"sendRate": {
"count": 20,
"min": 4.519030865997076,
"max": 5.000686829984188,
"mean": 0.006416915226255189,
"standardDeviation": 0.003059182339655441,
"countLong": 20
},
"errorRate": {
"count": 0,
"min": 0,
"max": 0,
"mean": 0,
"standardDeviation": 0,
"countLong": 0
}
},
"componentType": "channel",
"properties": {}
},
{
"nodeId": 2,
"name": "file",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"sendCount": 20,
"sendErrorCount": 0,
"timeSinceLastSend": 3017591.1391609907,
"meanSendRate": 0.006416922929073101,
"meanErrorRate": 0,
"meanErrorRatio": 0,
"meanSendDuration": 0.35330047484316307,
"minSendDuration": 0.208864,
"maxSendDuration": 2.849803,
"standardDeviationSendDuration": 0.33755534347541105,
"sendDuration": {
"count": 20,
"min": 0.208864,
"max": 2.849803,
"mean": 0.35330047484316307,
"standardDeviation": 0.33755534347541105,
"countLong": 20
},
"sendRate": {
"count": 20,
"min": 4.516921804994345,
"max": 5.000899210005999,
"mean": 0.00641692253069279,
"standardDeviation": 0.003073929309381288,
"countLong": 20
},
"errorRate": {
"count": 0,
"min": 0,
"max": 0,
"mean": 0,
"standardDeviation": 0,
"countLong": 0
}
},
"componentType": "channel",
"properties": {}
},
{
"nodeId": 3,
"name": "nullChannel",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"sendCount": 0,
"sendErrorCount": 0,
"timeSinceLastSend": 0,
"meanSendRate": 0,
"meanErrorRate": 0,
"meanErrorRatio": 0,
"meanSendDuration": 0,
"minSendDuration": 0,
"maxSendDuration": 0,
"standardDeviationSendDuration": 0,
"sendDuration": {
"count": 0,
"min": 0,
"max": 0,
"mean": 0,
"standardDeviation": 0,
"countLong": 0
},
"sendRate": {
"count": 0,
"min": 0,
"max": 0,
"mean": 0,
"standardDeviation": 0,
"countLong": 0
},
"errorRate": {
"count": 0,
"min": 0,
"max": 0,
"mean": 0,
"standardDeviation": 0,
"countLong": 0
}
},
"componentType": "null-channel",
"properties": {}
},
{
"nodeId": 4,
"name": "errorChannel",
"stats": {
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"sendCount": 0,
"sendErrorCount": 0,
"timeSinceLastSend": 0,
"meanSendRate": 0,
"meanErrorRate": 0,
"meanErrorRatio": 0,
"meanSendDuration": 0,
"minSendDuration": 0,
"maxSendDuration": 0,
"standardDeviationSendDuration": 0,
"sendDuration": {
"count": 0,
"min": 0,
"max": 0,
"mean": 0,
"standardDeviation": 0,
"countLong": 0
},
"sendRate": {
"count": 0,
"min": 0,
"max": 0,
"mean": 0,
"standardDeviation": 0,
"countLong": 0
},
"errorRate": {
"count": 0,
"min": 0,
"max": 0,
"mean": 0,
"standardDeviation": 0,
"countLong": 0
}
},
"componentType": "publish-subscribe-channel",
"properties": {}
},
{
"nodeId": 5,
"name": "news.adapter",
"stats": {
"messageCount": 20
},
"componentType": "feed:inbound-channel-adapter",
"properties": {},
"output": "news"
},
{
"nodeId": 6,
"name": "org.springframework.integration.config.ConsumerEndpointFactoryBean#0",
"stats": {
"activeCount": 0,
"duration": {
"count": 20,
"min": 0.346117,
"max": 4.516881,
"mean": 0.585700683679285,
"standardDeviation": 0.5242315172537475,
"countLong": 20
},
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"maxDuration": 4.516881,
"minDuration": 0.346117,
"meanDuration": 0.585700683679285,
"errorCount": 0,
"handleCount": 20,
"standardDeviationDuration": 0.5242315172537475
},
"componentType": "transformer",
"properties": {
"expression": "payload.title + \u0027 @ \u0027 + payload.link + \u0027 \u0027"
},
"output": "file",
"input": "news"
},
{
"nodeId": 7,
"name": "file.adapter",
"stats": {
"activeCount": 0,
"duration": {
"count": 20,
"min": 0.192626,
"max": 2.602112,
"mean": 0.3295736390049931,
"standardDeviation": 0.31151136752438835,
"countLong": 20
},
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"maxDuration": 2.602112,
"minDuration": 0.192626,
"meanDuration": 0.3295736390049931,
"errorCount": 0,
"handleCount": 20,
"standardDeviationDuration": 0.31151136752438835
},
"componentType": "message-handler",
"properties": {},
"input": "file"
},
{
"nodeId": 8,
"name": "_org.springframework.integration.errorLogger",
"stats": {
"activeCount": 0,
"duration": {
"count": 0,
"min": 0,
"max": 0,
"mean": 0,
"standardDeviation": 0,
"countLong": 0
},
"countsEnabled": true,
"statsEnabled": true,
"loggingEnabled": true,
"maxDuration": 0,
"minDuration": 0,
"meanDuration": 0,
"errorCount": 0,
"handleCount": 0,
"standardDeviationDuration": 0
},
"componentType": "logging-channel-adapter",
"properties": {},
"input": "errorChannel"
}
],
"links": [
{
"from": 5,
"to": 8,
"type": "error"
},
{
"from": 5,
"to": 1,
"type": "output"
},
{
"from": 1,
"to": 6,
"type": "input"
},
{
"from": 6,
"to": 2,
"type": "output"
},
{
"from": 2,
"to": 7,
"type": "input"
},
{
"from": 4,
"to": 8,
"type": "input"
}
]
}