File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
java/src/com/ibm/javametrics/agent Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,13 @@ public void pushData(String type, String data) {
5151 synchronized (buckets ) {
5252 Bucket bucket = buckets .get (type );
5353 if (bucket == null ) {
54- bucket = new ArrayDataBucket (MAX_BUCKET_SIZE );
54+ bucket = new StringDataBucket (MAX_BUCKET_SIZE );
5555 buckets .put (type , bucket );
5656 }
57- bucket .addData (data );
57+ if (!bucket .addData (data )) {
58+ // System.err.println("Javametrics: data dropped. Bucket size="
59+ // + bucket.getSize());
60+ }
5861 }
5962 }
6063
@@ -86,7 +89,7 @@ private void drainBatched(String type, Bucket bucket) {
8689 emit (type , sb .toString ());
8790 }
8891 }
89-
92+
9093 private void emit (String type , String data ) {
9194 if (data != null ) {
9295 receivers .forEach ((receiver ) -> {
You can’t perform that action at this time.
0 commit comments