public class MetricsHook extends Object implements ComponentHook
network.addVerticle("foo", Foo.class.getName()).addHook(new MetricsHook("com.bloidonia.metrics"));
| Constructor and Description |
|---|
MetricsHook() |
MetricsHook(String address) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleReceive(Object message)
Called when a message has been received on the input.
|
void |
handleSend(Object message)
Called when a message has been sent on the output.
|
void |
handleStart(Component component)
Called when the component has started.
|
void |
handleStop(Component component)
Called when the component has stopped.
|
public MetricsHook()
public MetricsHook(String address)
public void handleStart(Component component)
ComponentHookhandleStart in interface ComponentHookcomponent - The component that was started.public void handleReceive(Object message)
InputHookhandleReceive in interface InputHookmessage - The message that was received.public void handleSend(Object message)
OutputHookhandleSend in interface OutputHookmessage - The message that was sent.public void handleStop(Component component)
ComponentHookhandleStop in interface ComponentHookcomponent - The component that was stopped.Copyright © 2013-2014. All Rights Reserved.