-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapps-groovy.html
163 lines (151 loc) · 5.94 KB
/
apps-groovy.html
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE html>
<html lang="en">
<head>
<title>Logscape Apps </title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style-app.css" rel="stylesheet">
<link href="css/cloud-app.css" rel="stylesheet">
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.js"></script>
<script src="js/angular-1.2.9/angular.min.js"></script>
<script src="js/angular-1.2.9/angular-animate.min.js"></script>
<script src="js/angular-1.2.9/angular-route.min.js"></script>
<script src="js/app/controllers.js"> </script>
</head>
<body>
<div style="width:100%;height:85px;background-color:#2980B9;">
<!--div
a(href="/") Documentation
a(href="") Forums |
a(href="") Getting Started |
a(href="") Logscape |
-->
<div style="padding-left:100px;padding-top:20px"><img src="images/logscape-apps-logo.png" style="height:45px"></div>
</div>
<div id="navdiv" style="width:100%;height:40px;background-color:#EEE;box-shadow: 0 0 2px #999;">
<div style="padding-left:140px;padding-top:10px"><a href="/">Documentation | </a><a href="http://logscape.com">Main Website | </a><a href="http://logscape.com/get.html">Download | </a><a href="http://logscape.activeboard.com/">Forums | </a><a href="/apps.html">Apps | </a></div>
</div>
<div class="row">
<div style="margin-left:10px" class="col-md-2 nav-padding">
<hr>
<ul class="nav nav-tabs nav-stacked">
<p>Start Here </p>
<li><a href="/apps-intro.html">What is an App </a></li>
<li><a href="/apps-deploy.html">How to Deploy </a></li>
<li>
<!--a(href="") How to Configure An App -->
</li>
<li><a href="apps-style.html">Style Guidelines </a></li>
<p>Service Guides </p>
<li><a href="/apps-groovy.html">Groovy </a></li>
<li><a href="/apps-shell.html">Shell Commands </a></li>
</ul>
<!--
li
a(href="/apps-sql.html") SQL
li
a(href="/apps-jmx.html") JMX
-->
</div>
<div class="col-md-9">
<div class="container-fluid">
<div class="row">
<div class="col-md-11"></div>
<h3>Groovy Services </h3>
<p>A groovy service is instantiated using the following service descriptor </p>
<pre>
<service>
<background>true</background>
<fork>true</fork>
<script> myscript.groovy propA=valuea propB=B </script>
</service> </pre>
<h5> <strong>Passing Parameters </strong></h5>
<p>Parameters can be passed to a groovy service using:</p>
<ul>
<li>override properties file,</li>
<li>Command-line arguments </li>
</ul>
<p> </p>
<h5> <strong>1.) Properties File.</strong></h5>
<p>A property file has the following format </p>
<pre>
propertyA=value1
propertyB=value2</pre>
<p>Each property is available to your groovy service as a variable. This places the same restrictions on groovy variable naming on the properties override file. </p>
<h5> <strong>2.) Command-line arguments </strong></h5>
<p>Any parameters passed to your groovy script in the script tag can be accessed in the <em>args </em>variable. If you had the following arguments:
<blockquote>myscript -host localhost -port 33600</blockquote>
</p>
<p>The <em>args </em>contains the arguments as they appear. For the example above the args list will have the following values
<pre>
["-host","localhost","-port","33600"]</pre>The same values can be automatically created in your groovy service as variables using the key value syntax.
<blockquote>myscript host=localhost port=33600 </blockquote>The same mechanism that is used to bind values to variables for the properties override file can is used for command line values.
</p>
</div>
<div class="row">
<div class="col-md-11"><br><br><br>
<div id="disqus_thread">
<script>
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'logscape'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
<!--
.container
//
.navbar.navbar-fixed-top
.navbar-inner
.nav-collapse.collapse
ul.nav
li.active Main Support Site
li Explore Logscape Apps
li
a(href="") Download
h3 Logscape Apps
a(href="index.html") Getting Started |
a(href="http://support.liquidlabs.co.uk") Older Versions 1.3x Docs
.container-fluid
br
br
br
br
br
.row
.col-md-11(style="padding-left:100px")
block content
script(src="js/ga.js")
-->
<!--
//
.row
.col-md-2.nav-padding
br
ul
li
a(href="https://github.com/logscape/windowsapp#windowsapp-10") WindowsApp
li
a(href="https://github.com/logscape/unixapp#unixapp-10") UnixApp
li
a(href="https://github.com/logscape/coherenceapp#oraclecoherenceapp-10") Oracle Coherence App
li
a(href="https://github.com/logscape/javaapp#javaapp-10") JavaApp
li
a(href="https://github.com/logscape/vmwareapp#vmwareapp-10") VMWareApp
li
a(href="https://github.com/logscape/ciscoapp#ciscoapp-10") Cisco Devices
.col-md-10
block content
-->