Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
pankaj
2014-10-06 13:21:03 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9e34ff272b5f6ff3df2e86919e73a5d973be7526
9e34ff27
1 parent
9ee0d5b1
Move the starting of reporter to activate
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
utils/misc/src/main/java/org/onlab/metrics/MetricsManager.java
utils/misc/src/main/java/org/onlab/metrics/MetricsManager.java
View file @
9e34ff2
...
...
@@ -72,24 +72,23 @@ public final class MetricsManager implements MetricsService {
private
final
CsvReporter
reporter
;
public
MetricsManager
()
{
this
.
componentsRegistry
=
new
ConcurrentHashMap
<>();
this
.
metricsRegistry
=
new
MetricRegistry
();
this
.
reporter
=
CsvReporter
.
forRegistry
(
metricsRegistry
)
.
formatFor
(
Locale
.
US
)
.
convertRatesTo
(
TimeUnit
.
SECONDS
)
.
convertDurationsTo
(
TimeUnit
.
MICROSECONDS
)
.
build
(
new
File
(
"/tmp/"
));
reporter
.
start
(
10
,
TimeUnit
.
SECONDS
);
.
build
(
new
File
(
"/var/onos/log/metrics/"
));
}
@Activate
public
void
activate
()
{
this
.
componentsRegistry
=
new
ConcurrentHashMap
<>();
reporter
.
start
(
10
,
TimeUnit
.
SECONDS
);
}
@Deactivate
public
void
deactivate
()
{
reporter
.
stop
();
}
/**
...
...
Please
register
or
login
to post a comment