Skip to content
Snippets Groups Projects
Verified Commit 47af0f9d authored by Alexander-Krause's avatar Alexander-Krause
Browse files

added programming language and refactoring

parent f4fb7959
No related branches found
No related tags found
No related merge requests found
......@@ -134,6 +134,14 @@ export default Component.extend(AlertifyHandler, {
'line-color': '#94f2a2',
'target-arrow-color': '#94f2a2'
})
.selector('.edge-stopped')
.css({
'curve-style': 'bezier',
'target-arrow-shape': 'triangle',
'width': 10,
'line-color': '#f4ffa8',
'target-arrow-color': '#f4ffa8'
})
.selector('.edge-error')
.css({
'curve-style': 'bezier',
......@@ -150,6 +158,10 @@ export default Component.extend(AlertifyHandler, {
.css({
'background-color': '#37ca4d',
})
.selector('.procezz-stopped')
.css({
'background-color': '#e4ff19',
})
.selector('.procezz-error')
.css({
'background-color': '#ff0000',
......@@ -308,6 +320,7 @@ export default Component.extend(AlertifyHandler, {
const monitoredEnabled = procezzRecord.get('monitoredFlag');
const faultyProcezz = procezzRecord.get('errorOccured');
const stoppedProcezz = procezzRecord.get('stopped');
let cssClassProcezz = "procezz";
let cssClassEdge = "edge";
......@@ -324,6 +337,10 @@ export default Component.extend(AlertifyHandler, {
cssClassProcezz += " hidden";
cssClassEdge += " hidden";
}
if(stoppedProcezz) {
cssClassProcezz += " procezz-stopped";
cssClassEdge += " edge-stopped";
}
const procezzAndEdge = {
nodes: [
......
......@@ -19,26 +19,28 @@ export default BaseModel.extend({
pid: attr("number"),
osExecutionCommand: attr("string"),
userExecutionCommand: attr("string"),
osExecutionCommand: attr("string"),
agentExecutionCommand: attr("string"),
proposedExecutionCommand: attr("string"),
workingDirectory: attr("string"),
programmingLanguage: attr("string"),
shutdownCommand: attr("string"),
agent: belongsTo("agent"),
monitoredFlag: attr("boolean"),
// the following attribute can be changed by users
webserverFlag: attr("boolean"),
userExecutionCommand: attr("string"),
shutdownCommand: attr("string"),
workingDirectory: attr("string"),
monitoredFlag: attr("boolean"),
webserverFlag: attr("boolean"),
stopped: attr("boolean"),
restart: attr("boolean"),
aopContent: attr("string"),
kiekerConfigContent: attr("string")
kiekerConfigContent: attr("string"),
agent: belongsTo("agent")
});
......@@ -8,10 +8,8 @@
<tbody>
<tr>
<td><b>Is stopped?</b>{{help-tooltip title="Flag that indicates if the process is stopped."}}</td>
<td>
<div class="well well-sm container-word-wrap" style="margin-bottom: 0px;">
{{procezz.stopped}}
</div>
<td>
{{procezz.stopped}}
</td>
</tr>
<tr>
......
......@@ -6,6 +6,10 @@
</tr>
</thead>
<tbody>
<tr>
<td><b>Programming language</b>{{help-tooltip title="Underlying programming language for this procezz"}}</td>
<td>{{procezz.programmingLanguage}}</td>
</tr>
<tr>
<td><b>Internal ID</b>{{help-tooltip title="Entity ID used by ExplorViz"}}</td>
<td>{{procezz.id}}</td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment