com.netflix.servo.examples
Class BasicExample

java.lang.Object
  extended by com.netflix.servo.examples.BasicExample

public class BasicExample
extends java.lang.Object

Simple Sample Code for getting a monitor into JMX.


Constructor Summary
BasicExample()
           
BasicExample(java.util.Collection<Tag> tags)
           
 
Method Summary
 long getSampleGauge()
           
static void main(java.lang.String[] args)
           
 void setSampleGauge(long val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicExample

public BasicExample()

BasicExample

public BasicExample(java.util.Collection<Tag> tags)
Method Detail

setSampleGauge

public void setSampleGauge(long val)

getSampleGauge

@Monitor(name="sampleGauge",
         type=GAUGE)
public long getSampleGauge()

main

public static void main(java.lang.String[] args)
                 throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException