public class GangliaPlugIn extends Object implements IPlugIn<Journal,GangliaService>
Note: This plugin will not start (and will not be loaded from the classpath)
unless PlatformStatsPlugIn.Options.COLLECT_PLATFORM_STATISTICS
is set to
true
.
Modifier and Type | Class and Description |
---|---|
static interface |
GangliaPlugIn.Options
Configuration options.
|
Constructor and Description |
---|
GangliaPlugIn() |
Modifier and Type | Method and Description |
---|---|
GangliaService |
getService()
Return the service.
|
boolean |
isRunning()
Return true iff the service is running.
|
void |
startService(Journal journal)
Start the service.
|
void |
stopService(boolean immediateShutdown)
Stop the service.
|
public void startService(Journal journal)
Start embedded Ganglia peer. It will develop a snapshot of the metrics in memory for all nodes reporting in the ganglia network and will self-report metrics from the performance counter hierarchy to the ganglia network.
startService
in interface IPlugIn<Journal,GangliaService>
public void stopService(boolean immediateShutdown)
Note: The embedded GangliaService is executed on the main thread pool. We need to terminate the GangliaService in order for the thread pool to shutdown.
stopService
in interface IPlugIn<Journal,GangliaService>
immediateShutdown
- true
if the service should be stopped
immediately.public boolean isRunning()
IPlugIn
isRunning
in interface IPlugIn<Journal,GangliaService>
public GangliaService getService()
IPlugIn
getService
in interface IPlugIn<Journal,GangliaService>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.