Short answer: " put name timestamp value [tags]" commands are a network protocol for adding data to OpenTSDB via TCP / IP. Therefore, from your Java program, you can open a TCP socket for the TSD port and start writing commands to add your data.
Obviously, this still leaves plenty of detail for the reader to exercise.
, , , . TSD , , . Yammer/Coda Hale Metrics ( Java, , )
, Graphite Ganglia. OpenTSDB ( - - github, , , ).