Discussions

Ask a Question
Back to All

set bucket resolution (new open source java client for embedded system)

Dear Heinz,
I am writing an open source Java Client, in order to use DDB in one of our embedded system. I know that there is already a Scala client, but since my goal is to run on a very limited environment (hardware wise), it would be good to develop from scratch in order to have full control. The client is running under Ubuntu 18.04.1 LTS and being tested with the released deb package of ddb and dfe. The client send queries over tcp socket and have the following methods at this moment :

  • getHost(): String
  • setPort(): int
  • setHost(String)
  • setPort(int)
  • write(String, String, long, int): void (If mentioned bucket/metric doesn't exists it's created)
  • write(String, String, long, int[]): void
  • listBuckets(): String[]
  • listMetrics(String): String[]
  • getBucketInfo(String): Long[]
  • deleteBucket(String): void

I am now wondering how to set bucket resolution. With my current configuration, each time I create a new bucket it has a default ppf of 604800s and a default resolution of 1000ms. From the documentation I understand that the ppf can be modified through the ddb.conf, which I have succeeded to, but i don't get yet how to modify resolution. That would be great if I could have a hint. It would allow me to develop further the client but also deploy it on my embedded system (which i think could be a good demonstrator to exhibit ddb performance).

Regards