Created
October 13, 2016 15:24
-
-
Save jsanda/79d77181e748c117d03b99483b451643 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean enableAll(MetricRegistry registry) | |
{ | |
boolean enabled = false; | |
if (console != null) | |
{ | |
if (enableConsole(registry)) | |
{ | |
enabled = true; | |
} | |
} | |
if (csv != null) | |
{ | |
if (enableCsv(registry)) | |
{ | |
enabled = true; | |
} | |
} | |
if (ganglia != null) | |
{ | |
if (enableGanglia(registry)) | |
{ | |
enabled = true; | |
} | |
} | |
if (graphite != null) | |
{ | |
if (enableGraphite(registry)) | |
{ | |
enabled = true; | |
} | |
} | |
if (riemann != null) | |
{ | |
if (enableRiemann(registry)) | |
{ | |
enabled = true; | |
} | |
} | |
if (!enabled) | |
{ | |
log.warn("No reporters were succesfully enabled"); | |
} | |
return enabled; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment