com.netflix.servo.examples
Class EchoServerExample

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

public class EchoServerExample
extends java.lang.Object

An really basic echo server that uses the utility methods from DynamicCounter


Nested Class Summary
static class EchoServerExample.AcceptTask
           
static class EchoServerExample.ClientTask
           
 
Field Summary
static int DEFAULT_PORT
           
static Counter numRequests
           
 
Constructor Summary
EchoServerExample(int port)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void shutdown()
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

numRequests

public static final Counter numRequests
Constructor Detail

EchoServerExample

public EchoServerExample(int port)
Method Detail

start

public void start()
           throws java.io.IOException
Throws:
java.io.IOException

shutdown

public void shutdown()

main

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