You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2010/06/16 01:34:24 UTC

[jira] Commented: (AVRO-578) Add bytesWritten() to Encoder Class

    [ https://issues.apache.org/jira/browse/AVRO-578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12879180#action_12879180 ] 

Doug Cutting commented on AVRO-578:
-----------------------------------

The easiest way to see the size might be to sum the sizes of the List<ByteBuffer> that are read/written by the Transceiver on the client and by the Responder#respond() on a the server.

> Add bytesWritten() to Encoder Class
> -----------------------------------
>
>                 Key: AVRO-578
>                 URL: https://issues.apache.org/jira/browse/AVRO-578
>             Project: Avro
>          Issue Type: Sub-task
>          Components: java
>            Reporter: Patrick Wendell
>            Assignee: Patrick Wendell
>
> For stats/monitoring it is helpful to see how many bytes are encoded for a given RPC call. Right now Encoder's don't track how many payload bytes are actually written out when encoding is done.
> Ideally this bytesWritten() would be in Encoder interface, however not sure JSON plugin can track the number of characters actually written, so alternatively just could be added to BinaryEncoder, and stats plugin will only provide payload sizes when that encoder is used.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.