public class GraphiteDecoder extends io.netty.handler.codec.MessageToMessageDecoder<String>
| Constructor and Description |
|---|
GraphiteDecoder() |
GraphiteDecoder(String hostName) |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(io.netty.channel.ChannelHandlerContext ctx,
String msg,
List<Object> out) |
void |
decodeReportPoints(String msg,
List<ReportPoint> out)
Decode graphite points and dump them into an output array.
|
void |
decodeReportPoints(String msg,
List<ReportPoint> out,
String customerId)
Decode graphite points and dump them into an output array.
|
static String |
unquote(String text) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredhandlerAdded, handlerRemoved, isSharablepublic GraphiteDecoder()
public GraphiteDecoder(String hostName)
public void decodeReportPoints(String msg, List<ReportPoint> out, String customerId)
msg - Message to parse.out - List to output the parsed point.customerId - The customer id to use as the table for the result ReportPoint.public void decodeReportPoints(String msg, List<ReportPoint> out)
msg - Message to parse.out - List to output the parsed point.public void decode(io.netty.channel.ChannelHandlerContext ctx,
String msg,
List<Object> out)
throws Exception
Copyright © 2015. All rights reserved.