triglav-agent 1.0.0.rc3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/docs/Triglav.html +1 -1
- data/docs/Triglav/Agent.html +2 -2
- data/docs/Triglav/Agent/ApiClient.html +1 -1
- data/docs/Triglav/Agent/ApiClient/AuthenticationError.html +1 -1
- data/docs/Triglav/Agent/ApiClient/ConnectionError.html +1 -1
- data/docs/Triglav/Agent/ApiClient/Error.html +1 -1
- data/docs/Triglav/Agent/Base.html +1 -1
- data/docs/Triglav/Agent/Base/CLI.html +1 -1
- data/docs/Triglav/Agent/Base/Connection.html +1 -1
- data/docs/Triglav/Agent/Base/Monitor.html +1 -1
- data/docs/Triglav/Agent/Base/Processor.html +1 -1
- data/docs/Triglav/Agent/Base/Setting.html +1 -1
- data/docs/Triglav/Agent/Base/Worker.html +16 -18
- data/docs/Triglav/Agent/Configuration.html +1 -1
- data/docs/Triglav/Agent/Error.html +1 -1
- data/docs/Triglav/Agent/HashUtil.html +1 -1
- data/docs/Triglav/Agent/LogFormatter.html +1 -1
- data/docs/Triglav/Agent/Logger.html +1 -1
- data/docs/Triglav/Agent/Status.html +98 -26
- data/docs/Triglav/Agent/StorageFile.html +330 -88
- data/docs/Triglav/Agent/Timer.html +1 -1
- data/docs/Triglav/Agent/TooManyError.html +1 -1
- data/docs/_index.html +1 -1
- data/docs/file.LICENSE.html +1 -1
- data/docs/file.README.html +1 -1
- data/docs/index.html +1 -1
- data/docs/method_list.html +96 -72
- data/docs/top-level-namespace.html +1 -1
- data/lib/triglav/agent/base/worker.rb +5 -6
- data/lib/triglav/agent/version.rb +1 -1
- metadata +5 -5
@@ -102,7 +102,7 @@
|
|
102
102
|
</div>
|
103
103
|
|
104
104
|
<div id="footer">
|
105
|
-
Generated on
|
105
|
+
Generated on Fri Mar 24 11:36:53 2017 by
|
106
106
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
107
107
|
0.9.5 (ruby-2.3.2).
|
108
108
|
</div>
|
@@ -18,14 +18,14 @@ module Triglav::Agent
|
|
18
18
|
|
19
19
|
# serverengine interface
|
20
20
|
def reload
|
21
|
-
$logger.info { "Worker#reload
|
21
|
+
$logger.info { "Worker#reload" }
|
22
22
|
$setting.reload
|
23
23
|
reload_status
|
24
24
|
end
|
25
25
|
|
26
26
|
# serverengine interface
|
27
27
|
def run
|
28
|
-
$logger.info { "Worker#run
|
28
|
+
$logger.info { "Worker#run" }
|
29
29
|
start
|
30
30
|
until @stop
|
31
31
|
@timer.wait(monitor_interval) { process }
|
@@ -38,7 +38,7 @@ module Triglav::Agent
|
|
38
38
|
|
39
39
|
def process
|
40
40
|
started = Time.now
|
41
|
-
$logger.info { "Start Worker#process
|
41
|
+
$logger.info { "Start Worker#process" }
|
42
42
|
|
43
43
|
total_count = 0
|
44
44
|
total_success_count = 0
|
@@ -51,8 +51,7 @@ module Triglav::Agent
|
|
51
51
|
|
52
52
|
elapsed = Time.now - started
|
53
53
|
$logger.info {
|
54
|
-
"Finish Worker#process
|
55
|
-
"success_count/total_count:#{total_success_count}/#{total_count} elapsed:#{elapsed.to_f}sec"
|
54
|
+
"Finish Worker#process success_count/total_count:#{total_success_count}/#{total_count} elapsed:#{elapsed.to_f}sec"
|
56
55
|
}
|
57
56
|
end
|
58
57
|
|
@@ -63,7 +62,7 @@ module Triglav::Agent
|
|
63
62
|
|
64
63
|
# serverengine interface
|
65
64
|
def stop
|
66
|
-
$logger.info { "Worker#stop
|
65
|
+
$logger.info { "Worker#stop" }
|
67
66
|
@stop = true
|
68
67
|
@timer.stop
|
69
68
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: triglav-agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Triglav Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: serverengine
|
@@ -240,12 +240,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
240
240
|
version: '0'
|
241
241
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
242
242
|
requirements:
|
243
|
-
- - "
|
243
|
+
- - ">="
|
244
244
|
- !ruby/object:Gem::Version
|
245
|
-
version:
|
245
|
+
version: '0'
|
246
246
|
requirements: []
|
247
247
|
rubyforge_project:
|
248
|
-
rubygems_version: 2.
|
248
|
+
rubygems_version: 2.6.13
|
249
249
|
signing_key:
|
250
250
|
specification_version: 4
|
251
251
|
summary: Agent framework for triglav, data-driven workflow tool.
|