Class WavefrontMonitor
- java.lang.Object
-
- java.util.TimerTask
-
- hudson.triggers.SafeTimerTask
-
- hudson.model.AperiodicWork
-
- com.vmware.devops.plugins.wavefront.WavefrontMonitor
-
- All Implemented Interfaces:
ExtensionPoint
,Runnable
@Extension public class WavefrontMonitor extends AperiodicWork
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.triggers.SafeTimerTask
SafeTimerTask.ExceptionRunnable
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.AperiodicWork
logger
-
-
Constructor Summary
Constructors Constructor Description WavefrontMonitor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeWavefrontSender()
static com.wavefront.sdk.proxy.WavefrontProxyClient
createWavefrontProxyClient()
protected void
doAperiodicRun()
static WavefrontMonitor
getCurrentTask()
static WavefrontMonitor
getInstance()
AperiodicWork
getNewInstance()
long
getRecurrencePeriod()
static com.wavefront.sdk.proxy.WavefrontProxyClient
getWavefrontSender()
static boolean
isWavefrontSenderInitialized()
void
sendMetricsToWavefront(SystemMetrics.SystemMetricsSnapshot snapshot, String source)
void
sendMetricsToWavefront(String metricName, double metricValue, String source)
void
sendMetricsToWavefront(String labelName, LoadStatistics.LoadStatisticsSnapshot computeSnapshot, String source)
void
sendMetricsToWavefrontFromLabels(String source)
void
setWavefrontSenderClosed(boolean isClosed)
-
Methods inherited from class hudson.model.AperiodicWork
all, doRun, getInitialDelay, init
-
Methods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, of, run
-
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
-
-
-
Method Detail
-
getNewInstance
public AperiodicWork getNewInstance()
- Specified by:
getNewInstance
in classAperiodicWork
-
doAperiodicRun
protected void doAperiodicRun()
- Specified by:
doAperiodicRun
in classAperiodicWork
-
getRecurrencePeriod
public long getRecurrencePeriod()
- Specified by:
getRecurrencePeriod
in classAperiodicWork
-
sendMetricsToWavefront
public void sendMetricsToWavefront(SystemMetrics.SystemMetricsSnapshot snapshot, String source) throws IOException
- Throws:
IOException
-
sendMetricsToWavefrontFromLabels
public void sendMetricsToWavefrontFromLabels(String source) throws IOException
- Throws:
IOException
-
sendMetricsToWavefront
public void sendMetricsToWavefront(String labelName, LoadStatistics.LoadStatisticsSnapshot computeSnapshot, String source) throws IOException
- Throws:
IOException
-
sendMetricsToWavefront
public void sendMetricsToWavefront(String metricName, double metricValue, String source) throws IOException
- Throws:
IOException
-
createWavefrontProxyClient
public static com.wavefront.sdk.proxy.WavefrontProxyClient createWavefrontProxyClient()
-
getInstance
public static WavefrontMonitor getInstance()
-
getWavefrontSender
public static com.wavefront.sdk.proxy.WavefrontProxyClient getWavefrontSender()
-
isWavefrontSenderInitialized
public static boolean isWavefrontSenderInitialized()
-
closeWavefrontSender
public void closeWavefrontSender()
-
getCurrentTask
public static WavefrontMonitor getCurrentTask()
-
setWavefrontSenderClosed
public void setWavefrontSenderClosed(boolean isClosed)
-
-