I have zero encounter with Scala. I'm returned an scala object by a library(kafka) of the following type:
kafka.coordinator.GroupMetadataManager$$anon$2@2b9ee60f
I tried to pass this to Scala to get some meaningful information. i.e. to access the data members.
package metricsReporter;
import kafka.coordinator.GroupMetadataManager;
class processMetrics {
def hello() { println("Hello (class)") } // [1]
def printGM(gmObject: AnyRef ) {
println(gmObject)
}
}
I'm calling the above function from java like this
new processMetrics().printGM(metric);
This function is also ouputing the same text. I also get other objects like anon$2, anon$3 (which should have data about different kafka partitions) of the same type.